libsamplerate: Fixup. (libsamplerate is not libpng).

@korli, please be a bit more careful next time!
This commit is contained in:
Augustin Cavalier
2015-07-01 20:13:02 -04:00
parent 4c871c5452
commit 837396b273

View File

@@ -1,20 +1,29 @@
SUMMARY="Portable Network Graphics library"
DESCRIPTION="
libsamplerate is the official PNG reference library. It supports almost all PNG \
features, is extensible, and has been extensively tested for over 17 years
"
SUMMARY="Samplerate converter for audio"
DESCRIPTION=" Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter \
for audio. One example of where such a thing would be useful is converting \
audio from the CD sample rate of 44.1kHz to the 48kHz sample rate used by \
DAT players.
SRC is capable of arbitrary and time varying conversions, from downsampling \
by a factor of 256 to upsampling by the same factor. Arbitrary in this case \
means that the ratio of input and output sample rates can be an irrational \
number. The conversion ratio can also vary with time for speeding up and \
slowing down effects."
HOMEPAGE="http://www.mega-nerd.com/SRC/"
COPYRIGHT="
1998-2011 Glenn Randers-Pehrson
1996-1997 Andreas Dilger
1995-1996 Guy Eric Schalnat, Group 42, Inc.
"
COPYRIGHT="2002-2011 Erik de Castro Lopo"
LICENSE="GNU GPL v2"
SRC_URI="http://www.mega-nerd.com/SRC/libsamplerate-$portVersion.tar.gz"
CHECKSUM_SHA256="93b54bdf46d5e6d2354b7034395fe329c222a966790de34520702bb9642f1c06"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
REVISION="3"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PATCHES="libsamplerate-$portVersion.patchset"
@@ -26,6 +35,15 @@ PROVIDES="
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libsamplerate${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libsamplerate$secondaryArchSuffix = 15.12.0 compat >= 15
"
REQUIRES_devel="
libsamplerate$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
@@ -50,7 +68,7 @@ BUILD()
INSTALL()
{
make install
rm $libDir/libsamplerate.la
prepareInstalledDevelLibs libsamplerate
@@ -61,13 +79,3 @@ INSTALL()
$docDir \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libsamplerate${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libsamplerate$secondaryArchSuffix = 15.12.0 compat >= 15
"
REQUIRES_devel="
libsamplerate$secondaryArchSuffix == $portVersion base
"