diff options
author | Chris Rees <crees@FreeBSD.org> | 2011-11-30 18:49:31 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2011-11-30 18:49:31 +0000 |
commit | 166e936d8cf447daf85e41947c78b58d67de5714 (patch) | |
tree | 56d826103431f474ac7a79f10eefa2ab60fb97ca /databases/postgresql84-server | |
parent | - Update to 2.69 (diff) |
Add DTRACE option for postgresql84-server
PR: ports/150431
Submitted by: rpaulo
Fix compilation with GSSAPI
PR: ports/161786
Submitted by: rea
Reviewed by: mandree, John Marshall <john.marshall@riverwillow.com.au>
Mark IGNORE if DTRACE enabled for FreeBSD < 900021 without userland dtrace
PR: ports/152502
Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
Approved by: maintainer timeout (girgen, at least 2 months)
Feature safe: yes
Diffstat (limited to 'databases/postgresql84-server')
-rw-r--r-- | databases/postgresql84-server/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/databases/postgresql84-server/Makefile b/databases/postgresql84-server/Makefile index 8615b4bbbcd1..84ec5103cb49 100644 --- a/databases/postgresql84-server/Makefile +++ b/databases/postgresql84-server/Makefile @@ -47,7 +47,8 @@ CONFIGURE_ARGS+=--with-libraries=${PREFIX}/lib \ --enable-thread-safety CONFIGURE_ENV+= INCLUDES="${INCLUDES}" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS="${PTHREAD_LIBS}" + PTHREAD_LIBS="${PTHREAD_LIBS}" \ + LDFLAGS_SL="${LDFLAGS_SL}" \ PLIST= ${PKGDIR}/pkg-plist${PKGNAMESUFFIX} @@ -81,6 +82,7 @@ CONFIGURE_ENV+= PATH=${PREFIX}/bin:${PATH} .endif .if !defined(SLAVE_ONLY) +OPTIONS+= DTRACE "Build with DTrace probes (server only)" off OPTIONS+= PAM "Build with PAM support (server only)" off OPTIONS+= LDAP "Build with LDAP authentication support" off OPTIONS+= MIT_KRB5 "Build with MIT's kerberos support" off @@ -89,7 +91,7 @@ OPTIONS+= OPTIMIZED_CFLAGS "Builds with compiler optimizations (-O3)" off OPTIONS+= XML "Build with XML data type (server)" on OPTIONS+= TZDATA "Use internal timezone database (server)" on OPTIONS+= DEBUG "Builds with debugging symbols" off -OPTIONS+= GSSAPI "BUild with GSSAPI support" off +OPTIONS+= GSSAPI "Build with GSSAPI support" off # See http://people.freebsd.org/~girgen/postgresql-icu/README.html for more info OPTIONS+= ICU "Use ICU for unicode collation (server)" off @@ -123,6 +125,14 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-icu4 .if !defined(SLAVE_ONLY) PATCH_DIST_STRIP=-p1 +. if defined(WITH_DTRACE) +CONFIGURE_ARGS+=--enable-dtrace +LDFLAGS+= -lelf +. if ${OSVERSION} < 900021 +IGNORE= Need userland DTrace support found in FreeBSD 9.0 +. endif +. endif + . if defined(WITH_PAM) CONFIGURE_ARGS+=--with-pam . endif @@ -176,6 +186,7 @@ CONFIGURE_ARGS+=--with-gssapi # it explicitely: ld --as-needed is used for compilation, # so configure's -lgssapi_krb5 won't go. LDFLAGS+= -lgssapi +LDFLAGS_SL+= -lgssapi .endif .else CONFIGURE_ARGS+=--without-gssapi |