blob: 113eabbab3271431c62082d926f9f09844c808f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.7 2005/12/05 23:55:04 rillig Exp $
PKGNAME= postgresql73-client-${BASE_VERS}
SVR4_PKGNAME= pstgc
COMMENT= PostgreSQL database client programs
.include "../../databases/postgresql73/Makefile.common"
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
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} -crzf ${WRKSRC}/doc/man.tar.gz `${GREP} -v ^# ${FILESDIR}/exclude`
.include "../../databases/postgresql73-lib/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|