aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb/Makefile
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2011-12-20 12:31:34 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2011-12-20 12:31:34 +0000
commita0eee5ec4e92327a543b34267df670ce0879ea5b (patch)
treeb4e80534604d2b71a3231d6bcce525d2cff16379 /databases/mongodb/Makefile
parent7d9ca670c091e831da71117228e083e10b70bb24 (diff)
downloadports-a0eee5ec4e92327a543b34267df670ce0879ea5b.tar.gz
ports-a0eee5ec4e92327a543b34267df670ce0879ea5b.zip
Notes
Diffstat (limited to 'databases/mongodb/Makefile')
-rw-r--r--databases/mongodb/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/databases/mongodb/Makefile b/databases/mongodb/Makefile
index bdad053e7f1e..836c615a4400 100644
--- a/databases/mongodb/Makefile
+++ b/databases/mongodb/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= mongodb
-PORTVERSION= 1.8.3
+PORTVERSION= 2.0.2
CATEGORIES= databases net
MASTER_SITES= http://downloads.mongodb.org/src/
DISTNAME= ${PORTNAME}-src-r${PORTVERSION}
@@ -15,19 +15,20 @@ MAINTAINER= mail@derzinn.de
COMMENT= A NOSQL distributed document-oriented database
LIB_DEPENDS= boost_system:${PORTSDIR}/devel/boost-libs \
- js:${PORTSDIR}/lang/spidermonkey \
- pcre:${PORTSDIR}/devel/pcre \
+ execinfo.1:${PORTSDIR}/devel/libexecinfo \
nspr4:${PORTSDIR}/devel/nspr \
- execinfo.1:${PORTSDIR}/devel/libexecinfo
+ pcre:${PORTSDIR}/devel/pcre \
+ snappy:${PORTSDIR}/archivers/snappy
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64"
-OPTIONS= DEVEL "Install development files (library and headers)" off
+OPTIONS= DEVEL "Install development files (library and headers)" off \
+ V8 "Use v8 instead of spider monkey for javascript" off
USE_SCONS= yes
SCONS_TARGET= all
-SCONS_ARGS= --prefix=${PREFIX} --cxx=${CXX} --cpp=${CPP}
+SCONS_ARGS= --prefix=${PREFIX} --cxx=${CXX} --cpp=${CPP} --use-system-all
USERS= mongodb
GROUPS= mongodb
@@ -43,6 +44,14 @@ PLIST_SUB+= DEVEL=""
PLIST_SUB+= DEVEL="@comment "
.endif
+.if defined(WITH_V8)
+SCONS_ARGS+= --usev8
+LIB_DEPENDS+= v8:${PORTSDIR}/lang/v8
+.else
+SCONS_ARGS+= --usesm
+LIB_DEPENDS+= js:${PORTSDIR}/lang/spidermonkey
+.endif
+
post-install:
@if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \
${TOUCH} ${PREFIX}/etc/mongodb.conf ; \