mpg123: turn into proper recipe.

This commit is contained in:
Adrien Destugues
2014-01-28 13:06:32 +01:00
parent 1b38483d41
commit f6da0c1ba0

View File

@@ -1,3 +1,4 @@
SUMMARY="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.
@@ -5,24 +6,55 @@ Layer 1, 2 and 3.
HOMEPAGE="http://www.mpg123.org/"
SRC_URI="http://sourceforge.net/projects/mpg123/files/mpg123/1.12.1/mpg123-1.12.1.tar.bz2/download"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="media-libs/libsdl >= 1.2"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
CHECKSUM_MD5="e7d810a75d22954169f1530a436aca4c"
#DEPEND="media-libs/libsdl >= 1.2"
PROVIDES="
mpg123$secondaryArchSuffix = $portVersion
lib:libmpg123$secondaryArchSuffix
cmd:mpg123$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
PATCHES="mpg123-1.12.1.patch"
BUILD()
{
cd mpg123-1.12.1
libtoolize --force --copy --install
aclocal
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY` --disable-aligncheck
make
#libtoolize --force --copy --install
# aclocal
# autoconf
LDFLAGS="-lnetwork" runConfigure ./configure --disable-aligncheck
make $jobArgs
}
INSTALL()
{
cd mpg123-1.12.1
make install
prepareInstalledDevelLib libmpg123
packageEntries devel $developDir
}
PROVIDES_devel="
mpg123$secondaryArchSuffix = $portVersion
devel:libmpg123$secondaryArchSuffix
"
REQUIRES_devel="
haiku$secondaryArchSuffix >= $haikuVersion
mpg123$secondaryArchSuffix == $portVersion base
"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1995-2009 Michael Hipp and others"