Files
haikuports/media-libs/libao/libao-1.0.0.recipe
2013-12-19 08:42:05 -08:00

81 lines
2.0 KiB
Plaintext

SUMMARY="libao is a cross platform audio library"
DESCRIPTION="Libao is a cross-platform audio library that allows programs to output audio using a simple API on a wide variety of platforms. It currently supports Null output, WAV files, AU files, RAW files, OSS, ALSA, aRts, PulseAudio, esd, Mac OS X, Windows, AIX, Sun/NetBSD/OpenBSD, IRIX, NAS, RoarAudio and OpenBSD's sndio"
HOMEPAGE="http://xiph.org/ao/"
SRC_URI="http://downloads.xiph.org/releases/ao/libao-1.0.0.tar.gz"
CHECKSUM_MD5="08283fbe1f587619053a156254afecec"
LICENSE="GNU GPL v2"
COPYRIGHT="1999 Aaron Holtzman
2000 Rik Hemsley
2000 Timothy J. Wood
2000-2001 Stan Seibert
2001 Christian Weisgerber
2001 Wil Mahan
2002 Stefan Tibus
2008 Alexandre Ratchov
2008-2010 Philipp 'ph3-der-loewe' Schafft
2010 2010 Monty"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libao$secondaryArchSuffix = $portVersion
lib:libao$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
# sed -i 's/$(datadir)\/aclocal/`finddir B_COMMON_DATA_DIRECTORY`\/aclocal/g' M*
libtoolize --force --copy --install
aclocal
autoconf
automake
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libao
fixPkgconfig
# move include dir to correct location
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir
# devel package
packageEntries devel \
$dataDir \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libao${secondaryArchSuffix}_devel = $portVersion
devel:libao$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
libao$secondaryArchSuffix == $portVersion base
"