Ticket #52608: leveldb.diff

File leveldb.diff, 2.3 KB (added by RJVB (René Bertin), 8 years ago)
  • Portfile

     
    1515# We therefore use muniversal PortGroup
    1616PortGroup           muniversal 1.0
    1717
    18 github.setup        google leveldb 1.18 v
     18github.setup        google leveldb 1.19 v
    1919
    2020categories          databases
    2121platforms           darwin
     
    2424description         A fast and lightweight key/value database library by Google
    2525long_description    A fast and lightweight key/value database library by Google
    2626
    27 checksums           rmd160  2431505d7d1a08a88b1d10068e571a49dd43a3a0 \
    28                     sha256  007b554b52fb72877bd0a31c078a9ff67b8a9b8e0f55ff641b77783cfd030a4c
     27checksums           rmd160  9586c14604093fe2ca855539f7d69ce55c999da5 \
     28                    sha256  6835203e749f7f437f87f7fb788e96d0718f62ca28c0160a35f48d1ba17a8e7b
    2929
    3030depends_lib         port:snappy
    3131use_configure       no
    3232
    3333# default optimization flags
    34 configure.optflags-append -O2 -DNDEBUG
     34configure.optflags-replace \
     35                    -Os -O2
    3536
    3637if { [variant_isset universal] } {
    3738    foreach arch ${configure.universal_archs} {
     
    4748    INSTALL_PATH=${prefix}/lib            \
    4849    CC="${configure.cc}"                  \
    4950    CXX="${configure.cxx}"                \
    50     OPT="${configure.optflags}"
     51    OPT="${configure.optflags} -DNDEBUG"
    5152
    52 build.args-append libmemenv.a
     53use_parallel_build      yes
    5354
     55# build.args-append libmemenv.a
     56
    5457# muniversal build requires Makefile
    5558post-extract {
    5659    set makefile [open ${worksrcpath}/Makefile-Install "w"]
     
    5962    puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${prefix}/include/helpers/memenv"
    6063    puts ${makefile} "\t/usr/bin/install -m 0644 include/leveldb/*.h \$(DESTDIR)${prefix}/include/leveldb"
    6164    puts ${makefile} "\t/usr/bin/install -m 0644 helpers/memenv/memenv.h \$(DESTDIR)${prefix}/include/helpers/memenv"
    62     puts ${makefile} "\t/bin/cp -R libleveldb*.dylib* \$(DESTDIR)${prefix}/lib"
    63     puts ${makefile} "\t/usr/bin/install -m 0644 lib*.a \$(DESTDIR)${prefix}/lib"
     65    puts ${makefile} "\t/usr/bin/install -m 0644 out-shared/libleveldb* \$(DESTDIR)${prefix}/lib"
     66    puts ${makefile} "\t/usr/bin/install -m 0644 out-static/lib*.a \$(DESTDIR)${prefix}/lib"
    6467    close ${makefile}
    6568}
    6669