aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-12-27 01:25:49 +0800
committernork <nork@FreeBSD.org>2003-12-27 01:25:49 +0800
commitd2e79ad2c4bc432f1e807d1fb7d2b2d515414841 (patch)
tree895f46481cd44f53805cac0e97540b0dedda5dd9 /databases
parent827add58753b0f60d77d35a9493f27ea5c465246 (diff)
downloadfreebsd-ports-graphics-d2e79ad2c4bc432f1e807d1fb7d2b2d515414841.tar.gz
freebsd-ports-graphics-d2e79ad2c4bc432f1e807d1fb7d2b2d515414841.tar.zst
freebsd-ports-graphics-d2e79ad2c4bc432f1e807d1fb7d2b2d515414841.zip
add CONFLICTS, use USE_MYSQL.
PR: ports/60559 Submitted by: Alex Dupre <sysadmin@alexdupre.com>
Diffstat (limited to 'databases')
-rw-r--r--databases/p5-Mysql/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/databases/p5-Mysql/Makefile b/databases/p5-Mysql/Makefile
index 6e36aa940b1..48cf7587f96 100644
--- a/databases/p5-Mysql/Makefile
+++ b/databases/p5-Mysql/Makefile
@@ -19,13 +19,10 @@ COMMENT= Perl5 modules for accessing MySQL databases
BUILD_DEPENDS= ${SITE_PERL}/Data/ShowTable.pm:${PORTSDIR}/devel/p5-Data-ShowTable
RUN_DEPENDS= ${BUILD_DEPENDS}
-.include <bsd.port.pre.mk>
+CONFLICTS= p5-DBD-mysql-* p5-DBD-mysql4[0-9]-* p5-DBD-mysql5[0-9]-*
-.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.12)
-LIB_DEPENDS= mysqlclient.12:${PORTSDIR}/databases/mysql40-client
-.else
-LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-.endif
+USE_MYSQL= yes
+DEFAULT_MYSQL_VER= 323
PERL_CONFIGURE= yes
CONFIGURE_ARGS= PREFIX=${PREFIX} CC="${CC}" CCFLAGS="${CFLAGS}" \
@@ -41,6 +38,8 @@ MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
pre-configure:
@${PERL} -p -i -e 's| -lgz||' ${WRKSRC}/lib/DBD/mysql/Install.pm
+.include <bsd.port.pre.mk>
+
.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137