aboutsummaryrefslogtreecommitdiffstats
path: root/package/mysql
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-05-27 05:37:28 +0000
committerNicolas Thill <nico@openwrt.org>2005-05-27 05:37:28 +0000
commit271d439f451a2130beceb4819659baedd183c7a8 (patch)
treea54d60638d10c93605fcf5b44b72558a49fb3324 /package/mysql
parentff3bbc0705c7c441b0123e875ad93a3847c06279 (diff)
downloadupstream-271d439f451a2130beceb4819659baedd183c7a8.tar.gz
upstream-271d439f451a2130beceb4819659baedd183c7a8.tar.bz2
upstream-271d439f451a2130beceb4819659baedd183c7a8.zip
Install mysql_config in STAGING_DIR/usr/bin
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1075 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mysql')
-rw-r--r--package/mysql/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/mysql/Makefile b/package/mysql/Makefile
index 04f2b27c48..05b8acbc12 100644
--- a/package/mysql/Makefile
+++ b/package/mysql/Makefile
@@ -94,25 +94,33 @@ $(PKG_BUILD_DIR)/.built:
SUBDIRS="include libmysql" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
+ $(MAKE) -C "$(PKG_BUILD_DIR)" \
+ SUBDIRS="scripts" \
+ DESTDIR="$(PKG_INSTALL_DIR)" \
+ bin_SCRIPTS="mysql_config" \
+ install
touch $@
$(IPKG_LIBMYSQLCLIENT):
install -d -m0755 $(IDIR_LIBMYSQLCLIENT)/usr/lib
- cp -fpR $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(IDIR_LIBMYSQLCLIENT)/usr/lib/
+ cp -fp $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(IDIR_LIBMYSQLCLIENT)/usr/lib/
$(RSTRIP) $(IDIR_LIBMYSQLCLIENT)
$(IPKG_BUILD) $(IDIR_LIBMYSQLCLIENT) $(PACKAGE_DIR)
$(STAGING_DIR)/usr/lib/mysql/libmysqlclient.so: $(PKG_BUILD_DIR)/.built
+ mkdir -p $(STAGING_DIR)/usr/bin
+ cp -fp $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(STAGING_DIR)/usr/bin/
mkdir -p $(STAGING_DIR)/usr/include
cp -fpR $(PKG_INSTALL_DIR)/usr/include/mysql $(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/mysql $(STAGING_DIR)/usr/lib/
- touch $(STAGING_DIR)/usr/lib/mysql/libmysqlclient.so
+ touch $@
install-dev: $(STAGING_DIR)/usr/lib/mysql/libmysqlclient.so
uninstall-dev:
rm -rf \
+ $(STAGING_DIR)/usr/bin/mysql_config \
$(STAGING_DIR)/usr/include/mysql \
$(STAGING_DIR)/usr/lib/mysql \