Ticket #37844: Portfile.2

File Portfile.2, 1.1 KB (added by dw@…, 12 years ago)

Portfile incorporating ryandesign's comments

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
20depends_lib         port:snappy
21use_configure       no
22
23variant universal {}
24
25build.env-append CXXFLAGS="[get_canonical_archflags]" \
26                 LDFLAGS="[get_canonical_archflags]" \
27                 INSTALL_PATH=${prefix}/lib
28
29destroot {
30    eval file copy [glob ${worksrcpath}/libleveldb*] ${destroot}${prefix}/lib
31    file copy ${worksrcpath}/include/leveldb ${destroot}${prefix}/include
32}