freebsd-ports/databases/mongodb/Makefile
Li-Wen Hsu d9f8ef49a2 - Update from 1.6.5 to 1.8.1 [1]
- Attached a patch to fix the TERM handling issue in SConstruct [1]
- Added "ldconfig" to the rc.d script to start mongod correctly if running in a jail [1]
- Remove unsupported FreeBSD version stuff
- Replace pkg-install and pkg-deinstall with USERS and GROUPS in Makefile

PR:		ports/156297 [1]
Submitted by:	Mirko Zinn <mail AT derzinn.de> (maintainer)
2011-04-23 13:45:28 +00:00

57 lines
1.4 KiB
Makefile

# New ports collection makefile for: mongodb
# Date created: 3 November 2009
# Whom: Mirko Zinn <mail@derzinn.de>
#
# $FreeBSD$
#
PORTNAME= mongodb
PORTVERSION= 1.8.1
CATEGORIES= databases net
MASTER_SITES= http://downloads.mongodb.org/src/ \
http://files.derzinn.de/
DISTNAME= ${PORTNAME}-src-r${PORTVERSION}
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 \
nspr4:${PORTSDIR}/devel/nspr \
execinfo.1:${PORTSDIR}/devel/libexecinfo
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
USE_SCONS= yes
SCONS_TARGET= all
SCONS_ARGS= --prefix=${PREFIX}
USERS= mongodb
GROUPS= mongodb
USE_RC_SUBR= mongod
.include <bsd.port.pre.mk>
.if defined(WITH_DEVEL)
SCONS_ARGS+= --full
PLIST_SUB+= DEVEL=""
.else
PLIST_SUB+= DEVEL="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|elif "freebsd7" == os.sys.platform|elif os.sys.platform.startswith("freebsd")|' \
-e '/not GetOption("nostrip")/ s,linux,linux or freebsd,g' \
${WRKSRC}/SConstruct
post-install:
@if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \
${TOUCH} ${PREFIX}/etc/mongodb.conf ; \
fi
.include <bsd.port.post.mk>