dc40bcec01
(suggested by lukem), group z, r and f flags. some whitespace cleanup.
35 lines
1 KiB
Makefile
35 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2003/04/10 20:10:16 grant Exp $
|
|
|
|
PKGNAME= postgresql-client-${BASE_VERS}
|
|
SVR4_PKGNAME= pstgc
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
.include "../postgresql/Makefile.common"
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
|
|
CONFIGURE_ARGS+= --with-zlib
|
|
CONFIGURE_ARGS+= --with-readline
|
|
MAKE_ENV+= INSTALLED_LIBPQ=1
|
|
|
|
BUILD_DIRS= ${WRKSRC}/src/bin
|
|
|
|
pre-build:
|
|
cd ${WRKSRC}/src/bin/psql && \
|
|
${RM} -f pqsignal.h && \
|
|
${LN} -sf ${BUILDLINK_DIR}/include/postgresql/server/libpq/pqsignal.h pqsignal.h
|
|
for file in parser/parse.h utils/fmgroids.h; do \
|
|
src="${BUILDLINK_DIR}/include/postgresql/server/$$file"; \
|
|
dest="${WRKSRC}/src/include/$$file"; \
|
|
${RM} -f $$dest; \
|
|
${LN} -sf $$src $$dest; \
|
|
done
|
|
|
|
post-install:
|
|
cd ${PREFIX}/man && \
|
|
${PAX} -O -crzf ${WRKSRC}/doc/man.tar.gz `${GREP} -v ^# ${FILESDIR}/exclude`
|
|
|
|
.include "../postgresql-lib/buildlink2.mk"
|
|
.include "../../devel/readline/buildlink2.mk"
|
|
.include "../../devel/zlib/buildlink2.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|