mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
93 lines
2.3 KiB
Bash
93 lines
2.3 KiB
Bash
SUMMARY="A fast console MPEG audio player and decoder library"
|
|
DESCRIPTION="mpg123 is the fast and free console based real time MPEG audio \
|
|
player for layer 1, 2 and 3."
|
|
HOMEPAGE="https://www.mpg123.org/"
|
|
COPYRIGHT="1995-2021 Michael Hipp and others"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://downloads.sourceforge.net/mpg123/mpg123-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="503a76d82d97f1a6513bbeb284e460a99fb17ef80f23a661d8fc026ce6adcbbc"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libmpg123Version="0.44.12"
|
|
libout123Version="0.2.2"
|
|
libmpg123VersionCompat="$libmpg123Version compat >= ${libmpg123Version%%.*}"
|
|
libout123VersionCompat="$libout123Version compat >= ${libout123Version%%.*}"
|
|
PROVIDES="
|
|
mpg123$secondaryArchSuffix = $portVersion
|
|
cmd:mpg123$secondaryArchSuffix = $portVersion
|
|
cmd:mpg123_id3dump$secondaryArchSuffix = $portVersion
|
|
cmd:mpg123_strip$secondaryArchSuffix = $portVersion
|
|
cmd:out123$secondaryArchSuffix = $portVersion
|
|
lib:libmpg123$secondaryArchSuffix = $libmpg123VersionCompat
|
|
lib:libout123$secondaryArchSuffix = $libout123VersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libltdl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
mpg123${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmpg123$secondaryArchSuffix = $libmpg123VersionCompat
|
|
devel:libout123$secondaryArchSuffix = $libout123VersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
haiku$secondaryArchSuffix
|
|
mpg123$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoheader
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage mpg123$secondaryArchSuffix \
|
|
"$binDir"/mpg123 \
|
|
"$binDir"/mpg123-id3dump \
|
|
"$binDir"/mpg123-strip \
|
|
"$binDir"/out123 \
|
|
"$libDir"/libmpg123.so.$libmpg123Version \
|
|
"$libDir"/libout123.so.$libout123Version \
|
|
"$libDir"/mpg123/output_dummy.so
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf "$manDir"
|
|
fi
|
|
|
|
rm $libDir/lib*.la
|
|
|
|
prepareInstalledDevelLibs \
|
|
libmpg123 \
|
|
libout123
|
|
fixPkgconfig
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|