From 89d3cf7a9f96f33b992270212d4e1aca34bc7d8d Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Fri, 3 Oct 2003 21:49:19 +0000 Subject: Add a cast of tunables (mostly for for development and debugging) and upddate the port for 7.4 beta 4. --- databases/postgresql-devel/Makefile | 48 +++++++++++++++++++++++++++++----- databases/postgresql-devel/distinfo | 2 +- databases/postgresql-devel/pkg-message | 2 +- 3 files changed, 44 insertions(+), 8 deletions(-) (limited to 'databases') diff --git a/databases/postgresql-devel/Makefile b/databases/postgresql-devel/Makefile index 131229431445..e43dced82416 100644 --- a/databases/postgresql-devel/Makefile +++ b/databases/postgresql-devel/Makefile @@ -6,7 +6,7 @@ # PORTNAME?= postgresql -PORTVERSION?= 7.4.b3.2003.09.30 +PORTVERSION?= 7.4.b4.2003.10.03 CATEGORIES?= databases MASTER_SITES= http://freebsd.sean.chittenden.org/ports/ \ http://people.freebsd.org/~seanc/ports/ @@ -17,6 +17,7 @@ DIST_SUBDIR= postgresql MAINTAINER?= seanc@FreeBSD.org COMMENT= Development snapshots of PostgreSQL's latest features +CONFIGURE_ENV+= DOCBOOKSTYLE=${LOCALBASE}/share/sgml/docbook/3.1/ USE_BZIP2= YES USE_GMAKE= YES USE_PERL5_BUILD= YES @@ -93,6 +94,23 @@ INSTALL_TARGET+= install-all-headers MAKEFILE= GNUmakefile .endif +.if defined(WITHOUT_SPINLOCKS) +CONFIGURE_ARGS+= --disable-spinlocks +.endif + +.if defined(WITH_CASSERT) +CONFIGURE_ARGS+= --enable-cassert +.endif + +.if defined(WITH_JDBC) +CONFIGURE_ARGS+= --with-java +.endif + +.if defined(WITH_KRB5) +CONFIGURE_ARGS+= --with-krb5="`${KRB5CONF} --prefix krb5`" +LDFLAGS+= `${KRB5CONF} --libs krb5` +.endif + .if defined(WITH_MIT_KRB5) KRB5CONF= ${LOCALBASE}/bin/krb5-config WITH_KRB5= yes @@ -104,27 +122,44 @@ LIB_DEPENDS+= krb5.3:${PORTSDIR}/security/krb5 WITH_KRB5= yes .endif -.if defined(WITH_KRB5) -CONFIGURE_ARGS+= --with-krb5="`${KRB5CONF} --prefix krb5`" -LDFLAGS+= `${KRB5CONF} --libs krb5` -.endif - .if defined(WITH_OPTIMIZED_CFLAGS) CFLAGS+= -O3 -funroll-loops .endif +.if defined(WITH_PERL) +CONFIGURE_ARGS+= --with-perl +.endif + +.if defined(WITH_PYTHON) +CONFIGURE_ARGS+= --with-python +.endif + +.if defined(WITH_RENDEZVOUS) +CONFIGURE_ARGS+= --with-rendezvous +.endif + +.if defined(WITH_TCL) +CONFIGURE_ARGS+= --with-tcl +.endif + pre-everything:: @${SH} ${PKGDIR}/pkg-install ${PORTNAME} BACKUPWARNING @${ECHO} "" @${ECHO} "${PORTNAME} has several tunables that can be used to configure PostgreSQL:" @${ECHO} "" + @${ECHO} " WITH_CASSERT Builds with C Asserts (debug opt, slows perf)" @${ECHO} " WITH_DEBUG Builds with debugging symbols" @${ECHO} " WITH_HEIMDAL_KRB5 Builds with Heimdal's kerberos support" + @${ECHO} " WITH_JDBC Builds with JDBC support" @${ECHO} " WITH_MIT_KRB5 Builds with MIT's kerberos support" @${ECHO} " WITH_OPTIMIZED_CFLAGS Builds with compiler optimizations (-O3)" + @${ECHO} " WITH_PERL Builds with pl/Perl support" + @${ECHO} " WITH_PYTHON Builds with pl/Python support" @${ECHO} " WITH_PGBLOCKSIZE It's possible to change the blocksize to \"16K\"" @${ECHO} " or \"32K\" (defaults to 8K and different" @${ECHO} " block sizes require a dump, initdb, reload!)" + @${ECHO} " WITH_RENDEZVOUS Builds with Rendezvous support" + @${ECHO} " WITH_TCL Builds with pl/tcl support" @${ECHO} " WITHOUT_GETTEXT Skips building with support for" @${ECHO} " internationalized error messages" @${ECHO} " WITHOUT_GNUGETOPT Don't install GNU getopt (will" @@ -132,6 +167,7 @@ pre-everything:: @${ECHO} " WITHOUT_PGCRYPTO Builds without pgcrypto support" @${ECHO} " WITHOUT_SERVER Installs the headers and libraries for" @${ECHO} " PostgreSQL clients" + @${ECHO} " WITHOUT_SPINLOCKS Builds without spin locks" @${ECHO} " WITHOUT_SSL Builds without OpenSSL support" @${ECHO} "" @${ECHO} "" diff --git a/databases/postgresql-devel/distinfo b/databases/postgresql-devel/distinfo index dd473522b7b3..ec53aafcde2b 100644 --- a/databases/postgresql-devel/distinfo +++ b/databases/postgresql-devel/distinfo @@ -1,4 +1,4 @@ -MD5 (postgresql/postgresql-7.4.b3.2003.09.30.tar.bz2) = d4bbe0f4239b4f72e1de12bb222b73e8 +MD5 (postgresql/postgresql-7.4.b4.2003.10.03.tar.bz2) = 843ad643418c414878d85904881b92b4 MD5 (postgresql/patch-pgblocksize-16K) = 2ac9dac033302e9ce15816db0e346d55 MD5 (postgresql/patch-pgblocksize-32K) = 0910cbfbecbb25e2bd23ebe50eb29287 MD5 (postgresql/patch-pgblocksize-65K) = 0e197b76e262bb5efe1ebf0f5c0a80ee diff --git a/databases/postgresql-devel/pkg-message b/databases/postgresql-devel/pkg-message index e839fed675cd..69ed0996e74e 100644 --- a/databases/postgresql-devel/pkg-message +++ b/databases/postgresql-devel/pkg-message @@ -39,7 +39,7 @@ setting WITH_PGBLOCKSIZE to either "16K" or "32K". Changing block sizes has uncertain performance implications and can result in faster operation, in other cases slower. Benchmarking and testing your installation is *highly recommended* before using these values in any -form of production! When changing block sizes, it is necesary to +form of production! When changing block sizes, it is necessary to dump, initdb, and reload data when changing block sizes. Be careful when switching from databases/postgresql-devel and databases/postgresql7 or from databases/postgresql-devel -> src -- cgit v1.2.3