mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +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.
78 lines
1.8 KiB
Bash
78 lines
1.8 KiB
Bash
SUMMARY="A MPEG Audio Layer 2 encoder"
|
|
DESCRIPTION="TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based \
|
|
on tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and \
|
|
portions of LAME."
|
|
HOMEPAGE="https://www.twolame.org"
|
|
COPYRIGHT="2004-2006 The TwoLAME Project"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="4"
|
|
SOURCE_URI="http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz"
|
|
CHECKSUM_SHA256="98f332f48951f47f23f70fd0379463aff7d7fb26f07e1e24e42ddef22cc6112a"
|
|
PATCHES="twolame-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
twolame$secondaryArchSuffix = $portVersion compat >= 0
|
|
cmd:twolame$secondaryArchSuffix
|
|
lib:libtwolame$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libFLAC$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libsndfile$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
twolame${secondaryArchSuffix}_devel = $portVersion compat >= 0
|
|
devel:libtwolame$secondaryArchSuffix = 0.0.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
twolame$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libflac$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libsndfile$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
"
|
|
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
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
autoconf
|
|
autoheader
|
|
automake --add-missing
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libtwolame.la
|
|
|
|
prepareInstalledDevelLib libtwolame
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir
|
|
}
|