Date: Sat, 7 Sep 2013 12:07:49 +0000 (UTC) From: Ryan Steinmetz <zi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r326631 - head/net-mgmt/pmacct Message-ID: <201309071207.r87C7nT1042064@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zi Date: Sat Sep 7 12:07:49 2013 New Revision: 326631 URL: http://svnweb.freebsd.org/changeset/ports/326631 Log: - Add OPTIONS for MongoDB and GeoIP support Requested by: softded@gmail.com Modified: head/net-mgmt/pmacct/Makefile Modified: head/net-mgmt/pmacct/Makefile ============================================================================== --- head/net-mgmt/pmacct/Makefile Sat Sep 7 11:58:02 2013 (r326630) +++ head/net-mgmt/pmacct/Makefile Sat Sep 7 12:07:49 2013 (r326631) @@ -18,7 +18,8 @@ GNU_CONFIGURE= yes CPPFLAGS+= "-I${LOCALBASE}/include" LDFLAGS+= "-L${LOCALBASE}/lib" -OPTIONS_DEFINE= MYSQL PGSQL SQLITE THREADS MMAP LAYER2 IPV6 SHARED DEBUG +OPTIONS_DEFINE= MYSQL PGSQL SQLITE THREADS MMAP LAYER2 IPV6 SHARED DEBUG \ + MONGO GEOIP OPTIONS_DEFAULT=MMAP LAYER2 IPV6 SHARED SQLITE_DESC= Enable SQLite support @@ -92,6 +93,20 @@ CONFIGURE_ARGS+=--disable-so CONFIGURE_ARGS+=--enable-debug .endif +.if ${PORT_OPTIONS:MMONGO} +LIB_DEPENDS+= libmongoc.so:${PORTSDIR}/devel/mongo-c-driver +CONFIGURE_ARGS+=--enable-mongodb \ + --with-mongodb-libs=${LOCALBASE}/lib \ + --with-mongodb-includes=${LOCALBASE}/include +.endif + +.if ${PORT_OPTIONS:MGEOIP} +LIB_DEPENDS+= GeoIP:${PORTSDIR}/net/GeoIP +CONFIGURE_ARGS+=--enable-geoip \ + --with-geoip-libs=${LOCALBASE}/lib \ + --with-geoip-includes=${LOCALBASE}/include +.endif + post-patch: @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309071207.r87C7nT1042064>