openbsd-ports/databases/pgpool/Makefile

41 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2019/07/12 21:15:34 sthen Exp $
COMMENT= connection pool server for PostgreSQL
DISTNAME= pgpool-II-3.7.5
CATEGORIES= databases
HOMEPAGE= https://www.pgpool.net/
MAINTAINER= Pierre-Emmanuel Andre <pea@openbsd.org>
SHARED_LIBS= pcp 0.0
# BSD
PERMIT_PACKAGE= Yes
MASTER_SITES= https://www.pgpool.net/mediawiki/images/
WANTLIB= c crypto m pq ssl pthread
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-openssl
USE_GMAKE= Yes
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/pgpool-II/
BUILD_DEPENDS = databases/postgresql,-server
LIB_DEPENDS = databases/postgresql
post-install:
@cd ${WRKSRC}/src/sql/pgpool-regclass && \
env -i ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
-f ${MAKE_FILE} ${ALL_TARGET} && \
env -i ${MAKE_ENV} \
PREFIX=${WRKINST}${PREFIX} ${DESTDIRNAME}=${WRKINST} TRUEPREFIX=${PREFIX} \
${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} -f ${MAKE_FILE} ${FAKE_TARGET}
${INSTALL_MAN} ${WRKDIST}/./doc/src/sgml/man8/pgpool.8 ${PREFIX}/man/man8/
.include <bsd.port.mk>