diff options
author | zi <zi@FreeBSD.org> | 2015-06-12 00:34:14 +0800 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2015-06-12 00:34:14 +0800 |
commit | 58838e170d58d067ea77de3d1ac17322c0bc02ae (patch) | |
tree | f364470e4fc808cd4c1b2ba0be7675f364d9f2c1 /net-mgmt/pmacct | |
parent | 8b26b988ce9a3faa31d55b6b2ef83c2d1d75ff69 (diff) | |
download | freebsd-ports-gnome-58838e170d58d067ea77de3d1ac17322c0bc02ae.tar.gz freebsd-ports-gnome-58838e170d58d067ea77de3d1ac17322c0bc02ae.tar.zst freebsd-ports-gnome-58838e170d58d067ea77de3d1ac17322c0bc02ae.zip |
- Cleanup previous commit and fix dependency issues
Diffstat (limited to 'net-mgmt/pmacct')
-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 |