diff options
author | itetcu <itetcu@FreeBSD.org> | 2009-06-17 17:18:57 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2009-06-17 17:18:57 +0800 |
commit | 5c6891e235c6328cef66b76d6e38a2ec016d301b (patch) | |
tree | 112eaf4865d30808e301f690539ce0fca07d293f /dns | |
parent | 974abf3d836aecddacb092a8bb6d4850ec50052f (diff) | |
download | freebsd-ports-5c6891e235c6328cef66b76d6e38a2ec016d301b.tar.gz freebsd-ports-5c6891e235c6328cef66b76d6e38a2ec016d301b.tar.zst freebsd-ports-5c6891e235c6328cef66b76d6e38a2ec016d301b.zip |
Fix build with with custom LOCALBASE.
Submitted by: Sahil Tandon
Reported by: QATty
Approved by: portmgr (itetcu@)
No cookie for: maintainer
Diffstat (limited to 'dns')
-rw-r--r-- | dns/powerdns-devel/Makefile | 7 |
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) |