summaryrefslogtreecommitdiff
path: root/package/libffi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/libffi/Makefile')
-rw-r--r--package/libffi/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/package/libffi/Makefile b/package/libffi/Makefile
index 7f30ccd..15548da 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