summaryrefslogtreecommitdiff
path: root/package/libgpg-error
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/libgpg-error
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/libgpg-error')
-rw-r--r--package/libgpg-error/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/package/libgpg-error/Makefile b/package/libgpg-error/Makefile
index f0c126cf8..9f19388ac 100644
--- a/package/libgpg-error/Makefile
+++ b/package/libgpg-error/Makefile
@@ -12,15 +12,28 @@ PKG_SECTION:= libs
PKG_URL:= http://www.gnupg.org/
PKG_SITES:= ftp://ftp.gnupg.org/gcrypt/libgpg-error/
+PKG_SUBPKGS:= LIBGPG_ERROR LIBGPG_ERROR_DEV
+PKGSD_LIBGPG_ERROR_DEV:=common error code and description headers
+PKGSC_LIBGPG_ERROR_DEV:=devel
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBGPG_ERROR,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBGPG_ERROR,libgpg-error,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBGPG_ERROR_DEV,libgpg-error-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBGPG_ERROR_DEV},${PKGSC_LIBGPG_ERROR_DEV}))
-post-install:
+libgpg-error-install:
${INSTALL_DIR} ${IDIR_LIBGPG_ERROR}/usr/lib
${CP} ${WRKINST}/usr/lib/libgpg-error.so* \
- ${IDIR_LIBGPG_ERROR}/usr/lib/
+ ${IDIR_LIBGPG_ERROR}/usr/lib
+
+libgpg-error-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBGPG_ERROR_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/gpg-error.h \
+ ${IDIR_LIBGPG_ERROR_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_LIBGPG_ERROR_DEV}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/gpg-error-config \
+ ${IDIR_LIBGPG_ERROR_DEV}/usr/bin
include ${TOPDIR}/mk/pkg-bottom.mk