mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
shine, new recipe (#9039)
This commit is contained in:
90
media-sound/shine/shine-3.1.1~20230101.recipe
Normal file
90
media-sound/shine/shine-3.1.1~20230101.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user