diff options
Diffstat (limited to 'databases/mongodb/Makefile')
-rw-r--r-- | databases/mongodb/Makefile | 21 |
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 ; \ |