summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/mysql4-client/Makefile7
-rw-r--r--databases/mysql4-client/Makefile.common8
-rw-r--r--databases/mysql4-client/buildlink3.mk24
-rw-r--r--databases/mysql4-server/Makefile10
4 files changed, 36 insertions, 13 deletions
diff --git a/databases/mysql4-client/Makefile b/databases/mysql4-client/Makefile
index 4db61c9ddc7..84f8c722620 100644
--- a/databases/mysql4-client/Makefile
+++ b/databases/mysql4-client/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/03/26 02:27:36 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2004/04/22 14:31:35 seb Exp $
PKGNAME= ${DISTNAME:S/-/-client-/}
PKGREVISION= 1
@@ -10,9 +10,8 @@ CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*}
.include "Makefile.common"
CONFIGURE_ARGS+= --without-server
-USE_BUILDLINK2= YES
+USE_BUILDLINK3= YES
-USE_NEW_TEXINFO= YES
INFO_FILES= mysql.info
post-install:
@@ -21,5 +20,5 @@ post-install:
cd ${PREFIX}/share/mysql && ${RM} -f mysql.server
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
-.include "../../devel/readline/buildlink2.mk"
+.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/mysql4-client/Makefile.common b/databases/mysql4-client/Makefile.common
index 031e8d8cafd..34afcf3bc20 100644
--- a/databases/mysql4-client/Makefile.common
+++ b/databases/mysql4-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2004/03/23 04:34:17 snj Exp $
+# $NetBSD: Makefile.common,v 1.7 2004/04/22 14:31:35 seb Exp $
DISTNAME= mysql-4.0.18
CATEGORIES= databases
@@ -27,7 +27,7 @@ MYSQL_DATADIR?= /var/mysql
MYSQL_CHARSET?= latin1
MYSQL_EXTRA_CHARSET?= all
-USE_BUILDLINK2= # defined
+USE_BUILDLINK3= YES
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR}
CONFIGURE_ARGS+= --with-named-z-libs=z
@@ -87,5 +87,5 @@ post-extract:
${RM} $${file}.orig; \
done
-.include "../../security/openssl/buildlink2.mk"
-.include "../../devel/zlib/buildlink2.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
diff --git a/databases/mysql4-client/buildlink3.mk b/databases/mysql4-client/buildlink3.mk
new file mode 100644
index 00000000000..ef6c92dd338
--- /dev/null
+++ b/databases/mysql4-client/buildlink3.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/22 14:31:35 seb Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+MYSQL_CLIENT_BUILDLINK3_MK:= ${MYSQL_CLIENT_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= mysql-client
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nmysql-client}
+BUILDLINK_PACKAGES+= mysql-client
+
+.if !empty(MYSQL_CLIENT_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.mysql-client+= mysql-client>=4.0.18nb1
+BUILDLINK_RECOMMENDED.mysql-client?= mysql-client>=4.0.18nb1
+BUILDLINK_PKGSRCDIR.mysql-client?= ../../databases/mysql4-client
+BUILDLINK_LIBDIRS.mysql-client?= lib/mysql
+.endif # MYSQL_CLIENT_BUILDLINK3_MK
+
+.include "../../devel/readline/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/databases/mysql4-server/Makefile b/databases/mysql4-server/Makefile
index adb7dd38f4d..4f2f88a376b 100644
--- a/databases/mysql4-server/Makefile
+++ b/databases/mysql4-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2004/03/26 02:27:36 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2004/04/22 14:31:35 seb Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
PKGREVISION= 2
@@ -11,7 +11,7 @@ CONFIGURE_ARGS+= --with-libwrap
CONFIGURE_ARGS+= --with-raid
CONFIGURE_ARGS+= --without-berkeley-db
CONFIGURE_ARGS+= --without-mysqlfs
-USE_BUILDLINK2= YES
+USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
@@ -50,9 +50,9 @@ post-install:
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
${CHOWN} -R ${MYSQL_USER}:${MYSQL_GROUP} ${MYSQL_DATADIR}
-.include "../../databases/mysql4-client/buildlink2.mk"
-.include "../../security/tcp_wrappers/buildlink2.mk"
-.include "../../mk/pthread.buildlink2.mk"
+.include "../../databases/mysql4-client/buildlink3.mk"
+.include "../../security/tcp_wrappers/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
CFLAGS+= -DSIGNALS_DONT_BREAK_READ