pkgsrc/databases/postgresql91-server/Makefile
adam bfd12bfb1e Version 9.1 delivers several features which users have been requesting for
years, removing roadblocks to deploying new or ported applications on
PostgreSQL. These include:
* Synchronous Replication: enable high-availability with consistency across
  multiple servers
* Per-Column Collations: support linguistically-correct sorting per database,
  table or column.
* Unlogged Tables: greatly improves performance for ephemeral data

Our community of contributors innovates with cutting-edge features. Version 9.1
includes several which are new to the database industry, such as:
* K-Nearest-Neighbor Indexing: index on "distance" for faster location and text
  search queries
* Serializable Snapshot Isolation: keeps concurrent transactions consistent
  without blocking, using "true serializability"
* Writeable Common Table Expressions: execute complex multi-stage data updates
  in a single query
* Security-Enhanced Postgres: deploy military-grade security and Mandatory
  Access Control
2011-09-15 08:27:38 +00:00

85 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2011/09/15 08:28:29 adam Exp $
PKGNAME= ${DISTNAME:C/-/91-server-/}
COMMENT= PostgreSQL database server programs
PKG_DESTDIR_SUPPORT= user-destdir
# mips has no TAS implementation
NOT_FOR_PLATFORM= *-*-mips
.include "../../databases/postgresql91/Makefile.common"
CONFIGURE_ARGS+= --with-openssl
INSTALL_DIRS= src/backend
INSTALL_DIRS+= src/backend/replication/libpqwalreceiver
INSTALL_DIRS+= src/backend/utils/mb/conversion_procs
INSTALL_DIRS+= src/backend/snowball
INSTALL_DIRS+= src/timezone
INSTALL_DIRS+= src/pl
BUILD_DIRS= src/port
BUILD_DIRS+= ${INSTALL_DIRS}
LIBS.SunOS+= -lintl
# 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
# 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+= PGHOME
ALL_ENV+= INSTALLED_LIBPQ=yes
PKG_GROUPS_VARS+= PGGROUP
PKG_USERS_VARS+= PGUSER
PKG_GROUPS= ${PGGROUP}
PKG_USERS= ${PGUSER}:${PGGROUP}
PKG_GECOS.${PGUSER}= PostgreSQL database administrator
PKG_HOME.${PGUSER}= ${PGHOME}
RCD_SCRIPTS= pgsql
.include "../../databases/postgresql91-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
.include "../../mk/bsd.pkg.mk"
# Because RCD_SCRIPTS_EXAMPLEDIR isn't configurable (yet?),
# we override it here:
.if !empty(PG_SUBPREFIX)
RCD_SCRIPTS_EXAMPLEDIR:= $(PG_SUBPREFIX:/=)/$(RCD_SCRIPTS_EXAMPLEDIR)
.endif