2013-01-31 14:38:42 +01:00
|
|
|
# Created by: Mirko Zinn <mail@derzinn.de>
|
2009-11-19 07:53:27 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mongodb
|
2014-01-29 14:02:50 +01:00
|
|
|
PORTVERSION= 2.4.9
|
2014-02-07 12:44:08 +01:00
|
|
|
PORTREVISION= 1
|
2009-11-19 07:53:27 +01:00
|
|
|
CATEGORIES= databases net
|
2011-06-18 16:06:39 +02:00
|
|
|
MASTER_SITES= http://downloads.mongodb.org/src/
|
2010-04-17 21:33:51 +02:00
|
|
|
DISTNAME= ${PORTNAME}-src-r${PORTVERSION}
|
2009-11-19 07:53:27 +01:00
|
|
|
|
2013-03-29 09:56:13 +01:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2013-03-22 14:10:25 +01:00
|
|
|
COMMENT= NOSQL distributed document-oriented database
|
2009-11-19 07:53:27 +01:00
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
# mongodb is AGPLv3, C++ driver is APACHE20
|
|
|
|
LICENSE= AGPLv3 APACHE20
|
2013-03-29 09:56:13 +01:00
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
2013-10-29 16:48:39 +01:00
|
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
|
|
|
|
libpcre.so:${PORTSDIR}/devel/pcre \
|
|
|
|
libsnappy.so:${PORTSDIR}/archivers/snappy
|
2013-03-29 09:56:13 +01:00
|
|
|
# boost 1.52 from ports make mongod segfaulting with many tests
|
2013-10-29 16:48:39 +01:00
|
|
|
# LIB_DEPENDS+= libboost_system.so:${PORTSDIR}/devel/boost-libs
|
2013-03-29 09:56:13 +01:00
|
|
|
# SCONS_ARGS+= --use-system-boost
|
2009-11-19 07:53:27 +01:00
|
|
|
|
2010-02-27 02:30:28 +01:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64"
|
|
|
|
|
2013-08-13 15:17:49 +02:00
|
|
|
OPTIONS_DEFINE= SM SSL SASL TEST
|
2013-03-29 09:56:13 +01:00
|
|
|
OPTIONS_DEFAULT=SSL
|
|
|
|
SM_DESC= Use SpiderMonkey instead of V8 for JavaScript
|
|
|
|
TEST_DESC= Add support for running regression test
|
2010-12-30 11:29:03 +01:00
|
|
|
|
2014-02-13 14:50:45 +01:00
|
|
|
USES= scons
|
|
|
|
MAKE_ARGS= --prefix=${STAGEDIR}${PREFIX} --cc=${CC} --cxx=${CXX} \
|
2013-08-13 15:17:49 +02:00
|
|
|
--use-system-pcre --use-system-snappy \
|
|
|
|
--full --sharedclient
|
2009-11-19 07:53:27 +01:00
|
|
|
|
2011-04-23 15:45:28 +02:00
|
|
|
USERS= mongodb
|
|
|
|
GROUPS= mongodb
|
|
|
|
|
2009-11-19 07:53:27 +01:00
|
|
|
USE_RC_SUBR= mongod
|
|
|
|
|
2014-02-04 10:27:42 +01:00
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
|
2012-07-13 22:48:50 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2010-12-30 11:29:03 +01:00
|
|
|
|
2013-03-29 09:56:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MSM}
|
2014-02-13 14:50:45 +01:00
|
|
|
MAKE_ARGS+= --usesm --use-system-sm
|
2013-10-29 16:48:39 +01:00
|
|
|
LIB_DEPENDS+= libjs.so:${PORTSDIR}/lang/spidermonkey17
|
2013-03-29 09:56:13 +01:00
|
|
|
.else
|
2014-02-13 14:50:45 +01:00
|
|
|
MAKE_ARGS+= --usev8 --use-system-v8
|
2013-10-29 16:48:39 +01:00
|
|
|
LIB_DEPENDS+= libv8.so:${PORTSDIR}/lang/v8
|
2013-03-29 09:56:13 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
|
|
|
USE_OPENSSL= yes
|
2014-02-13 14:50:45 +01:00
|
|
|
MAKE_ARGS+= --ssl
|
2013-03-29 09:56:13 +01:00
|
|
|
.endif
|
|
|
|
|
2013-08-13 15:17:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MSASL}
|
2014-02-13 14:50:45 +01:00
|
|
|
MAKE_ARGS+= --use-sasl-client
|
2013-10-29 16:48:39 +01:00
|
|
|
LIB_DEPENDS+= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
2013-08-13 15:17:49 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-29 09:56:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MTEST}
|
|
|
|
BUILD_DEPENDS= pymongo>=2.5:${PORTSDIR}/databases/pymongo
|
2014-02-13 14:50:45 +01:00
|
|
|
MAKE_TARGET= all
|
2013-03-29 09:56:13 +01:00
|
|
|
SMOKE_TESTS= smokeAll smokeCppUnittests
|
|
|
|
. if ${PORT_OPTIONS:MSSL}
|
|
|
|
SMOKE_TESTS+= smokeSsl
|
|
|
|
. endif
|
2011-12-20 13:31:34 +01:00
|
|
|
.else
|
2014-02-13 14:50:45 +01:00
|
|
|
MAKE_TARGET= core tools
|
2011-12-20 13:31:34 +01:00
|
|
|
.endif
|
|
|
|
|
2013-10-29 16:48:39 +01:00
|
|
|
.if ${OSVERSION} >= 1000024
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/clang-patch-src_mongo_db_fts_stemmer.cpp \
|
|
|
|
${PATCHDIR}/clang-patch-src_mongo_platform_unordered_map.h \
|
|
|
|
${PATCHDIR}/clang-patch-src_mongo_platform_unordered_set.h \
|
|
|
|
${PATCHDIR}/clang-patch-src_third_party_s2_hash.h
|
|
|
|
.endif
|
|
|
|
|
2013-03-29 09:56:13 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's/\["-O3"\]/"${CFLAGS}"/' \
|
|
|
|
${WRKSRC}/SConstruct
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTEST}
|
|
|
|
test: build-depends build
|
|
|
|
@cd ${BUILD_WRKSRC} && \
|
2014-02-13 14:50:45 +01:00
|
|
|
${SCONS_BIN} ${SCONS_ENV} ${MAKE_ARGS} ${SMOKE_TESTS}
|
2013-03-29 09:56:13 +01:00
|
|
|
.endif
|
|
|
|
|
2014-01-16 00:42:17 +01:00
|
|
|
.include <bsd.port.mk>
|