diff options
author | crees <crees@FreeBSD.org> | 2011-12-01 02:49:31 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2011-12-01 02:49:31 +0800 |
commit | b0b6a00046a0809f625eeda30d797d91195bb6ff (patch) | |
tree | fa5e32623de946ee90e0e01f6d399f6822af3d03 /databases | |
parent | 33c3da8ad1528286dab7fa3bbd1031715866b3be (diff) | |
download | freebsd-ports-gnome-b0b6a00046a0809f625eeda30d797d91195bb6ff.tar.gz freebsd-ports-gnome-b0b6a00046a0809f625eeda30d797d91195bb6ff.tar.zst freebsd-ports-gnome-b0b6a00046a0809f625eeda30d797d91195bb6ff.zip |
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')
-rw-r--r-- | databases/postgresql84-server/Makefile | 15 | ||||
-rw-r--r-- | databases/postgresql90-server/Makefile | 7 | ||||
-rw-r--r-- | databases/postgresql91-server/Makefile | 7 | ||||
-rw-r--r-- | databases/postgresql92-server/Makefile | 7 |
4 files changed, 31 insertions, 5 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 diff --git a/databases/postgresql90-server/Makefile b/databases/postgresql90-server/Makefile index a8e54570b794..bde3bc16ef97 100644 --- a/databases/postgresql90-server/Makefile +++ b/databases/postgresql90-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} @@ -129,6 +130,9 @@ 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) @@ -186,6 +190,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 diff --git a/databases/postgresql91-server/Makefile b/databases/postgresql91-server/Makefile index 16b46da8d470..0bc8098de2af 100644 --- a/databases/postgresql91-server/Makefile +++ b/databases/postgresql91-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} @@ -129,6 +130,9 @@ 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) @@ -186,6 +190,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 .endif diff --git a/databases/postgresql92-server/Makefile b/databases/postgresql92-server/Makefile index 16b46da8d470..0bc8098de2af 100644 --- a/databases/postgresql92-server/Makefile +++ b/databases/postgresql92-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} @@ -129,6 +130,9 @@ 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) @@ -186,6 +190,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 .endif |