source: trunk/dports/databases/mongodb/Portfile @ 64820

Last change on this file since 64820 was 64820, checked in by jmr@…, 10 years ago

mongodb: fix non-universal build (#24066)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 64820 2010-03-16 05:52:03Z jmr@macports.org $
2
3PortSystem          1.0
4PortGroup           archcheck 1.0
5
6name                mongodb
7epoch               1
8version             1.2.4
9license             AGPL-3.0
10categories          databases
11maintainers         nomaintainer
12description         High-performance, schema-free document-oriented database
13long_description    ${description}
14
15platforms           darwin
16
17homepage            http://www.mongodb.org/
18master_sites        http://downloads.mongodb.org/src/
19distname            ${name}-src-r${version}
20
21checksums           md5     cb08571b77ec12454e89c9f43bdc3936 \
22                    sha1    a3d09fea3ac5bde7955520d99fe546e102ac6474 \
23                    rmd160  1d2e9f629cb2af620f0543138773d744817657b2
24
25depends_build       port:scons
26depends_lib         port:boost port:pcre port:spidermonkey port:libpcap \
27                    port:readline
28
29archcheck.files \
30    lib/libboost_program_options-mt.dylib \
31    lib/libpcap.dylib \
32    lib/libpcre.dylib \
33    lib/libreadline.dylib \
34    lib/libjs.dylib
35
36patchfiles          patch-SConstruct.diff
37post-patch {
38   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
39}
40
41use_configure       no
42
43build.args          --usesm --cxx ${configure.cxx}
44build.cmd           scons
45build.target        all mongobridge mongosniff
46
47destroot.cmd        scons
48destroot.args       ${build.args}
49destroot.destdir    --prefix=${destroot}${prefix}
50post-destroot {
51   xinstall -W ${worksrcpath} mongobridge ${destroot}${prefix}/bin
52}
53
54variant universal {
55    build.env-append \
56        CFLAGS="${configure.universal_cflags}" \
57        CXXFLAGS="${configure.universal_cxxflags}" \
58        LINKFLAGS="${configure.universal_ldflags}"
59    eval destroot.env-append ${build.env}
60}
61
62livecheck.url       ${homepage}display/DOCS/Downloads
63livecheck.regex     {mongodb-src-r(\d+\.\d*[02468]\.\d+)}
Note: See TracBrowser for help on using the repository browser.