diff options
author | pav <pav@FreeBSD.org> | 2004-04-19 02:15:33 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-04-19 02:15:33 +0800 |
commit | 8fe309224049b8f23eedb90deaefac92aae51175 (patch) | |
tree | 9d09239038a96c07e6240348bae87a1abecf83b6 /net-mgmt/netsaint | |
parent | 766af2a5d5b78d2a9ea613979737328ba1f572f6 (diff) | |
download | freebsd-ports-graphics-8fe309224049b8f23eedb90deaefac92aae51175.tar.gz freebsd-ports-graphics-8fe309224049b8f23eedb90deaefac92aae51175.tar.zst freebsd-ports-graphics-8fe309224049b8f23eedb90deaefac92aae51175.zip |
- Fix build with PostgreSQL (optional, default off)
PR: ports/65644
Submitted by: Krzysztof Stryjek <wtp+netsaint@bsdguru.org>
Diffstat (limited to 'net-mgmt/netsaint')
-rw-r--r-- | net-mgmt/netsaint/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net-mgmt/netsaint/Makefile b/net-mgmt/netsaint/Makefile index 3b967949df2..9328db12de7 100644 --- a/net-mgmt/netsaint/Makefile +++ b/net-mgmt/netsaint/Makefile @@ -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 |