shine, new recipe (#9039)

This commit is contained in:
Schrijvers Luc
2023-07-16 10:17:33 +02:00
committed by GitHub
parent c486463d14
commit 8de40e9068

View File

@@ -0,0 +1,90 @@
SUMMARY="Fast fixed-point mp3 encoding"
DESCRIPTION="shine is a blazing fast mp3 encoding library implemented in fixed-point arithmetic. \
The library can thus be used to perform super fast mp3 encoding on architectures without a FPU, \
such as *armel*, etc.. It is also super fast on architectures with a FPU!"
HOMEPAGE="https://github.com/toots/shine"
COPYRIGHT="Gabriel Bouvigne
2001 Pete Everett
2006 Patrick Roberts
2023 Romain Beauxis"
LICENSE="GNU LGPL v2"
REVISION="1"
srcGitRev="ab5e3526b64af1a2eaa43aa6f441a7312e013519"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="2c2f7e41c7c0f67079eb3882233cdc97e3d583e1985b558d4e847bd46285fbde"
SOURCE_FILENAME="shine-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="shine-$srcGitRev"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="3.0.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
shine$secondaryArchSuffix = $portVersion
cmd:shineenc$commandSuffix = $portVersion
lib:libshine$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
shine${secondaryArchSuffix}_devel = $portVersion
devel:libshine$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
shine$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage shine$secondaryArchSuffix \
$libDir/libshine.so.$libVersion \
$commandBinDir/shineenc
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--disable-static
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $includeDir
mv $prefix/include/* $includeDir
rm -rf $prefix/include
prepareInstalledDevelLib libshine
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}