mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
Fix build with with custom LOCALBASE.
Submitted by: Sahil Tandon Reported by: QATty Approved by: portmgr (itetcu@) No cookie for: maintainer
This commit is contained in:
parent
65e6276151
commit
fba949940d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236113
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user