Files
haikuports/media-libs/audiofile/audiofile-0.3.6.recipe
Jerome Duval ac17bd1be4 code style.
2018-08-07 08:26:26 +02:00

93 lines
2.5 KiB
Bash

SUMMARY="Audio file library"
DESCRIPTION="library for reading and writing audio files in many common formats.
The Audio File Library provides a uniform API which abstracts away details of \
file formats and data formats. The same calls for opening a file, accessing \
and manipulating audio metadata (e.g. sample rate, sample format, textual \
information, MIDI parameters), and reading and writing sample data will work \
with any supported audio file format. The Audio File Library lets you work \
with audio data in whatever format is most convenient for you.
Supported file formats:
* AIFF/AIFF-C (.aiff, .aifc)
* WAVE (.wav)
* NeXT .snd/Sun .au (.snd, .au)
* Berkeley/IRCAM/CARL Sound File (.sf)
* Audio Visual Research (.avr)
* Amiga IFF/8SVX (.iff)
* Sample Vision (.smp)
* Creative Voice File (.voc)
* NIST SPHERE (.wav)
* Core Audio Format (.caf)
* FLAC (.flac)
Supported compression formats:
* G.711 mu-law and A-law
* IMA ADPCM
* Microsoft ADPCM
* FLAC
* ALAC (Apple Lossless Audio Codec)"
HOMEPAGE="https://audiofile.68k.org/"
COPYRIGHT="1998-2013 Michael Pruett, Chris Pirazzi, Scott Porter, Doug Scott"
LICENSE="GNU LGPL v2.1"
REVISION="5"
SOURCE_URI="https://audiofile.68k.org/audiofile-0.3.6.tar.gz"
CHECKSUM_SHA256="cdc60df19ab08bfe55344395739bb08f50fc15c92da3962fac334d3bff116965"
srcGitRev_2="1709d2d431a493deea7765902011730e04fab466"
SOURCE_URI_2="https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/audiofile/files/$SOURCE_FILENAME_2?id=$srcGitRev_2#noarchive"
CHECKSUM_SHA256_2="c088e405ae54bc560e7d203cc5a18edb829b555e675c363d789b0f3f2b4d5d0c"
SOURCE_FILENAME_2="audiofile-0.3.6-gcc6-build-fixes.patch"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
audiofile$secondaryArchSuffix = $portVersion
cmd:sfconvert$secondaryArchSuffix
cmd:sfinfo$secondaryArchSuffix
lib:libaudiofile$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
audiofile${secondaryArchSuffix}_devel = $portVersion
devel:libaudiofile$secondaryArchSuffix
"
REQUIRES_devel="
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage audiofile$secondaryArchSuffix \
"$libDir"/libaudiofile.so.1.0.0
PATCH()
{
patch -p1 -i "$sourceDir2"/$SOURCE_FILENAME_2
}
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libaudiofile
fixPkgconfig
packageEntries devel $developDir
}