Files
haikuports/media-libs/libsamplerate/libsamplerate-0.1.8.recipe
Oliver Tappe 52b344b97b Drop references to $haikuVersion.
* Referring the current haiku version explicitly is not needed, since
  the RequiresUpdater takes care of setting the version of Haiku used
  for building a package.
2014-12-14 23:08:52 +01:00

70 lines
1.6 KiB
Plaintext

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
"
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.
"
LICENSE="GNU GPL v2"
SRC_URI="http://www.mega-nerd.com/SRC/libsamplerate-$portVersion.tar.gz"
CHECKSUM_SHA256="93b54bdf46d5e6d2354b7034395fe329c222a966790de34520702bb9642f1c06"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
#PATCHES="libsamplerate-1.5.12.patchset"
PROVIDES="
libsamplerate$secondaryArchSuffix = $portVersion compat >= 0
lib:libsamplerate$secondaryArchSuffix = 15.12.0 compat >= 15
"
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
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libsamplerate
fixPkgconfig
# devel package
packageEntries devel \
$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
"