openbsd-ports/databases/postgresql/Makefile

119 lines
3.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.102 2007/02/10 08:01:35 mbalmer Exp $
2006-11-23 16:21:54 -05:00
COMMENT-main= "PostgreSQL RDBMS (client)"
COMMENT-server= "PostgreSQL RDBMS (server)"
COMMENT-docs= "PostgreSQL RDBMS documentation"
VERSION= 8.2.3
DISTNAME= postgresql-${VERSION}
PKGNAME-main= postgresql-client-${VERSION}p0
PKGNAME-server= postgresql-server-${VERSION}
PKGNAME-docs= postgresql-docs-${VERSION}p0
CATEGORIES= databases
SHARED_LIBS= ecpg 6.0 \
ecpg_compat 3.0 \
pgtypes 3.0 \
pq 5.0
HOMEPAGE= http://www.postgresql.org/
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c com_err crypto m readline ssl termcap z
MASTER_SITES= ftp://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/source/v${VERSION}/ \
ftp://ftp5.us.postgresql.org/pub/PostgreSQL/source/v${VERSION}/ \
ftp://ftp5.es.postgresql.org/mirror/postgresql/source/v${VERSION}/ \
ftp://ftp.postgresql.org/pub/source/v${VERSION}/
2006-11-23 16:21:54 -05:00
MULTI_PACKAGES= -docs -main -server
2001-02-22 14:28:12 -05:00
# The -client SUBPACKAGE should build and run fine on static arches,
# but the server requires loadable library support. Until we figure
# out the correct incantation to not build the server on those systems,
# simply don't build for them, yet.
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
MAKE_FILE= GNUmakefile
SUBST_VARS= VERSION
Upgrade to postgresql 7.1. ok'd espie@ * The package is now called `postgresql' and not `pgsql'. * The default user that is suggested for the admin account is also `postgresql'. This will work with OpenBSD-current with long username support. If anything breaks please report to the maintainers. * pgwrap is no longer shipped or supported * Please note, you will HAVE TO BACKUP your old data if you are upgrading from a previous release of postgresql. Do this before removing the old pgsql package. From the announcement last weekend: Key New Features and Capabilities of Version 7.1 Include: * Write-ahead Log (WAL) increases data integrity and processing speed. To maintain database consistency in case of an operating system crash, previous releases of PostgreSQL have forced all all data modifications to disk before each transaction commit. With WAL, only one log file must be flushed to disk, greatly improving performance. (Tech note: can eliminate use of -F in to disable disk flushes) * TOAST (The Oversized-Attribute Storage Technique) Past releases had compiled-in row length limit typically between 8Kb & 32Kb. This restriction made storage of long text fields difficult, cumbersome and slow. TOAST enables rows of any length while maintaing the high performance PostgreSQL users have come to expect. * SQL92 Outer Joins are now supported. (Tech note: eliminates the UNION/NOT IN workaround) * 64-bit C Language Function Manager support The previous C function manager did not handle support 64-bit CPU's (e.g. Alpha, Sun, Itanium). (Tech note: This change should not impact existing custom functions developed for past versions, but performance will be improved through rewriting to use the new call interface.) * Complex Queries that are better, stronger and faster Many complex queries were unsupported in previous releases. With v7.1 combinations of views, aggregates, UNION, LIMIT, cursors, subqueries, and inherited tables are enabled. Inherited tables are now accessed by default, and subqueries in FROM are now supported.
2001-04-21 14:25:42 -04:00
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
.include <bsd.own.mk>
CONFIGURE_ARGS= --disable-rpath --with-openssl=/usr \
--with-perl \
--enable-integer-datetimes \
--includedir="${PREFIX}/include/postgresql" \
--datadir="${PREFIX}/share/postgresql" \
--with-docdir="${PREFIX}/share/doc/postgresql" \
--with-openssl
.if ${KERBEROS5} == "yes"
CONFIGURE_ARGS+=--with-krb5 --with-includes=/usr/include/kerberosV
.endif
# There is no spinlock support for hppa yet. Until we have access to
# a system to get this working, disable them for now. There is
# (apparently) a serious performance hit doing this.
.if ${MACHINE_ARCH} == "hppa"
CONFIGURE_ARGS+=--disable-spinlocks
.endif
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/config
2000-11-30 14:23:14 -05:00
INSTALL_TARGET= install
2006-11-23 16:21:54 -05:00
WANTLIB-server= ${WANTLIB} perl
2006-11-23 16:21:54 -05:00
LIB_DEPENDS-server= pq.>=4:postgresql-client-${VERSION}:databases/postgresql
WANTLIB-docs=
PKG_ARCH-docs= *
WANTLIB-server+= util
2006-01-07 06:11:17 -05:00
MAKE_ENV= LIBpq_MAJOR=${LIBpq_VERSION:R} \
LIBpq_MINOR=${LIBpq_VERSION:E} \
LIBecpg_MAJOR=${LIBecpg_VERSION:R} \
LIBecpg_MINOR=${LIBecpg_VERSION:E} \
LIBecpg_compat_MAJOR=${LIBecpg_compat_VERSION:R} \
LIBecpg_compat_MINOR=${LIBecpg_compat_VERSION:E} \
LIBpgtypes_MAJOR=${LIBpgtypes_VERSION:R} \
LIBpgtypes_MINOR=${LIBpgtypes_VERSION:E}
# Regression tests must be done manually and not as root. Successful
# runs have been achieved on the i386 using the following:
#
# $ ulimit -p 128
# $ ulimit -n 1024
# $ make regress NO_REGRESS=No
#
# Note, you may also need to change a variety of SYSV IPC parameters.
# See files/README.OpenBSD for more details
NO_REGRESS= Yes
DOCS= ${WRKSRC}/COPYRIGHT ${WRKSRC}/HISTORY \
${WRKSRC}/INSTALL ${WRKSRC}/README \
${WRKSRC}/doc/README.mb.big5 ${WRKSRC}/doc/README.mb.jp \
${WRKSRC}/doc/FAQ ${WRKSRC}/doc/FAQ_DEV ${WRKSRC}/doc/TODO
1999-11-10 21:24:29 -05:00
post-install:
Upgrade to postgresql 7.1. ok'd espie@ * The package is now called `postgresql' and not `pgsql'. * The default user that is suggested for the admin account is also `postgresql'. This will work with OpenBSD-current with long username support. If anything breaks please report to the maintainers. * pgwrap is no longer shipped or supported * Please note, you will HAVE TO BACKUP your old data if you are upgrading from a previous release of postgresql. Do this before removing the old pgsql package. From the announcement last weekend: Key New Features and Capabilities of Version 7.1 Include: * Write-ahead Log (WAL) increases data integrity and processing speed. To maintain database consistency in case of an operating system crash, previous releases of PostgreSQL have forced all all data modifications to disk before each transaction commit. With WAL, only one log file must be flushed to disk, greatly improving performance. (Tech note: can eliminate use of -F in to disable disk flushes) * TOAST (The Oversized-Attribute Storage Technique) Past releases had compiled-in row length limit typically between 8Kb & 32Kb. This restriction made storage of long text fields difficult, cumbersome and slow. TOAST enables rows of any length while maintaing the high performance PostgreSQL users have come to expect. * SQL92 Outer Joins are now supported. (Tech note: eliminates the UNION/NOT IN workaround) * 64-bit C Language Function Manager support The previous C function manager did not handle support 64-bit CPU's (e.g. Alpha, Sun, Itanium). (Tech note: This change should not impact existing custom functions developed for past versions, but performance will be improved through rewriting to use the new call interface.) * Complex Queries that are better, stronger and faster Many complex queries were unsupported in previous releases. With v7.1 combinations of views, aggregates, UNION, LIMIT, cursors, subqueries, and inherited tables are enabled. Inherited tables are now accessed by default, and subqueries in FROM are now supported.
2001-04-21 14:25:42 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/postgresql
${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/postgresql
2001-03-10 14:27:15 -05:00
@sed -e s#!!PREFIX!!#${TRUEPREFIX}#g ${FILESDIR}/README.OpenBSD > \
${WRKBUILD}/README.OpenBSD
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
${PREFIX}/share/doc/postgresql
1999-11-10 21:24:29 -05:00
.include <bsd.port.mk>