aboutsummaryrefslogtreecommitdiffstats
path: root/lang/mit-scheme
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2010-08-02 19:42:34 +0800
committerolgeni <olgeni@FreeBSD.org>2010-08-02 19:42:34 +0800
commit8ff487b14dd8986fd680a57f85bb04b2a88aa810 (patch)
tree8ea2f1ec8aa264de0f63df324f5c58a6ca71483a /lang/mit-scheme
parent200eaba7d32368ad890fc8fec2c44ddcd176c388 (diff)
downloadfreebsd-ports-gnome-8ff487b14dd8986fd680a57f85bb04b2a88aa810.tar.gz
freebsd-ports-gnome-8ff487b14dd8986fd680a57f85bb04b2a88aa810.tar.zst
freebsd-ports-gnome-8ff487b14dd8986fd680a57f85bb04b2a88aa810.zip
Add OPTIONS for proper PostgreSQL support (previously, PLIST was
incorrect when PostgreSQL client was not installed).
Diffstat (limited to 'lang/mit-scheme')
-rw-r--r--lang/mit-scheme/Makefile11
-rw-r--r--lang/mit-scheme/pkg-plist2
2 files changed, 12 insertions, 1 deletions
diff --git a/lang/mit-scheme/Makefile b/lang/mit-scheme/Makefile
index 7087fab39512..8fbdebcefef6 100644
--- a/lang/mit-scheme/Makefile
+++ b/lang/mit-scheme/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mit-scheme
PORTVERSION= 9.0.1
+PORTREVISION= 1
CATEGORIES= lang scheme
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= mit-scheme/stable.pkg/${PORTVERSION}
@@ -19,8 +20,18 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/mit-scheme-${PORTVERSION}/src/
+OPTIONS= POSTGRESQL "Enable PostgreSQL support" off
+
.include <bsd.port.pre.mk>
+.if defined(WITH_POSTGRESQL)
+PLIST_SUB+= POSTGRESQL=""
+CONFIGURE_ARGS+=--with-libpq
+.else
+PLIST_SUB+= POSTGRESQL="@comment "
+CONFIGURE_ARGS+=--without-libpq
+.endif
+
MIT_SCHEME_ARCH=i386
DISTNAME= ${PORTNAME}-${PORTVERSION}-${MIT_SCHEME_ARCH}
diff --git a/lang/mit-scheme/pkg-plist b/lang/mit-scheme/pkg-plist
index 9f5c384147c6..c3ad2965cca9 100644
--- a/lang/mit-scheme/pkg-plist
+++ b/lang/mit-scheme/pkg-plist
@@ -235,7 +235,7 @@ lib/mit-scheme-%%MIT_SCHEME_ARCH%%/imail/imap-syntax.com
lib/mit-scheme-%%MIT_SCHEME_ARCH%%/imail/load.scm
lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prbfish.so
lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prmd5.so
-lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prpgsql.so
+%%POSTGRESQL%%lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prpgsql.so
lib/mit-scheme-%%MIT_SCHEME_ARCH%%/optiondb.scm
lib/mit-scheme-%%MIT_SCHEME_ARCH%%/runtime/advice.bci
lib/mit-scheme-%%MIT_SCHEME_ARCH%%/runtime/apply.bci