3 PKGNAME= postgresql82-server-${BASE_VERS}
4 COMMENT= PostgreSQL database server programs
6 PKG_DESTDIR_SUPPORT= user-destdir
8 # mips has no TAS implementation
9 NOT_FOR_PLATFORM= *-*-mips
11 .include "../../databases/postgresql82/Makefile.common"
13 # Use shlibtool (invoked as "$(LIBTOOL)") to build modules.
15 PKG_LIBTOOL= ${PKG_SHLIBTOOL}
17 MESSAGE_SRC= ${.CURDIR}/MESSAGE
19 CONFIGURE_ARGS+= --with-openssl
21 BUILD_DIRS= src/backend
22 BUILD_DIRS+= src/backend/utils/mb/conversion_procs
23 BUILD_DIRS+= src/timezone
26 # PostgreSQL has loadable server-side language modules.
28 # Explicitly set DLOPEN_REQUIRE_PTHREADS to "no" on NetBSD as NetBSD-2.x
29 # had problems with mixing dlopen() and pthreads, which blows up in
30 # PostgreSQL's backend (pkg/28729). This works on older and newer
31 # versions of NetBSD as well since they don't have the bad interaction
32 # between dlopen() and pthreads.
34 .if ${OPSYS} == "NetBSD"
35 DLOPEN_REQUIRE_PTHREADS= no
37 .include "../../mk/dlopen.buildlink3.mk"
39 # If we're using libltdl to provide "dlopen" functionality, then add the
40 # dependency and make sure that we link against -lltdl.
42 .if !empty(USE_LIBLTDL:M[yY][eE][sS])
44 . include "../../devel/libltdl/buildlink3.mk"
47 PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql82-server
48 PKG_SUPPORTED_OPTIONS= krb5 pam ldap
49 .include "../../databases/postgresql82/options.mk"
51 # PGUSER username of the database administrator
52 # PGGROUP group of the database administrator
53 # PGHOME home directory of the database administrator and location of
58 PGHOME?= ${PREFIX}/${PGUSER}
59 FILES_SUBST+= PGUSER=${PGUSER}
60 FILES_SUBST+= PGGROUP=${PGGROUP}
61 FILES_SUBST+= PGHOME=${PGHOME}
64 PKG_GROUPS_VARS+= PGGROUP
65 PKG_USERS_VARS+= PGUSER
67 PKG_GROUPS= ${PGGROUP}
68 PKG_USERS= ${PGUSER}:${PGGROUP}
69 PKG_GECOS.${PGUSER}= PostgreSQL database administrator
70 PKG_HOME.${PGUSER}= ${PGHOME}
71 PKG_SHELL.${PGUSER}= ${SH}
75 .include "../../databases/postgresql82-client/buildlink3.mk"
76 .include "../../security/openssl/buildlink3.mk"
78 # Avoid conflict between "${SSLBASE}/include/openssl/des.h" and
79 # "/usr/include/crypt.h" -- we want the definitions in the former.
82 .if ${OPSYS} == "SunOS"
83 touch ${BUILDLINK_DIR}/include/crypt.h
87 ${RUN} ${_ULIMIT_CMD} \
88 cd ${WRKSRC}/src/backend && \
89 env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
90 ../../src/include/parser/parse.h \
91 ../../src/include/utils/fmgroids.h
92 ${RUN} ${_ULIMIT_CMD} \
93 cd ${WRKSRC}/src/port && \
94 env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS}
96 .include "../../mk/bsd.pkg.mk"