# $Id: Portfile 81580 2011-08-02 07:25:43Z ryandesign@macports.org $ PortSystem 1.0 PortGroup archcheck 1.0 name mongodb epoch 1 version 1.8.2 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 sha1 d2145e5b4a6df2e94aec76bef3a9399c11e8571a \ rmd160 3c1e33ed9ff3dd3c653112a46cf178d07b93e32c 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 variant universal {} if {[variant_isset universal]} { set archflags ${configure.universal_cflags} } else { set archflags ${configure.cc_archflags} } build.env TERM=xterm \ CFLAGS="${archflags}" \ CXXFLAGS="${archflags}" \ LINKFLAGS="${archflags}" build.cmd scons build.args --usesm --cxx=${configure.cxx} --full build.target all mongobridge mongosniff eval destroot.env [option build.env] destroot.args ${build.args} destroot.destdir --prefix=${destroot}${prefix} post-destroot { xinstall -W ${worksrcpath} mongobridge ${destroot}${prefix}/bin } platform darwin 11 { patchfiles-append lion.patch } livecheck.url ${homepage}downloads livecheck.regex {mongodb-src-r(\d+\.\d*[02468]\.\d+)\.}