summaryrefslogtreecommitdiff
path: root/databases/mysql-client
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-08-25 18:38:05 +0000
committerjlam <jlam@pkgsrc.org>2002-08-25 18:38:05 +0000
commite2afa97f51a1f72e6618533019aaaae07b7d3cf2 (patch)
treed2b31bb9a6a069ebfb63079b9dddde1e6688bc4b /databases/mysql-client
parente97ad43756dc8382d2c6cb8a7ae09be0eb540f67 (diff)
downloadpkgsrc-e2afa97f51a1f72e6618533019aaaae07b7d3cf2.tar.gz
Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework.
Diffstat (limited to 'databases/mysql-client')
-rw-r--r--databases/mysql-client/Makefile12
-rw-r--r--databases/mysql-client/Makefile.common4
-rw-r--r--databases/mysql-client/buildlink2.mk21
3 files changed, 28 insertions, 9 deletions
diff --git a/databases/mysql-client/Makefile b/databases/mysql-client/Makefile
index 9ea09304057..c12034addf1 100644
--- a/databases/mysql-client/Makefile
+++ b/databases/mysql-client/Makefile
@@ -1,16 +1,14 @@
-# $NetBSD: Makefile,v 1.18 2002/06/16 21:45:45 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2002/08/25 18:38:22 jlam Exp $
#
-.include "Makefile.common"
-
PKGNAME= ${DISTNAME:S/-/-client-/}
PKGREVISION= 1
SVR4_PKGNAME= mysqc
COMMENT= MySQL, a free SQL database (client)
-USE_BUILDLINK_ONLY= YES
-REPLACE_BUILDLINK+= scripts/mysql_config
-REPLACE_BUILDLINK+= scripts/mysqlbug
+USE_BUILDLINK2= YES
+
+.include "Makefile.common"
CONFIGURE_ARGS+= --without-server
@@ -20,6 +18,6 @@ post-install:
cd ${PREFIX}/man/man1; ${RM} -f mysqld.1 safe_mysqld.1
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
-.include "../../devel/readline/buildlink.mk"
+.include "../../devel/readline/buildlink2.mk"
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/mysql-client/Makefile.common b/databases/mysql-client/Makefile.common
index e12e91aa0b7..9b60c17d12b 100644
--- a/databases/mysql-client/Makefile.common
+++ b/databases/mysql-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.9 2002/06/16 21:45:45 wiz Exp $
+# $NetBSD: Makefile.common,v 1.10 2002/08/25 18:38:22 jlam Exp $
DISTNAME= mysql-3.23.49
CATEGORIES= databases
@@ -53,4 +53,4 @@ post-extract:
${RM} $${file}.orig; \
done
-.include "../../devel/zlib/buildlink.mk"
+.include "../../devel/zlib/buildlink2.mk"
diff --git a/databases/mysql-client/buildlink2.mk b/databases/mysql-client/buildlink2.mk
new file mode 100644
index 00000000000..726d97b623c
--- /dev/null
+++ b/databases/mysql-client/buildlink2.mk
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:38:22 jlam Exp $
+
+.if !defined(MYSQL_CLIENT_BUILDLINK2_MK)
+MYSQL_CLIENT_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= mysql-client
+BUILDLINK_DEPENDS.mysql-client?= mysql-client>=3.22
+BUILDLINK_PKGSRCDIR.mysql-client?= ../../databases/mysql-client
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.mysql-client=mysql-client
+BUILDLINK_PREFIX.mysql-client_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.mysql-client= include/mysql/*.h
+BUILDLINK_FILES.mysql-client+= lib/mysql/libmysqlclient.*
+
+.include "../../devel/zlib/buildlink2.mk"
+
+BUILDLINK_TARGETS+= mysql-client-buildlink
+
+mysql-client-buildlink: _BUILDLINK_USE
+
+.endif # MYSQL_CLIENT_BUILDLINK2_MK