aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-17 09:18:57 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-17 09:18:57 +0000
commitfba949940d4459bd333e0eb59767502bd5096e2a (patch)
treeb358c27adc08bf94fa805ea7d905a9542da5b948 /dns
parent65e627615178d8731871b5485a06125a0785da85 (diff)
downloadports-fba949940d4459bd333e0eb59767502bd5096e2a.tar.gz
ports-fba949940d4459bd333e0eb59767502bd5096e2a.zip
Notes
Diffstat (limited to 'dns')
-rw-r--r--dns/powerdns-devel/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/dns/powerdns-devel/Makefile b/dns/powerdns-devel/Makefile
index 9c961f80407c..1ff06f3b3424 100644
--- a/dns/powerdns-devel/Makefile
+++ b/dns/powerdns-devel/Makefile
@@ -70,6 +70,7 @@ BROKEN= choose only one SQLite backend version
.if defined(WITH_PGSQL)
USE_PGSQL?= YES
+CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
CONFIGURE_MODULES+= "gpgsql"
PLIST_SUB+= WITHPGSQL=""
.else
@@ -148,8 +149,8 @@ CXXFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB+= WITHOPENDBX="@comment "
.endif
-.if defined(WITH_OPENLDAP)
post-patch:
+.if defined(WITH_OPENLDAP)
${REINPLACE_CMD} -e 's;-I. ;-I. -I${LOCALBASE}/include ;' \
-e 's;la_LDFLAGS =;la_LDFLAGS = -L${LOCALBASE}/lib;' \
${WRKSRC}/modules/ldapbackend/Makefile.in
@@ -157,6 +158,10 @@ post-patch:
-e 's;@modulelibs@;@modulelibs@ -llber;' \
${WRKSRC}/pdns/Makefile.in
.endif
+.if defined(WITH_PGSQL)
+ @${REINPLACE_CMD} -E -e 's;(PGSQL_inc_check="\$$withval/include/pgsql)";\1 \$$withval/include";' \
+ ${WRKSRC}/configure
+.endif
post-install:
.if !exists(${PREFIX}/etc/pdns/pdns.conf)