diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2015-06-11 16:34:14 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2015-06-11 16:34:14 +0000 |
commit | e927fede3503b148b91eecca9c4bae621486e377 (patch) | |
tree | f364470e4fc808cd4c1b2ba0be7675f364d9f2c1 /net-mgmt | |
parent | 7b16d323222a00e79df0fba6902bbec6dde51cee (diff) | |
download | ports-e927fede3503b148b91eecca9c4bae621486e377.tar.gz ports-e927fede3503b148b91eecca9c4bae621486e377.zip |
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/pmacct/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile index 5c2ef225b35a..992b6c113208 100644 --- a/net-mgmt/pmacct/Makefile +++ b/net-mgmt/pmacct/Makefile @@ -29,11 +29,7 @@ MMAP_DESC= Enable mmap(2) support LAYER2_DESC= Enable Layer-2 support: MAC addresses and VLANs SHARED_DESC= Enable shared objects -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" -CONFIGURE_ARGS+=--enable-64bit -.endif +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes @@ -46,7 +42,7 @@ PLIST_SUB+= WITH_MYSQL="@comment " .if ${PORT_OPTIONS:MPGSQL} USES+= pgsql -LIB_DEPENDS+= lbpq.so.5:${PORTSDIR}/databases/postgresql-libpqxx +WANT_PGSQL= lib CONFIGURE_ARGS+=--enable-pgsql PLIST_SUB+= WITH_PGSQL="" .else @@ -108,6 +104,12 @@ CONFIGURE_ARGS+=--enable-geoip \ --with-geoip-includes=${LOCALBASE}/include .endif +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" +CONFIGURE_ARGS+=--enable-64bit +.endif + post-patch: @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure |