clean up libgcrypt installation
authorFelix Fietkau <nbd@openwrt.org>
Mon, 24 Dec 2007 01:24:48 +0000 (01:24 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 24 Dec 2007 01:24:48 +0000 (01:24 +0000)
SVN-Revision: 9887

libs/libgcrypt/Makefile

index 11580f9894700c4e08713f6b02a1f82af5980505..87397d920de33d18db91934f460205df02bc4263 100644 (file)
@@ -54,20 +54,19 @@ define Build/Compile
 endef
 
 define Build/InstallDev
-       mkdir -p $(2)/bin
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(2)/bin/
-       mkdir -p $(1)/usr/include
+       mkdir -p $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/share/aclocal
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/gcrypt*.h $(1)/usr/include/
-       mkdir -p $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.{a,so*} $(1)/usr/lib/
-       mkdir -p $(1)/usr/share/aclocal
        $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/libgcrypt.m4 $(1)/usr/share/aclocal/
-       $(SED) 's,^libdir=\"$$$${exec_prefix}/lib,libdir=\"$(1)/usr/lib,g' $(2)/bin/libgcrypt-config
-       $(SED) 's,^includedir=\"$$$${prefix}/include/,includedir=\"$(1)/usr/include/,g' $(2)/bin/libgcrypt-config
+       $(SED) 's,^libdir=\"$$$${exec_prefix}/lib,libdir=\"$(1)/usr/lib,g' $(1)/usr/bin/libgcrypt-config
+       $(SED) 's,^includedir=\"$$$${prefix}/include/,includedir=\"$(1)/usr/include/,g' $(1)/usr/bin/libgcrypt-config
+       ln -sf $(1)/usr/bin/libgcrypt-config $(2)/bin/
 endef
 
 define Build/UninstallDev
        rm -rf \
+               $(1)/usr/bin/libgcrypt-config \
                $(2)/bin/libgcrypt-config \
                $(1)/usr/include/gcrypt*.h \
                $(1)/usr/lib/libgcrypt.{a,so*} \