blob: 94d93104d1a2e1aa4b2f34a41134722d7416e0a2 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# $NetBSD: Makefile,v 1.11 2005/08/23 11:48:47 rillig Exp $
PKGNAME= postgresql80-server-${BASE_VERS}
PKGREVISION= 2
COMMENT= PostgreSQL database server programs
# mips has no TAS implementation
NOT_FOR_PLATFORM= *-*-mips
.include "../../databases/postgresql80/Makefile.common"
# Use shlibtool (invoked as "$(LIBTOOL)") to build modules.
USE_LIBTOOL= yes
PKG_LIBTOOL= ${PKG_SHLIBTOOL}
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
MESSAGE_SRC= ${.CURDIR}/MESSAGE
CONFIGURE_ARGS+= --with-openssl
BUILD_DIRS= ${WRKSRC}/src/backend
BUILD_DIRS+= ${WRKSRC}/src/backend/utils/mb/conversion_procs
BUILD_DIRS+= ${WRKSRC}/src/timezone
BUILD_DIRS+= ${WRKSRC}/src/pl
# PostgreSQL has loadable server-side language modules.
#
# Explicitly set DLOPEN_REQUIRE_PTHREADS to "no" on NetBSD as NetBSD-2.x
# had problems with mixing dlopen() and pthreads, which blows up in
# PostgreSQL's backend (pkg/28729). This works on older and newer
# versions of NetBSD as well since they don't have the bad interaction
# between dlopen() and pthreads.
#
.if ${OPSYS} == "NetBSD"
DLOPEN_REQUIRE_PTHREADS= no
.endif
.include "../../mk/dlopen.buildlink3.mk"
# If we're using libltdl to provide "dlopen" functionality, then add the
# dependency and make sure that we link against -lltdl.
#
.if !empty(USE_LIBLTDL:M[yY][eE][sS])
DL_LIBS+= -lltdl
. include "../../devel/libltdl/buildlink3.mk"
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql80-server
PKG_SUPPORTED_OPTIONS= pam
.include "../../databases/postgresql80/options.mk"
# PGUSER username of the database administrator
# PGGROUP group of the database administrator
# PGHOME home directory of the database administrator and location of
# the databases
#
PGUSER?= pgsql
PGGROUP?= pgsql
PGHOME?= ${PREFIX}/${PGUSER}
FILES_SUBST+= PGUSER=${PGUSER}
FILES_SUBST+= PGGROUP=${PGGROUP}
FILES_SUBST+= PGHOME=${PGHOME}
BUILD_DEFS+= PGUSER PGGROUP PGHOME
PKG_USERS= ${PGUSER}:${PGGROUP}::PostgreSQL\ database\ administrator:${PGHOME}:${SH}
PKG_GROUPS= ${PGGROUP}
RCD_SCRIPTS= pgsql
.include "../../databases/postgresql80-client/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
# Avoid conflict between "${SSLBASE}/include/openssl/des.h" and
# "/usr/include/crypt.h" -- we want the definitions in the former.
#
post-wrapper:
.if ${OPSYS} == "SunOS"
${TOUCH} ${BUILDLINK_DIR}/include/crypt.h
.endif
pre-build:
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
cd ${WRKSRC}/src/backend && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
../../src/include/parser/parse.h \
../../src/include/utils/fmgroids.h
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
cd ${WRKSRC}/src/port && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS}
.include "../../mk/bsd.pkg.mk"
|