mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Mostly working recipe for lame-3.99.5, the additional-files can go away once
the libs that the .m4 files come from get proper recipes written. Also the sed hacking can probably be done in a cleaner way, but it works for now.
This commit is contained in:
95
media-sound/lame/lame-3.99.5.recipe
Normal file
95
media-sound/lame/lame-3.99.5.recipe
Normal file
@@ -0,0 +1,95 @@
|
||||
SUMMARY="LAME Ain't an MP3 Encoder"
|
||||
DESCRIPTION="LAME Ain't an MP3 Encoder"
|
||||
HOMEPAGE="http://lame.sourceforge.net/"
|
||||
SRC_URI="http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz"
|
||||
CHECKSUM_MD5="84835b313d4a8b68f5349816d33e07ce"
|
||||
LICENSE="GNU LGPL v2"
|
||||
COPYRIGHT="1998-2012 Mike Cheng et al."
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
lame = $portVersion compat >= 1
|
||||
cmd:lame = $portVersion compat >= 1
|
||||
lib:libmp3lame = $portVersion compat >= 0.0.0
|
||||
devel:libmp3lame = $portVersion compat >= 1
|
||||
"
|
||||
REQUIRES="haiku >= $haikuVersion"
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc
|
||||
# cmd:gettext
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:m4
|
||||
cmd:sed
|
||||
lib:libiconv$secondaryArchSuffic >= 2
|
||||
devel:libiconv
|
||||
"
|
||||
|
||||
PATCHES="lame-3.99.5.patch"
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p m4
|
||||
# configure checks for gtk, but they didn't include the gtk.m4 so we need to.
|
||||
cp $portDir/additional-files/gtk.m4 m4/gtk.m4
|
||||
cp `aclocal --print-ac-dir`/iconv.m4 m4/iconv.m4
|
||||
cp $portDir/additional-files/lib-link.m4 m4/lib-link.m4
|
||||
cp $portDir/additional-files/lib-ld.m4 m4/lib-ld.m4
|
||||
cp $portDir/additional-files/lib-prefix.m4 m4/lib-prefix.m4
|
||||
|
||||
sed -i 's/AM_C_PROTOTYPES//' configure.in
|
||||
sed -i 's/AUTOMAKE_OPTIONS = foreign $(top_srcdir)\/ansi2knr//' \
|
||||
libmp3lame/i386/Makefile.am
|
||||
sed -i 's/AUTOMAKE_OPTIONS = foreign ansi2knr//' \
|
||||
doc/man/Makefile.am
|
||||
sed -i 's/AUTOMAKE_OPTIONS = foreign ansi2knr//' \
|
||||
doc/html/Makefile.am
|
||||
sed -i 's/HAVE_SNDFILE="yes"/HAVE_SNDFILE="no"/g' configure.in
|
||||
sed -i 's/PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2, HAVE_SNDFILE="no", HAVE_SNDFILE="no")/HAVE_SNDFILE="no"/' configure.in
|
||||
sed -i 's/@SNDFILE_CFLAGS@/-ffast-math/g' frontend/*
|
||||
sed -i 's/@SNDFILE_LIBS@/-ffast-math/g' frontend/*
|
||||
|
||||
libtoolize --force --copy --install
|
||||
aclocal -I m4
|
||||
automake
|
||||
autoconf
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install $jobArgs
|
||||
|
||||
# prepare devel/lib
|
||||
prepareInstalledDevelLibs libmp3lame
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$binDir/lame \
|
||||
$developDir \
|
||||
$manDir/man1
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
lame_devel = $portVersion
|
||||
cmd:lame = $portVersion compat >= 3
|
||||
lib:libmp3lame = $portVersion compat >= 0.0.0
|
||||
devel:libmp3lame = 0.0.0 compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libmp3lame == $portVersion base
|
||||
lib:libiconv >= 2
|
||||
lib:libroot >= $haikuVersion
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user