summaryrefslogtreecommitdiff
path: root/package/libmpc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-21 17:20:24 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-21 17:20:24 +0200
commit90d5c8b73e8d538e121275b12e714332ca785cff (patch)
treeb70121e4732d658097d1db00c8af381629ec82eb /package/libmpc
parent33dd541790614765228a71477e1f8b2b6aa21ce1 (diff)
automatically create development subpackages, without user interaction, depend on gcc for the target, simplifies a lot of library packages
Diffstat (limited to 'package/libmpc')
-rw-r--r--package/libmpc/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/package/libmpc/Makefile b/package/libmpc/Makefile
index 4c92d1fb1..0a0baeb5c 100644
--- a/package/libmpc/Makefile
+++ b/package/libmpc/Makefile
@@ -4,24 +4,20 @@
include ${TOPDIR}/rules.mk
include ${TOPDIR}/toolchain/mpc/Makefile.inc
+PKG_NAME:= mpc
PKG_DESCR:= GNU multiprecision arithmetic library
PKG_SECTION:= libs
PKG_BUILDDEP:= gmp mpfr
PKG_URL:= http://www.multiprecision.org/
-
-PKG_SUBPKGS:= LIBMPC LIBMPC_DEV
+PKG_LIBNAME:= libmpc
+PKG_OPTS:= dev
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBMPC,libmpc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBMPC_DEV,libmpc-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBMPC,libmpc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
libmpc-install:
${INSTALL_DIR} ${IDIR_LIBMPC}/usr/lib
${CP} ${WRKINST}/usr/lib/libmpc.so* ${IDIR_LIBMPC}/usr/lib
-libmpc-dev-install:
- ${INSTALL_DIR} ${IDIR_LIBMPC_DEV}/usr/include
- ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBMPC_DEV}/usr/include
-
include ${TOPDIR}/mk/pkg-bottom.mk