mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
faad2 now compiling on gcc2 and gcc4 with the developer files in place, thanks to DiverHQ for the pointers and help
This commit is contained in:
@@ -1,30 +1,78 @@
|
||||
SUMMARY="FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder"
|
||||
DESCRIPTION="FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder"
|
||||
|
||||
HOMEPAGE="http://www.audiocoding.com/"
|
||||
SRC_URI="http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
CHECKSUM_MD5="ee1b4d67ea2d76ee52c5621bc6dbf61e"
|
||||
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2003-2005 M. Bakker, Nero AG."
|
||||
|
||||
CHECKSUM_SIZE="1137407"
|
||||
CHECKSUM_RMD160="3f0ca461e2953014d5b17edccb3337767d478b8d"
|
||||
CHECKSUM_SHA512="8135370497dfcfee09094a03a4a9545ebc58b9e532b89c5d6e5037042549e12ddb75f8903aa05866afac9fa28df96320f1ed2eebffc0660578e54392a51c1161"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PATCHES="faad2-2.7.patch"
|
||||
|
||||
PROVIDES="
|
||||
faad$secondaryArchSuffix = $portVersion
|
||||
lib:libfaad$secondaryArchSuffix = $portVersion
|
||||
lib:libmp4ff$secondaryArchSuffix = $portVersion
|
||||
cmd:faad$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix} >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:libtool
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
SOURCE_DIR="faad2-2.7"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's/(LTCOMPILE) -c/(LTCOMPILE) -nostart/' libfaad/Makefile.in
|
||||
sed -i 's/iquote/I/' libfaad/Makefile.am
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd faad2-2.7
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||
LIBDIR=`finddir B_COMMON_LIB_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--libdir=$LIBDIR \
|
||||
--mandir=$MANDIR
|
||||
|
||||
runConfigure ./configure
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd faad2-2.7
|
||||
make install
|
||||
prepareInstalledDevelLibs libfaad libmp4ff
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2003-2005 M. Bakker, Nero AG."
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
faad${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libfaad$secondaryArchSuffix
|
||||
devel:libmp4ff$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user