3 PKGNAME= postgresql83-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/postgresql83/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/backend/snowball
24 BUILD_DIRS+= src/timezone
27 # PostgreSQL has loadable server-side language modules.
29 # Explicitly set DLOPEN_REQUIRE_PTHREADS to "no" on NetBSD as NetBSD-2.x
30 # had problems with mixing dlopen() and pthreads, which blows up in
31 # PostgreSQL's backend (pkg/28729). This works on older and newer
32 # versions of NetBSD as well since they don't have the bad interaction
33 # 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.
41 .if !empty(USE_LIBLTDL:M[yY][eE][sS])
43 . include "../../devel/libltdl/buildlink3.mk"
46 PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql83-server
47 PKG_SUPPORTED_OPTIONS= gssapi krb5 ldap pam
48 .include "../../databases/postgresql83/options.mk"
50 # PGUSER username of the database administrator
51 # PGGROUP group of the database administrator
52 # PGHOME home directory of the database administrator and location of
56 PGHOME?= ${PREFIX}/${PGUSER}
57 FILES_SUBST+= PGUSER=${PGUSER}
58 FILES_SUBST+= PGGROUP=${PGGROUP}
59 FILES_SUBST+= PGHOME=${PGHOME}
62 PKG_GROUPS_VARS+= PGGROUP
63 PKG_USERS_VARS+= PGUSER
65 PKG_GROUPS= ${PGGROUP}
66 PKG_USERS= ${PGUSER}:${PGGROUP}
67 PKG_GECOS.${PGUSER}= PostgreSQL database administrator
68 PKG_HOME.${PGUSER}= ${PGHOME}
69 PKG_SHELL.${PGUSER}= ${SH}
73 .include "../../databases/postgresql83-client/buildlink3.mk"
74 .include "../../security/openssl/buildlink3.mk"
76 # Avoid conflict between "${SSLBASE}/include/openssl/des.h" and
77 # "/usr/include/crypt.h" -- we want the definitions in the former.
79 .if ${OPSYS} == "SunOS"
80 touch ${BUILDLINK_DIR}/include/crypt.h
84 ${RUN} ${_ULIMIT_CMD} \
85 cd ${WRKSRC}/src/backend && \
86 env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
87 ../../src/include/parser/parse.h \
88 ../../src/include/utils/fmgroids.h
89 ${RUN}${_ULIMIT_CMD} \
90 cd ${WRKSRC}/src/port && \
91 env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS}
93 .include "../../mk/bsd.pkg.mk"