0
0
Fork 0
haikuports/dev-libs/apr_util/apr_util-1.5.4.recipe

110 lines
2.7 KiB
Bash

SUMMARY="Apache Portable Runtime Utility Library"
DESCRIPTION="The mission of the Apache Portable Runtime (APR) project is to \
create and maintain software libraries that provide a predictable and \
consistent interface to underlying platform-specific implementations.
The primary goal is to provide an API to which software developers may code \
and be assured of predictable if not identical behaviour regardless of the \
platform on which their software is built, relieving them of the need to code \
special-case conditions to work around or take advantage of platform-specific \
deficiencies or features."
HOMEPAGE="http://apr.apache.org/"
COPYRIGHT="2011 The Apache Software Foundation."
LICENSE="Apache v2"
REVISION="5"
SOURCE_URI="http://archive.apache.org/dist/apr/apr-util-$portVersion.tar.gz"
CHECKSUM_SHA256="976a12a59bc286d634a21d7be0841cc74289ea9077aa1af46be19d1a6e844c19"
SOURCE_DIR="apr-util-$portVersion"
PATCHES="apr_util-$portVersion.patch"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
apr_util$secondaryArchSuffix = $portVersion compat >= 1
lib:libaprutil_1$secondaryArchSuffix = 0.5.4 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libapr_1$secondaryArchSuffix
lib:libexpat$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
"
PROVIDES_devel="
apr_util${secondaryArchSuffix}_devel = portVersion compat >= 1
cmd:apu_1_config$secondaryArchSuffix = $portVersion compat >= 1
devel:libaprutil_1$secondaryArchSuffix = 0.5.4 compat >= 0
"
REQUIRES_devel="
apr_util$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libapr_1$secondaryArchSuffix >= 0.5.0
devel:libexpat$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autoheader
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
PATCH()
{
echo 'AM_INIT_AUTOMAKE' >> xml/expat/configure.in
}
BUILD()
{
expatInstallDir=$portPackageLinksDir/lib~libexpat$secondaryArchSuffix
rm -rf aclocal.m4
mkdir -p m4
libtoolize -fci
aclocal --install -I m4
autoconf -f
cd xml/expat
mkdir -p m4
libtoolize -fci
aclocal --install -I m4
autoconf --force
autoheader
touch libtool.m4
cd ../..
runConfigure ./configure \
--with-apr=/$relativeBinDir \
--with-expat=$expatInstallDir
make $jobArgs
}
INSTALL()
{
make install
# remove libtool library file
rm $libDir/libaprutil-1.la
# prepare develop/lib
prepareInstalledDevelLibs libaprutil-1
fixPkgconfig
# fix apu-1-config
fixDevelopLibDirReferences $binDir/apu-1-config
# remove superfluous .exp file
rm $libDir/aprutil.exp
# devel package
packageEntries devel \
$binDir \
$developDir
}