summaryrefslogtreecommitdiff
path: root/package/mysql
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-08 12:25:07 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-08 12:25:07 (GMT)
commit52ef6765b097f227c6cf61876c5e9b71ba2e4a7f (patch)
tree9abe867a414410f31e026ffbf1e2506a682b49d6 /package/mysql
parentf2b154b7d74e21b7e655c6cd121155592c1bee03 (diff)
add development subpackages
Diffstat (limited to 'package/mysql')
-rw-r--r--package/mysql/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/mysql/Makefile b/package/mysql/Makefile
index 09aa971..30d54b8 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