diff options
author | itetcu <itetcu@FreeBSD.org> | 2009-06-08 18:14:46 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2009-06-08 18:14:46 +0800 |
commit | cb2d5c323c9c6330da1094a86a647525f8040966 (patch) | |
tree | 70ccad187f05a677ee2933a827fc9f8c84c1d456 /dns | |
parent | 9b88b8fd6af03a6490153fb3738a3e9fd56f2b07 (diff) | |
download | freebsd-ports-gnome-cb2d5c323c9c6330da1094a86a647525f8040966.tar.gz freebsd-ports-gnome-cb2d5c323c9c6330da1094a86a647525f8040966.tar.zst freebsd-ports-gnome-cb2d5c323c9c6330da1094a86a647525f8040966.zip |
Fix build with custom LOCALBASE
PR: 135340
Submitted by: Sahil Tandon
Approved by: maintainer
Reported by: QATty
Diffstat (limited to 'dns')
-rw-r--r-- | dns/powerdns/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile index b321ff102d63..57b76e8758ec 100644 --- a/dns/powerdns/Makefile +++ b/dns/powerdns/Makefile @@ -7,6 +7,7 @@ PORTNAME= powerdns PORTVERSION= 2.9.22 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= http://downloads.powerdns.com/releases/ \ http://mirrors.evolva.ro/powerdns.com/releases/ @@ -64,6 +65,7 @@ BROKEN= choose only one SQLite backend version .if defined(WITH_PGSQL) USE_PGSQL?= YES CONFIGURE_MODULES+= "gpgsql" +CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE} PLIST_SUB+= WITHPGSQL="" .else CONFIGURE_ARGS+= --disable-pgsql @@ -124,7 +126,11 @@ post-patch: -e 's;@modulelibs@;@modulelibs@ -llber;' \ ${WRKSRC}/pdns/Makefile.in .endif - +.if defined(WITH_PGSQL) +pre-configure: + @${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) ${INSTALL_DATA} ${PREFIX}/etc/pdns/pdns.conf-dist ${PREFIX}/etc/pdns/pdns.conf |