aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libdbi-drivers/Makefile
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2004-12-26 06:34:07 +0800
committersem <sem@FreeBSD.org>2004-12-26 06:34:07 +0800
commitbf5d7e9e12ee69daf762ad08589278ecd085c46f (patch)
treeacbc2c29516d556f9f94d3175528821db93c2e01 /databases/libdbi-drivers/Makefile
parent7afcf7eb324ea15a022ad319e3804629f04909d5 (diff)
downloadfreebsd-ports-gnome-bf5d7e9e12ee69daf762ad08589278ecd085c46f.tar.gz
freebsd-ports-gnome-bf5d7e9e12ee69daf762ad08589278ecd085c46f.tar.zst
freebsd-ports-gnome-bf5d7e9e12ee69daf762ad08589278ecd085c46f.zip
- OPTIONize the port to make it easier to choose drivers.
- Use libtool 1.5 rather than deprecated 1.3 - For those who don't choose any drivers, mark IGNORE to prevent installation - Thus bump PORTREVISION - Pass maintainership to submitter PR: ports/75457 Submitted by: delphij
Diffstat (limited to 'databases/libdbi-drivers/Makefile')
-rw-r--r--databases/libdbi-drivers/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/databases/libdbi-drivers/Makefile b/databases/libdbi-drivers/Makefile
index 802d0657bf3a..53dc4f04179d 100644
--- a/databases/libdbi-drivers/Makefile
+++ b/databases/libdbi-drivers/Makefile
@@ -8,23 +8,33 @@
PORTNAME= libdbi-drivers
PORTVERSION= 0.7.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= delphij@FreeBSD.org
COMMENT= Drivers for libdbi
LIB_DEPENDS= dbi.0:${PORTSDIR}/databases/libdbi
USE_GNOME= gnometarget lthack
-USE_LIBTOOL_VER= 13
+USE_LIBTOOL_VER= 15
CONFIGURE_ARGS= --disable-static \
--with-dbi-incdir=${LOCALBASE}/include/dbi
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
+OPTIONS= MYSQL "With MySQL Driver" on \
+ 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)
+IGNORE= You must choose at least one driver
+.endif
+
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
@@ -60,4 +70,4 @@ PLIST_SUB+= SQLITE="@comment "
post-patch:
@${REINPLACE_CMD} -e 's|-O20|$$CFLAGS|g' ${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>