Files
haikuports/media-sound/mpg123/mpg123-1.23.2.recipe
2016-02-24 20:12:11 +00:00

66 lines
1.6 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="http://www.mpg123.org/"
COPYRIGHT="1995-2009 Michael Hipp and others"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/mpg123/files/mpg123/$portVersion/mpg123-$portVersion.tar.bz2"
CHECKSUM_SHA256="b5678bfe0cd1c6d2e29561d50bbef6bbc14ed055404453d18b6f4044c7b0a7ae"
#PATCHES="mpg123-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
mpg123$secondaryArchSuffix = $portVersion
lib:libmpg123$secondaryArchSuffix = 0.42.0 compat >= 0
cmd:mpg123$secondaryArchSuffix
cmd:mpg123_id3dump$secondaryArchSuffix
cmd:mpg123_strip$secondaryArchSuffix
cmd:out123$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libltdl$secondaryArchSuffix
"
PROVIDES_devel="
mpg123${secondaryArchSuffix}_devel = $portVersion
devel:libmpg123$secondaryArchSuffix = 0.42.0 compat >= 0
"
REQUIRES_devel="
haiku$secondaryArchSuffix
mpg123$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:awk
cmd:find
cmd:autoconf
cmd:libtool
cmd:aclocal
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
LDFLAGS="-lnetwork" runConfigure ./configure --disable-aligncheck
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libmpg123
fixPkgconfig
packageEntries devel $developDir
}