Ticket #52608: leveldb.diff
File leveldb.diff, 2.3 KB (added by RJVB (René Bertin), 8 years ago) |
---|
-
Portfile
15 15 # We therefore use muniversal PortGroup 16 16 PortGroup muniversal 1.0 17 17 18 github.setup google leveldb 1.1 8v18 github.setup google leveldb 1.19 v 19 19 20 20 categories databases 21 21 platforms darwin … … 24 24 description A fast and lightweight key/value database library by Google 25 25 long_description A fast and lightweight key/value database library by Google 26 26 27 checksums rmd160 2431505d7d1a08a88b1d10068e571a49dd43a3a0\28 sha256 007b554b52fb72877bd0a31c078a9ff67b8a9b8e0f55ff641b77783cfd030a4c27 checksums rmd160 9586c14604093fe2ca855539f7d69ce55c999da5 \ 28 sha256 6835203e749f7f437f87f7fb788e96d0718f62ca28c0160a35f48d1ba17a8e7b 29 29 30 30 depends_lib port:snappy 31 31 use_configure no 32 32 33 33 # default optimization flags 34 configure.optflags-append -O2 -DNDEBUG 34 configure.optflags-replace \ 35 -Os -O2 35 36 36 37 if { [variant_isset universal] } { 37 38 foreach arch ${configure.universal_archs} { … … 47 48 INSTALL_PATH=${prefix}/lib \ 48 49 CC="${configure.cc}" \ 49 50 CXX="${configure.cxx}" \ 50 OPT="${configure.optflags} "51 OPT="${configure.optflags} -DNDEBUG" 51 52 52 build.args-append libmemenv.a 53 use_parallel_build yes 53 54 55 # build.args-append libmemenv.a 56 54 57 # muniversal build requires Makefile 55 58 post-extract { 56 59 set makefile [open ${worksrcpath}/Makefile-Install "w"] … … 59 62 puts ${makefile} "\t/usr/bin/install -d -m 0755 \$(DESTDIR)${prefix}/include/helpers/memenv" 60 63 puts ${makefile} "\t/usr/bin/install -m 0644 include/leveldb/*.h \$(DESTDIR)${prefix}/include/leveldb" 61 64 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" 64 67 close ${makefile} 65 68 } 66 69