summaryrefslogtreecommitdiff
path: root/package/gmp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/gmp/Makefile')
-rw-r--r--package/gmp/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/package/gmp/Makefile b/package/gmp/Makefile
index 721f165..11167df 100644
--- a/package/gmp/Makefile
+++ b/package/gmp/Makefile
@@ -8,14 +8,19 @@ PKG_DESCR:= GNU multiprecision arithmetic library
PKG_SECTION:= libs
PKG_URL:= http://gmplib.org/
-PKG_SUBPKGS:= LIBGMP
+PKG_SUBPKGS:= LIBGMP LIBGMP_DEV
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBGMP,libgmp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBGMP_DEV,libgmp-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-post-install:
+libgmp-install:
${INSTALL_DIR} ${IDIR_LIBGMP}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libgmp.so* ${IDIR_LIBGMP}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libgmp.so* ${IDIR_LIBGMP}/usr/lib
+
+libgmp-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBGMP_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBGMP_DEV}/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk