From e927fede3503b148b91eecca9c4bae621486e377 Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Thu, 11 Jun 2015 16:34:14 +0000 Subject: - Cleanup previous commit and fix dependency issues --- net-mgmt/pmacct/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'net-mgmt') 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 - -.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" -CONFIGURE_ARGS+=--enable-64bit -.endif +.include .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 + +.if ${ARCH} == "amd64" || ${ARCH} == "sparc64" +CONFIGURE_ARGS+=--enable-64bit +.endif + post-patch: @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure -- cgit v1.2.3