summaryrefslogtreecommitdiff
path: root/lang/mit-scheme
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2010-08-02 11:42:34 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2010-08-02 11:42:34 +0000
commit235214d9a5080fd9ca802bc5f1b85761c8a9d571 (patch)
tree878d62ff3f53c39330dca19b351b3baef219ca6f /lang/mit-scheme
parentThis is the PHP extension of the Puzzle library, which is is designed to (diff)
Add OPTIONS for proper PostgreSQL support (previously, PLIST was
incorrect when PostgreSQL client was not installed).
Notes
Notes: svn path=/head/; revision=258626
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