summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-08 13:25:07 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-08 13:25:07 +0100
commit52ef6765b097f227c6cf61876c5e9b71ba2e4a7f (patch)
tree9abe867a414410f31e026ffbf1e2506a682b49d6 /package
parentf2b154b7d74e21b7e655c6cd121155592c1bee03 (diff)
add development subpackages
Diffstat (limited to 'package')
-rw-r--r--package/gmp/Makefile11
-rw-r--r--package/libgd/Makefile11
-rw-r--r--package/mysql/Makefile9
3 files changed, 23 insertions, 8 deletions
diff --git a/package/gmp/Makefile b/package/gmp/Makefile
index 721f16573..11167df10 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
diff --git a/package/libgd/Makefile b/package/libgd/Makefile
index 1961edf2d..dbfafd2dd 100644
--- a/package/libgd/Makefile
+++ b/package/libgd/Makefile
@@ -14,11 +14,12 @@ PKG_BUILDDEP:= libpng jpeg
PKG_URL:= http://www.libgd.org/
PKG_SITES:= http://www.libgd.org/releases/
-PKG_SUBPKGS:= LIBGD
+PKG_SUBPKGS:= LIBGD LIBGD_DEV
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBGD,libgd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBGD_DEV,libgd-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIGURE_ENV+= LIBPNG12_CONFIG="${STAGING_TARGET_DIR}/usr/bin/libpng12-config"
CONFIGURE_ARGS+= --without-x \
@@ -27,8 +28,12 @@ CONFIGURE_ARGS+= --without-x \
--with-png=${STAGING_TARGET_DIR}/usr \
--without-xpm
-post-install:
+libgd-install:
${INSTALL_DIR} ${IDIR_LIBGD}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libgd.so* ${IDIR_LIBGD}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libgd.so* ${IDIR_LIBGD}/usr/lib
+
+libgd-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBGD_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBGD_DEV}/usr/include
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/mysql/Makefile b/package/mysql/Makefile
index 09aa971b0..30d54b826 100644
--- a/package/mysql/Makefile
+++ b/package/mysql/Makefile
@@ -14,12 +14,13 @@ PKG_BUILDDEP:= ncurses zlib readline
PKG_URL:= http://www.mysql.com/
PKG_SITES= ${MASTER_SITE_MYSQL:=Downloads/MySQL-5.1/}
-PKG_SUBPKGS:= LIBMYSQLCLIENT
+PKG_SUBPKGS:= LIBMYSQLCLIENT LIBMYSQLCLIENT_DEV
PKG_HOST_DEPENDS:= !cygwin
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBMYSQLCLIENT,libmysqlclient,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBMYSQLCLIENT_DEV,libmysqlclient-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
@@ -83,11 +84,15 @@ do-build:
bin_SCRIPTS="mysql_config" \
all install
-do-install:
+libmysqlclient-install:
${INSTALL_DIR} ${IDIR_LIBMYSQLCLIENT}/usr/lib
${CP} ${WRKINST}/usr/lib/mysql/libmysqlclient.so* \
${IDIR_LIBMYSQLCLIENT}/usr/lib
$(SED) "s,\(^pkgincludedir='\)\(.*\),\1${STAGING_TARGET_DIR}\2," \
${WRKINST}/usr/bin/mysql_config
+libmysqlclient-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBMYSQLCLIENT_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBMYSQLCLIENT_DEV}/usr/include
+
include ${TOPDIR}/mk/pkg-bottom.mk