1 | # $Id: Portfile,v 1.1 2005/08/15 15:26:00 olegb Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name qdbm |
---|
5 | version 1.8.33 |
---|
6 | categories textproc |
---|
7 | maintainers pelopor@nifty.com |
---|
8 | description QDBM is a library of routines for managing a database. |
---|
9 | long_description \ |
---|
10 | QDBM is a library of routines for managing a database. The database is a\ |
---|
11 | simple data file containing records, each is a pair of a key and a\ |
---|
12 | value. Every key and value is serial bytes with variable length. Both binary\ |
---|
13 | data and character string can be used as a key and a value. There is neither\ |
---|
14 | concept of data tables nor data types. Records are organized in hash table\ |
---|
15 | or B+ tree. |
---|
16 | |
---|
17 | homepage http://qdbm.sourceforge.net/ |
---|
18 | platforms darwin |
---|
19 | depends_lib bin:iconv:libiconv lib:libz:zlib |
---|
20 | master_sites http://qdbm.sourceforge.net/ |
---|
21 | checksums md5 3a462a95923df22e760d20259ad99709 |
---|
22 | |
---|
23 | #patchfiles patch-configure.diff patch-Makefile.in.diff |
---|
24 | post-extract { |
---|
25 | #configure |
---|
26 | reinplace "s|\$HOME|\${prefix}|g" \ |
---|
27 | ${worksrcpath}/configure |
---|
28 | reinplace "s|/usr/local|\${prefix}|g" \ |
---|
29 | ${worksrcpath}/configure |
---|
30 | # Makefile.in |
---|
31 | reinplace "s|\$(HOME)|\$(prefix)|g" \ |
---|
32 | ${worksrcpath}/Makefile.in |
---|
33 | reinplace "s|/usr/local/include -I/usr|\$(prefix)|g" \ |
---|
34 | ${worksrcpath}/Makefile.in |
---|
35 | reinplace "s|/usr/local|\$(prefix)|g" \ |
---|
36 | ${worksrcpath}/Makefile.in |
---|
37 | reinplace "s|install_name libqdbm.\$(LIBVER).dylib|install_name \$(MYLIBDIR)/libqdbm.\$(LIBVER).dylib|g" \ |
---|
38 | ${worksrcpath}/Makefile.in |
---|
39 | |
---|
40 | } |
---|
41 | |
---|
42 | #configure.env LDFLAGS="-L${prefix}/lib -lz -liconv" CPPFLAGS="-I${prefix}/include" |
---|
43 | configure.args --mandir=${prefix}/share/man --datadir=${prefix}/share/doc \ |
---|
44 | --enable-zlib --enable-iconv |
---|
45 | |
---|
46 | platform macosx { |
---|
47 | build.target mac |
---|
48 | test.target check-mac |
---|
49 | destroot.target install-mac |
---|
50 | } |
---|
51 | |
---|