mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
90 lines
2.0 KiB
Bash
90 lines
2.0 KiB
Bash
SUMMARY="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/"
|
|
|
|
SOURCE_URI="http://downloads.xiph.org/releases/ao/libao-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="03ad231ad1f9d64b52474392d63c31197b0bc7bd416e58b1c10a329a5ed89caf"
|
|
|
|
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-2011 Monty"
|
|
|
|
REVISION="1"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libao$secondaryArchSuffix = $portVersion
|
|
lib:libao$secondaryArchSuffix = 4.1.0 compat >= 4
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
PATCHES="libao-$portVersion.patchset"
|
|
|
|
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 = 4.1.0 compat >= 4
|
|
"
|
|
REQUIRES_devel="
|
|
libao$secondaryArchSuffix == $portVersion base
|
|
"
|