blob: 75403791883217869fd8222f2284fb52ff695c3f (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# $NetBSD: Makefile,v 1.15 2004/12/18 15:59:55 jlam Exp $
PKGNAME= postgresql74-lib-${BASE_VERS}
PKGREVISION= 2
SVR4_PKGNAME= pstgl
COMMENT= PostgreSQL database headers and libraries
.include "../../databases/postgresql74/Makefile.common"
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
.include "../../mk/bsd.prefs.mk"
BUILD_DIRS+= ${WRKSRC}/src/include
BUILD_DIRS+= ${WRKSRC}/src/interfaces
BUILD_DIRS+= ${WRKSRC}/src/bin/pg_config
# without this the Darwin build fails
# (-bundle_loader related)
BUILD_DIRS+= ${WRKSRC}/src/backend
BUILD_DIRS+= ${WRKSRC}/src/pl
# As told by Josh Berkus
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" \
&& ${OPSYS} != "NetBSD"
CONFIGURE_ARGS+= --enable-thread-safety
.endif
# handle additional headers installed by hierarchical queries patch
.if defined(PGSQL_USE_HIER) && !empty(PGSQL_USE_HIER:M[yY][eE][sS])
PLIST_SUBST+= PG_HIER=
.else
PLIST_SUBST+= PG_HIER="@comment "
.endif
post-wrapper:
#
# Avoid conflict between "${LOCALBASE}/include/openssl/des.h" and
# "/usr/include/crypt.h" -- we want the definitions in the former.
#
.if (${OPSYS} == "SunOS")
${TOUCH} ${BUILDLINK_DIR}/include/crypt.h
.endif
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} -C src/include install
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} -C src/interfaces install
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} -C src/bin/pg_config install
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} -C src/pl install
cd ${WRKSRC}/src/include && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} install-all-headers
post-install:
${EGREP} -v "^#" ${FILESDIR}/man.lib > ${WRKDIR}/man_tar
cd ${PREFIX}/man && ${TAR} -zxm -T ${WRKDIR}/man_tar \
-f ${WRKSRC}/doc/man.tar.gz
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|