1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name leveldb |
---|
7 | version 1.9.0 |
---|
8 | categories databases |
---|
9 | platforms darwin |
---|
10 | license BSD |
---|
11 | maintainers nomaintainer |
---|
12 | description A fast and lightweight key/value database library by Google |
---|
13 | long_description A fast and lightweight key/value database library by Google |
---|
14 | homepage http://code.google.com/p/leveldb/ |
---|
15 | master_sites googlecode:leveldb |
---|
16 | |
---|
17 | checksums rmd160 6d36b6b095c131aeb24fc75ecee8a7b9b4c5ce9e \ |
---|
18 | sha256 b2699b04e5aba8e98382c4955b94725d1f76bd0b5decd60c5628205b717a1d4f |
---|
19 | |
---|
20 | distname leveldb-${version} |
---|
21 | default_variants +universal +snappy |
---|
22 | |
---|
23 | variant snappy { |
---|
24 | depends_lib port:snappy |
---|
25 | } |
---|
26 | |
---|
27 | variant universal { |
---|
28 | build.env CXXFLAGS="-arch x86_64 -arch i386" |
---|
29 | build.env LDFLAGS="-arch x86_64 -arch i386" |
---|
30 | } |
---|
31 | |
---|
32 | configure {} |
---|
33 | |
---|
34 | destroot { |
---|
35 | xinstall -m 755 -d ${destroot}${prefix}/lib |
---|
36 | eval file copy [glob ${worksrcpath}/libleveldb*] ${destroot}${prefix}/lib |
---|
37 | file copy ${worksrcpath}/include/leveldb ${destroot}${prefix}/include |
---|
38 | } |
---|
39 | |
---|
40 | platform darwin { |
---|
41 | build.env INSTALL_PATH=${prefix}/lib |
---|
42 | } |
---|