a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22625 2007-03-08 06:18:05Z takanori@macports.org $
PortSystem 1.0
name qdbm
version 1.8.75
categories databases
maintainers rsky0711@gmail.com pelopor@nifty.com
platforms darwin
description QDBM is a library of routines for managing a database.
long_description \
QDBM is a library of routines for managing a database. The database is a\
simple data file containing records, each is a pair of a key and a\
value. Every key and value is serial bytes with variable length. Both binary\
data and character string can be used as a key and a value. There is neither\
concept of data tables nor data types. Records are organized in hash table\
or B+ tree.
homepage http://qdbm.sourceforge.net/
master_sites ${homepage} \
sourceforge:${name}
checksums md5 9f1fca3bf60116b3b3767d32337cde8b \
sha1 de93a794b13bb73909356c1ed2c0a97785171609 \
rmd160 a7886b98ef4006486b87ac51a8edb62a927a6238
depends_lib port:libiconv port:zlib
configure.args --mandir=${prefix}/share/man \
--datadir=${prefix}/share/doc \
--enable-pthread \
--enable-zlib --enable-iconv
post-extract {
#configure
reinplace "s|\$HOME|\${prefix}|g" \
${worksrcpath}/configure
# Makefile.in
reinplace "s|\$(HOME)|\$(prefix)|g" \
${worksrcpath}/Makefile.in
# myconf.c
reinplace "s|lzo/|lzo2/|g" \
${worksrcpath}/myconf.c
}
test.run yes
platform macosx {
build.target mac
test.target check-mac
destroot.target install-mac
}
variant debug {
configure.args-append --enable-debug
}
variant bzip2 {
depends_lib-append port:bzip2
configure.args-append --enable-bzip
}
variant lzo {
depends_lib-append port:lzo2
configure.args-append --enable-lzo
}