mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- Fix build with PostgreSQL (optional, default off)
PR: ports/65644 Submitted by: Krzysztof Stryjek <wtp+netsaint@bsdguru.org>
This commit is contained in:
parent
636967765a
commit
d2e1f44141
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107465
@ -23,6 +23,7 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/netsaint/check_netsaint:${PORTSDIR}/net-mgmt/n
|
||||
|
||||
USE_PERL5= yes
|
||||
USE_GETOPT_LONG= yes
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-command-user=netsaint \
|
||||
--with-command-grp=www \
|
||||
@ -47,14 +48,19 @@ CONFIGURE_ARGS+=--with-mysql-lib=${LOCALBASE}/lib/mysql \
|
||||
.if defined(WITH_POSTGRES)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
CONFIGURE_ARGS+=--with-pgsql-lib=${LOCALBASE}/pgsql \
|
||||
--with-pgsql-inc=${LOCALBASE}/pgsql \
|
||||
CONFIGURE_ARGS+=--with-pgsql-lib=${LOCALBASE}/lib \
|
||||
--with-pgsql-inc=${LOCALBASE}/include \
|
||||
--with-pgsql-xdata
|
||||
.endif
|
||||
|
||||
pre-fetch:
|
||||
@${SH} ${SCRIPTDIR}/checkps
|
||||
|
||||
post-patch:
|
||||
.if defined(WITH_POSTGRES)
|
||||
@${REINPLACE_CMD} -e 's,pgsql/,,' ${WRKSRC}/xdata/x[cers]ddb.c
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user