2009-11-19 06:53:27 +00:00
|
|
|
# New ports collection makefile for: mongodb
|
|
|
|
# Date created: 3 November 2009
|
|
|
|
# Whom: Mirko Zinn <mail@derzinn.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mongodb
|
2011-12-20 12:31:34 +00:00
|
|
|
PORTVERSION= 2.0.2
|
2009-11-19 06:53:27 +00:00
|
|
|
CATEGORIES= databases net
|
2011-06-18 14:06:39 +00:00
|
|
|
MASTER_SITES= http://downloads.mongodb.org/src/
|
2010-04-17 19:33:51 +00:00
|
|
|
DISTNAME= ${PORTNAME}-src-r${PORTVERSION}
|
2009-11-19 06:53:27 +00:00
|
|
|
|
|
|
|
MAINTAINER= mail@derzinn.de
|
|
|
|
COMMENT= A NOSQL distributed document-oriented database
|
|
|
|
|
|
|
|
LIB_DEPENDS= boost_system:${PORTSDIR}/devel/boost-libs \
|
2011-12-20 12:31:34 +00:00
|
|
|
execinfo.1:${PORTSDIR}/devel/libexecinfo \
|
2009-11-19 06:53:27 +00:00
|
|
|
nspr4:${PORTSDIR}/devel/nspr \
|
2011-12-20 12:31:34 +00:00
|
|
|
pcre:${PORTSDIR}/devel/pcre \
|
|
|
|
snappy:${PORTSDIR}/archivers/snappy
|
2009-11-19 06:53:27 +00:00
|
|
|
|
2010-02-27 01:30:28 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64"
|
|
|
|
|
2011-12-20 12:31:34 +00:00
|
|
|
OPTIONS= DEVEL "Install development files (library and headers)" off \
|
|
|
|
V8 "Use v8 instead of spider monkey for javascript" off
|
2010-12-30 10:29:03 +00:00
|
|
|
|
2009-11-19 06:53:27 +00:00
|
|
|
USE_SCONS= yes
|
|
|
|
SCONS_TARGET= all
|
2011-12-20 12:31:34 +00:00
|
|
|
SCONS_ARGS= --prefix=${PREFIX} --cxx=${CXX} --cpp=${CPP} --use-system-all
|
2009-11-19 06:53:27 +00:00
|
|
|
|
2011-04-23 13:45:28 +00:00
|
|
|
USERS= mongodb
|
|
|
|
GROUPS= mongodb
|
|
|
|
|
2009-11-19 06:53:27 +00:00
|
|
|
USE_RC_SUBR= mongod
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2010-12-30 10:29:03 +00:00
|
|
|
|
|
|
|
.if defined(WITH_DEVEL)
|
|
|
|
SCONS_ARGS+= --full
|
|
|
|
PLIST_SUB+= DEVEL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DEVEL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2011-12-20 12:31:34 +00:00
|
|
|
.if defined(WITH_V8)
|
|
|
|
SCONS_ARGS+= --usev8
|
|
|
|
LIB_DEPENDS+= v8:${PORTSDIR}/lang/v8
|
|
|
|
.else
|
|
|
|
SCONS_ARGS+= --usesm
|
|
|
|
LIB_DEPENDS+= js:${PORTSDIR}/lang/spidermonkey
|
|
|
|
.endif
|
|
|
|
|
2009-11-19 06:53:27 +00:00
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \
|
|
|
|
${TOUCH} ${PREFIX}/etc/mongodb.conf ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|