pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc Use mk/mysql.buildlink3.mk instead of databases/mysql-...
details: https://anonhg.NetBSD.org/pkgsrc/rev/37a1052b62c3
branches: trunk
changeset: 482512:37a1052b62c3
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Fri Oct 29 07:07:44 2004 +0000
description:
Use mk/mysql.buildlink3.mk instead of databases/mysql-client/buildlink3.mk,
so that we'd not force dependance on specific MySQL version, and instead pick
the currently installed mysql*-client (or install the default if there
is no mysql-client package installed yet)
this makes package buildable with arbitrary MySQL version, such as 3.23.x,
4.0.x or 4.1.x
diffstat:
chat/jabberd2/options.mk | 12 +++---------
mail/dspam/options.mk | 4 ++--
mail/ezmlm-idx/options.mk | 4 ++--
mail/postfix-current/options.mk | 6 +++---
mail/postfix/options.mk | 6 +++---
net/freeradius/options.mk | 19 +++++--------------
net/pure-ftpd/options.mk | 4 ++--
7 files changed, 20 insertions(+), 35 deletions(-)
diffs (167 lines):
diff -r 47b5a0954cdb -r 37a1052b62c3 chat/jabberd2/options.mk
--- a/chat/jabberd2/options.mk Fri Oct 29 05:59:23 2004 +0000
+++ b/chat/jabberd2/options.mk Fri Oct 29 07:07:44 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2004/08/07 14:29:20 xtraeme Exp $
+# $NetBSD: options.mk,v 1.2 2004/10/29 07:07:44 xtraeme Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
-PKG_SUPPORTED_OPTIONS= db mysql mysql4 pgsql ldap pam
+PKG_SUPPORTED_OPTIONS= db mysql pgsql ldap pam
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdb)
@@ -15,13 +15,7 @@
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --enable-mysql
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
-. include "../../databases/mysql-client/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Mmysql4)
-CONFIGURE_ARGS+= --enable-mysql
-CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
-. include "../../databases/mysql4-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
diff -r 47b5a0954cdb -r 37a1052b62c3 mail/dspam/options.mk
--- a/mail/dspam/options.mk Fri Oct 29 05:59:23 2004 +0000
+++ b/mail/dspam/options.mk Fri Oct 29 07:07:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.5 2004/10/28 13:32:20 wiz Exp $
+# $NetBSD: options.mk,v 1.6 2004/10/29 07:07:44 xtraeme Exp $
.if defined(DSPAM_DELIVERY_AGENT) && !empty(DSPAM_DELIVERY_AGENT:Mcustom)
DSPAM_DELIVERY_AGENT:= ${DSPAM_DELIVERY_AGENT_ARGS}
@@ -49,7 +49,7 @@
PKG_OPTIONS:= ${PKG_OPTIONS:Nvirtualusers}
.endif
.if !empty(DSPAM_STORAGE_DRIVER:Mmysql)
-. include "../../databases/mysql4-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-storage-driver=mysql_drv
CONFIGURE_ARGS+= \
--with-mysql-includes=${BUILDLINK_PREFIX.mysql-client}/include/mysql \
diff -r 47b5a0954cdb -r 37a1052b62c3 mail/ezmlm-idx/options.mk
--- a/mail/ezmlm-idx/options.mk Fri Oct 29 05:59:23 2004 +0000
+++ b/mail/ezmlm-idx/options.mk Fri Oct 29 07:07:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2004/08/22 19:32:51 jlam Exp $
+# $NetBSD: options.mk,v 1.3 2004/10/29 07:07:44 xtraeme Exp $
# Legacy options
#
@@ -31,7 +31,7 @@
### MySQL support
###
.if !empty(PKG_OPTIONS:Mmysql)
-. include "../../databases/mysql-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
. if !target(post-configure)
post-configure:
${ECHO} -I${BUILDLINK_PREFIX.mysql-client}/include/mysql > ${WRKSRC}/sub_mysql/conf-sqlcc
diff -r 47b5a0954cdb -r 37a1052b62c3 mail/postfix-current/options.mk
--- a/mail/postfix-current/options.mk Fri Oct 29 05:59:23 2004 +0000
+++ b/mail/postfix-current/options.mk Fri Oct 29 07:07:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.5 2004/08/27 06:29:08 jlam Exp $
+# $NetBSD: options.mk,v 1.6 2004/10/29 07:07:44 xtraeme Exp $
# Global and legacy options
#
@@ -108,12 +108,12 @@
### Support using a MySQL database server for table lookups.
###
.if !empty(PKG_OPTIONS:Mmysql4)
-. include "../../databases/mysql4-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
CCARGS+= -DHAS_MYSQL
CCARGS+= `${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config --include`
AUXLIBS+= `${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config --libs`
.elif !empty(PKG_OPTIONS:Mmysql)
-. include "../../databases/mysql-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
CCARGS+= -DHAS_MYSQL -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
AUXLIBS+= -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
diff -r 47b5a0954cdb -r 37a1052b62c3 mail/postfix/options.mk
--- a/mail/postfix/options.mk Fri Oct 29 05:59:23 2004 +0000
+++ b/mail/postfix/options.mk Fri Oct 29 07:07:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.9 2004/09/23 16:10:07 martti Exp $
+# $NetBSD: options.mk,v 1.10 2004/10/29 07:07:44 xtraeme Exp $
# Global and legacy options
#
@@ -112,12 +112,12 @@
### Support using a MySQL database server for table lookups.
###
.if !empty(PKG_OPTIONS:Mmysql4)
-. include "../../databases/mysql4-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
CCARGS+= -DHAS_MYSQL
CCARGS+= `${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config --include`
AUXLIBS+= `${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config --libs`
.elif !empty(PKG_OPTIONS:Mmysql)
-. include "../../databases/mysql-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
CCARGS+= -DHAS_MYSQL -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
AUXLIBS+= -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
diff -r 47b5a0954cdb -r 37a1052b62c3 net/freeradius/options.mk
--- a/net/freeradius/options.mk Fri Oct 29 05:59:23 2004 +0000
+++ b/net/freeradius/options.mk Fri Oct 29 07:07:44 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2004/10/02 12:06:03 adrianp Exp $
+# $NetBSD: options.mk,v 1.2 2004/10/29 07:07:44 xtraeme Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius
-PKG_SUPPORTED_OPTIONS= ldap postgresql73 postgresql74 mysql4 mysql3 snmp
+PKG_SUPPORTED_OPTIONS= ldap postgresql73 postgresql74 mysql snmp
.include "../../mk/bsd.options.mk"
@@ -49,19 +49,10 @@
.endif
###
-### Use mySQL v4.x for storing user details
+### Use MySQL for storing user details
###
-.if !empty(PKG_OPTIONS:Mmysql4)
-. include "../../databases/mysql4-client/buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_sql_mysql
-PLIST_SRC+= ${PKGDIR}/PLIST.mysql
-.endif
-
-###
-### Use mySQL v3.x for storing user details
-###
-.if !empty(PKG_OPTIONS:Mmysql3)
-. include "../../databases/mysql-client/buildlink3.mk"
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_sql_mysql
PLIST_SRC+= ${PKGDIR}/PLIST.mysql
.endif
diff -r 47b5a0954cdb -r 37a1052b62c3 net/pure-ftpd/options.mk
--- a/net/pure-ftpd/options.mk Fri Oct 29 05:59:23 2004 +0000
+++ b/net/pure-ftpd/options.mk Fri Oct 29 07:07:44 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2004/10/20 11:10:29 cube Exp $
+# $NetBSD: options.mk,v 1.2 2004/10/29 07:07:44 xtraeme Exp $
# Legacy options
.if !empty(PURE_FTPD_USE_MYSQL:M[Yy][Ee][Ss])
@@ -24,7 +24,7 @@
.endif
.if !empty(PKG_OPTIONS:Mmysql)
-. include "../../databases/mysql-client/buildlink3.mk"
+. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
.endif
Home |
Main Index |
Thread Index |
Old Index