aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libdbi-drivers
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2004-12-26 18:16:49 +0800
committersem <sem@FreeBSD.org>2004-12-26 18:16:49 +0800
commit9a36d746051149dc53c588173cc579dbeb0953ab (patch)
tree346f700156aad6c44fef311a48577ccef8f60481 /databases/libdbi-drivers
parent38699633db270ca99922ef039f180c46cfd3e199 (diff)
downloadfreebsd-ports-gnome-9a36d746051149dc53c588173cc579dbeb0953ab.tar.gz
freebsd-ports-gnome-9a36d746051149dc53c588173cc579dbeb0953ab.tar.zst
freebsd-ports-gnome-9a36d746051149dc53c588173cc579dbeb0953ab.zip
- Add mSQL dependence. Off by default.
Submitted by: maintainer
Diffstat (limited to 'databases/libdbi-drivers')
-rw-r--r--databases/libdbi-drivers/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/databases/libdbi-drivers/Makefile b/databases/libdbi-drivers/Makefile
index 53dc4f04179d..f767f63b66e8 100644
--- a/databases/libdbi-drivers/Makefile
+++ b/databases/libdbi-drivers/Makefile
@@ -26,12 +26,13 @@ CONFIGURE_ARGS= --disable-static \
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
OPTIONS= MYSQL "With MySQL Driver" on \
+ MSQL "With MSQL Driver" off \
PGSQL "With PostgreSQL Driver" on \
SQLITE "With SQLite Driver" on
.include <bsd.port.pre.mk>
-.if defined(WITHOUT_MYSQL) && defined(WITHOUT_PGSQL) && defined(WITHOUT_SQLITE)
+.if defined(WITHOUT_MYSQL) && defined(WITHOUT_PGSQL) && defined(WITHOUT_SQLITE) && defined(WITHOUT_MSQL)
IGNORE= You must choose at least one driver
.endif
@@ -59,13 +60,13 @@ PLIST_SUB+= SQLITE=""
PLIST_SUB+= SQLITE="@comment "
.endif
-#.if defined(WITH_MSQL)
-#LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
-#CONFIGURE_ARGS+= --with-msql
-#PLIST_SUB+= MSQL=""
-#.else
-#PLIST_SUB+= MSQL="@comment "
-#.endif
+.if defined(WITH_MSQL)
+LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
+CONFIGURE_ARGS+= --with-msql
+PLIST_SUB+= MSQL=""
+.else
+PLIST_SUB+= MSQL="@comment "
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O20|$$CFLAGS|g' ${WRKSRC}/configure