summaryrefslogtreecommitdiff
path: root/package/libgcrypt
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:41:36 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:41:36 +0100
commit0aabef127155575e8c8d660605f9401ab15356aa (patch)
treeb8cd5f06c60cd4e95fd7a2923dabb3b831dd93b3 /package/libgcrypt
parent0b09c2710166bd95ac9033b048bb6cbf7b4de7c2 (diff)
allow native build of a lot of packages
STAGING_TARGET_DIR is used for package Makefile's for include and library search path's. STAGING_DIR is used for common code in mk/ or Makefile/rules.mk. STAGING_TARGET_DIR is /usr when native builds are used.
Diffstat (limited to 'package/libgcrypt')
-rw-r--r--package/libgcrypt/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/package/libgcrypt/Makefile b/package/libgcrypt/Makefile
index 9600093f4..3da73861c 100644
--- a/package/libgcrypt/Makefile
+++ b/package/libgcrypt/Makefile
@@ -14,16 +14,26 @@ PKG_BUILDDEP:= libgpg-error
PKG_URL:= http://directory.fsf.org/project/libgcrypt
PKG_SITES:= ftp://ftp.gnupg.org/gcrypt/libgcrypt/
+PKG_SUBPKGS:= LIBGCRYPT LIBGCRYPT_DEV
+PKGSD_LIBGCRYPT_DEV:= GNU crypto headers
+PKGSC_LIBGCRYPT_DEV:= devel
+
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBGCRYPT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBGCRYPT,libgcrypt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBGCRYPT_DEV,libgcrypt-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBGCRYPT_DEV},${PKGSC_LIBGCRYPT_DEV}))
CONFIGURE_ARGS+= --disable-asm \
--with-gpg-error-prefix="${STAGING_TARGET_DIR}/usr"
-post-install:
+libgcrypt-install:
${INSTALL_DIR} ${IDIR_LIBGCRYPT}/usr/lib
${CP} ${WRKINST}/usr/lib/libgcrypt.so* \
- ${IDIR_LIBGCRYPT}/usr/lib/
+ ${IDIR_LIBGCRYPT}/usr/lib
+
+libgcrypt-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBGCRYPT}/usr/include
+ ${CP} ${WRKINST}/usr/include/* \
+ ${IDIR_LIBGCRYPT}/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk