# $Id: Portfile 74260 2010-12-09 15:05:09Z stromnov@macports.org $ PortSystem 1.0 PortGroup archcheck 1.0 name mongodb epoch 1 version 1.6.5 license AGPL-3.0 categories databases maintainers nomaintainer description High-performance, schema-free document-oriented database long_description ${description} platforms darwin homepage http://www.mongodb.org/ master_sites http://downloads.mongodb.org/src/ distname ${name}-src-r${version} checksums md5 99f1c4c256be1611da6068aea30f9a30 \ sha1 4aed2da91377c2a5c8722c0c6873117014faf31a \ rmd160 de98b9558544eafb809131347b6a339c46f09732 depends_build port:scons depends_lib port:boost \ port:pcre \ port:spidermonkey \ port:libpcap \ port:readline archcheck.files lib/libboost_program_options-mt.dylib \ lib/libpcap.dylib \ lib/libpcre.dylib \ lib/libreadline.dylib \ lib/libjs.dylib patchfiles patch-SConstruct.diff post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct } use_configure no build.cmd scons build.args --usesm --cxx=${configure.cxx} --full build.target all mongobridge mongosniff destroot.cmd scons destroot.args ${build.args} destroot.destdir --prefix=${destroot}${prefix} post-destroot { xinstall -W ${worksrcpath} mongobridge ${destroot}${prefix}/bin } variant universal { build.env-append \ CFLAGS="${configure.universal_cflags}" \ CXXFLAGS="${configure.universal_cxxflags}" \ LINKFLAGS="${configure.universal_ldflags}" eval destroot.env-append [option build.env] } livecheck.url ${homepage}downloads livecheck.regex {mongodb-src-r(\d+\.\d*[02468]\.\d+)\.}