aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mongodb/Makefile')
-rw-r--r--databases/mongodb/Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/databases/mongodb/Makefile b/databases/mongodb/Makefile
new file mode 100644
index 000000000000..7d90f73d2bb2
--- /dev/null
+++ b/databases/mongodb/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: mongodb
+# Date created: 3 November 2009
+# Whom: Mirko Zinn <mail@derzinn.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mongodb
+PORTVERSION= 1.0.1
+CATEGORIES= databases net
+MASTER_SITES= http://download.github.com/ \
+ http://derzinn.de/files/
+DISTNAME= mongodb-mongo-e316c78
+
+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
+
+CONFLICTS= mongodb-devel-[0-9]*
+
+USE_SCONS= yes
+SCONS_TARGET= all
+
+USE_RC_SUBR= mongod
+MONGO_FILES= mongo mongod mongodump mongoexport mongofiles \
+ mongoimportjson mongorestore mongos mongosniff
+
+.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 700042
+BROKEN= Does not build
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -E -e 's|elif "freebsd7" == os.sys.platform|elif os.sys.platform.startswith("freebsd")|' \
+ ${WRKSRC}/SConstruct
+ @${REINPLACE_CMD} -e 's#/usr/local#${PREFIX}#g' ${WRKSRC}/SConstruct
+
+do-install:
+.for i in ${MONGO_FILES}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/libmongoclient.a ${PREFIX}/lib
+
+post-install:
+ @if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \
+ ${TOUCH} ${PREFIX}/etc/mongodb.conf ; \
+ fi
+
+ PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+.include <bsd.port.post.mk>