From 0aabef127155575e8c8d660605f9401ab15356aa Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 24 Feb 2011 17:41:36 +0100 Subject: 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. --- package/libgcrypt/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'package/libgcrypt') 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 -- cgit v1.2.3