From 9a925d547af48d6ec67db8b4f2215a67b3373912 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 23 Dec 2007 21:35:59 +0000 Subject: [PATCH] fix gcrypt staging git-svn-id: svn://svn.openwrt.org/openwrt/packages@9881 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libgcrypt/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libs/libgcrypt/Makefile b/libs/libgcrypt/Makefile index 00a69afbc..11580f989 100644 --- a/libs/libgcrypt/Makefile +++ b/libs/libgcrypt/Makefile @@ -54,22 +54,24 @@ define Build/Compile endef define Build/InstallDev - mkdir -p $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(1)/usr/bin/ + mkdir -p $(2)/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(2)/bin/ mkdir -p $(1)/usr/include $(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 endef define Build/UninstallDev rm -rf \ - $(STAGING_DIR)/usr/bin/libgcrypt-config \ - $(STAGING_DIR)/usr/include/gcrypt*.h \ - $(STAGING_DIR)/usr/lib/libgcrypt.{a,so*} \ - $(STAGING_DIR)/usr/share/aclocal/libgcrypt.m4 + $(2)/bin/libgcrypt-config \ + $(1)/usr/include/gcrypt*.h \ + $(1)/usr/lib/libgcrypt.{a,so*} \ + $(1)/usr/share/aclocal/libgcrypt.m4 endef define Package/libgcrypt/install