Ticket #37844: Portfile

File Portfile, 1.3 KB (added by dw@…, 7 years ago)

Updated Portfile that doesn't install includes to ${prefix}/include/include

Line 
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
4PortSystem          1.0
5
6name                leveldb
7version             1.9.0
8categories          databases
9platforms           darwin
10license             BSD
11maintainers         nomaintainer
12description         A fast and lightweight key/value database library by Google
13long_description    A fast and lightweight key/value database library by Google
14homepage            http://code.google.com/p/leveldb/
15master_sites        googlecode:leveldb
16
17checksums           rmd160  6d36b6b095c131aeb24fc75ecee8a7b9b4c5ce9e \
18                    sha256  b2699b04e5aba8e98382c4955b94725d1f76bd0b5decd60c5628205b717a1d4f
19
20distname            leveldb-${version}
21default_variants    +universal +snappy
22
23variant snappy {
24    depends_lib         port:snappy
25}
26
27variant universal {
28    build.env CXXFLAGS="-arch x86_64 -arch i386"
29    build.env LDFLAGS="-arch x86_64 -arch i386"
30}
31
32configure {}
33
34destroot {
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
40platform darwin {
41    build.env INSTALL_PATH=${prefix}/lib
42}