ports/75457: [PATCH] OPTIONize databases/libdbi-drivers

Xin LI delphij at FreeBSD.org
Fri Dec 24 08:10:37 UTC 2004


>Number:         75457
>Category:       ports
>Synopsis:       [PATCH] OPTIONize databases/libdbi-drivers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 24 08:10:36 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Xin LI
>Release:        FreeBSD 5.3-delphij i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD beastie.frontfree.net 5.3-delphij FreeBSD 5.3-delphij #11: Tue Oct 26 14:12:03 CST 2004 delphij at beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386


>Description:
	The libdbi-drivers port requires that at least one driver is chosen or
it won't install anything.
>How-To-Repeat:
	cd /usr/ports/databases/libdbi-drivers && make install
	pkg_info -L libdbi-drivers\*
>Fix:
	The attached patch does the following:
	- 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
	- Grab maintainership
	- Thus bump PORTREVISION

	This should fix postfix-gps's pointyhat build as well.

Index: Makefile
===================================================================
RCS file: /data0/vhost/cvs/usr/home/ncvs/ports/databases/libdbi-drivers/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	23 Dec 2004 08:25:43 -0000	1.5
+++ Makefile	24 Dec 2004 07:38:24 -0000
@@ -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 at FreeBSD.org
+MAINTAINER=	delphij at 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 @@
 post-patch:
 	@${REINPLACE_CMD} -e 's|-O20|$$CFLAGS|g' ${WRKSRC}/configure
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list