Portfile

# $Id: Portfile 22491 2007-03-02 21:54:07Z blair@macports.org $

PortSystem 1.0
name apr0
version 0.9.13
categories devel
maintainers blair@orcaware.com
description The apache group's portability library

long_description The Apache Portable Runtime is a library of C data \
structures and routines, forming a system portability \
layer that covers as many operating systems as \
possible, including Unices, Win32, BeOS, and OS/2. \
This is the old version of APR, the newest version \
is in the apr port.

homepage http://apr.apache.org/
master_sites apache:apr

distname apr-${version}
use_bzip2 yes
checksums md5 2573b1c0d50b1ce9448a53b1b8ff8ffd

configure.args --with-installbuilddir=${prefix}/share/apr-0/build

test.run yes
test.target check
test.env DYLD_LIBRARY_PATH=${worksrcpath}/.libs

post-destroot {
delete ${destroot}${prefix}/lib/apr.exp
}

platform darwin 9 {
post-configure {
reinplace {s|\(#define APR_HAS_SENDFILE[[:space:]]*\)1|\1 0|} ${worksrcpath}/include/apr.h
}
}