Date: Mon, 8 Mar 2004 17:05:33 +0100 (CET) From: Xavier Beaudouin <kiwi@oav.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/63930: [MAINTAINER] misc/libhome: Add OPTIONS to port Message-ID: <20040308160533.083724AC1D@mx2.oav.net> Resent-Message-ID: <200403081610.i28GA9Df053704@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 63930 >Category: ports >Synopsis: [MAINTAINER] misc/libhome: Add OPTIONS to port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Mar 08 08:10:09 PST 2004 >Closed-Date: >Last-Modified: >Originator: Xavier Beaudouin >Release: FreeBSD 5.2.1-RELEASE-p1 i386 >Organization: The Caudium Group / Association Kazar >Environment: System: FreeBSD domu.oav.net 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #0: Fri Mar 5 10:21:57 CET >Description: - Add OPTIONS to port - Added support to all OpenLDAP versions by usage of USE_OPENLDAP - Added support to all MySQL versions by usage of USE_MYSQL - Added support to DB4 as well. Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- libhome-0.7.1_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/misc/libhome.old/Makefile /usr/ports/misc/libhome/Makefile --- /usr/ports/misc/libhome.old/Makefile Mon Mar 8 16:37:06 2004 +++ /usr/ports/misc/libhome/Makefile Mon Mar 8 17:03:25 2004 @@ -7,6 +7,7 @@ PORTNAME= libhome PORTVERSION= 0.7.1 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= pll @@ -14,14 +15,69 @@ MAINTAINER= kiwi@oav.net COMMENT= Library providing a getpwname() emulation -LIB_DEPENDS+= ldap:${PORTSDIR}/net/openldap21-client \ - mysqlclient:${PORTSDIR}/databases/mysql323-client \ - db3.3:${PORTSDIR}/databases/db3 +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/lib/libldap.so) +WITH_LDAP= yes +OPTIONS+= LDAP "Support for LDAP queries" on +.else +OPTIONS+= LDAP "Support for LDAP queries" off +.endif + +.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so) +WITH_MYSQL= yes +OPTIONS+= MYSQL "Support for MySQL queries" on +.else +OPTIONS+= MYSQL "Support for MySQL queries" off +.endif + +.if exists(${LOCALBASE}/lib/libdb3.so) +WITH_DB3= yes +OPTIONS+= DB3 "Support for DB3" on +.else +OPTIONS+= DB3 "Support for DB3" off +.endif + +.if exists(${LOCALBASE}/lib/libdb4.so) +WITH_DB4= yes +OPTIONS+= DB3 "Support for DB4" on +.else +OPTIONS+= DB3 "Support for DB4" off +.endif + +.if defined(WITH_DB3) && defined(WITH_DB4) +.error You cannot use DB3 and DB4 in the same time. +.endif + +.if defined(WITH_LDAP) +USE_OPENLDAP= yes +CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}/include +.else +CONFIGURE_ARGS+= --without-ldap +.endif + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}/include/mysql +.else +CONFIGURE_ARGS+= --without-mysql +.endif + +.if defined(WITH_DB3) +LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3 +CONFIGURE_ARGS+= --with-db3=${LOCALBASE}/include/db3 --without-db4 +.else +CONFIGURE_ARGS+= --without-db3 +.endif + +.if defined(WITH_DB4) +LIB_DEPENDS+= db4:${PORTSDIR}/databases/db4 +CONFIGURE_ARGS+= --with-db4=${LOCALBASE}/include/db4 --without-db3 +.else +CONFIGURE_ARGS+= --without-db4 +.endif GNU_CONFIGURE= YES -CONFIGURE_ARGS= --with-db3=${LOCALBASE}/include/db3 --without-db4 \ - --with-ldap=${LOCALBASE}/include \ - --with-mysql=${LOCALBASE}/include/mysql CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" home_finger @@ -31,4 +87,4 @@ ${INSTALL_PROGRAM} ${WRKSRC}/home_finger ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/home.conf ${PREFIX}/etc/home.conf.dist -.include <bsd.port.mk> +.include <bsd.port.post.mk> --- libhome-0.7.1_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040308160533.083724AC1D>