Ticket #18048: Portfile

File Portfile, 2.3 KB (added by paul.dlug@…, 15 years ago)
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: Portfile 40100 2008-09-20 17:11:26Z akira@macports.org $
3
4PortSystem      1.0
5
6name            tokyocabinet
7version         1.3.27
8categories      databases
9maintainers     openmaintainer gmail.com:rsky0711
10platforms       darwin
11description     Tokyo Cabinet is a library of routines for managing a database.
12long_description    \
13    Tokyo Cabinet is a library of routines for managing a database. The database\
14    is a simple data file containing records, each is a pair of a key and a value.\
15    Every key and value is serial bytes with variable length. Both binary data and\
16    character string can be used as a key and a value. There is neither concept of\
17    data tables nor data types. Records are organized in hash table or B+ tree.
18homepage        http://tokyocabinet.sourceforge.net/
19master_sites    ${homepage} \
20                sourceforge:${name}
21checksums       md5 9dfaa4311717ee3ab56c873af312f045 \
22                sha1 1ea3f009bd91de81eca00146bfd091b0a6af5251 \
23                rmd160 59b4f44dc968c0dac6db4e5b940a4041ed2b1ccf
24
25depends_lib     port:zlib
26
27configure.args  --mandir=${prefix}/share/man \
28                --datadir=${prefix}/share/doc
29
30post-patch {
31    # configure
32    reinplace "s|\$HOME|\${prefix}|g" ${worksrcpath}/configure
33    # Makefile.in
34    reinplace "s|\$(HOME)|\$(prefix)|g" ${worksrcpath}/Makefile.in
35}
36
37test.run yes
38test.target check
39
40#default_variants +fastest
41
42variant debug conflicts devel profile fastest description {build for debugging} {
43    configure.args-append   --enable-debug
44}
45
46variant devel conflicts debug profile fastest description {build for development} {
47    configure.args-append   --enable-devel
48}
49
50variant profile conflicts debug devel fastest description {build for profiling} {
51    configure.args-append   --enable-profile
52}
53
54variant fastest conflicts debug devel profile description {build for fastest run} {
55    configure.args-append   --enable-fastest
56}
57
58variant off64 description {build with 64-bit file offset on 32-bit system} {
59    configure.args-append   --enable-off64
60}
61
62variant swap description {build for swapping byte-orders} {
63    configure.args-append   --enable-swap
64}
65
66livecheck.check sourceforge