summaryrefslogtreecommitdiff
path: root/package/libffi
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:07:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:07:11 +0100
commit56e554d65183edf7bcbab7ff04f0d13fa5a4a403 (patch)
tree11bdc0ebfe37397d17f7f81404b5fdbd80d516cc /package/libffi
parentc222009ae2041c53e2fce319c12b1c1b08dfe4fa (diff)
add a lot of new devel subpackages and fix native builds of packages
Diffstat (limited to 'package/libffi')
-rw-r--r--package/libffi/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/package/libffi/Makefile b/package/libffi/Makefile
index 7f30ccd96..15548dabf 100644
--- a/package/libffi/Makefile
+++ b/package/libffi/Makefile
@@ -12,12 +12,21 @@ PKG_SECTION:= libs
PKG_URL:= http://sourceware.org/libffi/
PKG_SITES:= ftp://sourceware.org/pub/libffi/
+PKG_SUBPKGS:= LIBFFI LIBFFI_DEV
+PKGSC_LIBFFI_DEV:= devel
+PKGSD_LIBFFI_DEV:= libffi headers
+
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBFFI,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBFFI,libffi,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBFFI_DEV,libffi-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBFFI_DEV},${PKGSC_LIBFFI_DEV}))
-post-install:
+libffi-install:
${INSTALL_DIR} ${IDIR_LIBFFI}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libffi.so* ${IDIR_LIBFFI}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libffi.so* ${IDIR_LIBFFI}/usr/lib
+
+libffi-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBFFI_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBFFI_DEV}/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk