vlc 0.8.6i: hack recipe to build again

* Hacked-in Haiku support without changing the automake scripts as they
can't be processed with current automake versions
* Hacked ffmpeg code to build with ffmpeg 0.10. I hope I didn't break
anything here...

We really should consider getting a more recent version running on Haiku
instead, but this will do for now.
This commit is contained in:
Adrien Destugues
2014-09-10 22:52:15 +02:00
parent 16c737c3e7
commit 2bbd186b14
3 changed files with 75768 additions and 357 deletions

View File

@@ -1,30 +1,86 @@
DESCRIPTION="vlc - media player"
SUMMARY="VLC Media Player"
DESCRIPTION="VLC is a free and open source cross-platform multimedia player \
and framework that plays most multimedia files as well as DVDs, Audio CDs, \
VCDs, and various streaming protocols."
HOMEPAGE="http://www.videolan.org/vlc/"
SRC_URI="http://download.videolan.org/pub/vlc/0.8.6i/vlc-0.8.6i.tar.gz"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND="pkgconfig >= 0.23,
SRC_URI="http://download.videolan.org/pub/vlc/0.8.6i/vlc-0.8.6i.tar.gz"
CHECKSUM_SHA256="e99b3b49efd8cae8cf210ca69a5c81ceeac3b2e7d2b1e79df84c9abee4aa8426"
ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
vlc$secondaryArchSuffix = $portVersion
cmd:vlc
cmd:vlc_config
"
REQUIRES="
haiku >= $haikuVersion
lib:libintl
lib:libiconv
"
PROVIDES_devel="
vlc_devel = $portVersion
devel:libvlc
"
REQUIRES_devel="
vlc == $portVersion base
"
BUILD_REQUIRES="
devel:libavcodec$secondaryArchSuffix == 53.61.100
devel:libcddb$secondaryArchSuffix
devel:libdvdread$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libmad$secondaryArchSuffix
devel:libmodplug$secondaryArchSuffix
devel:libmpeg2$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libpostproc$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:autoconf
cmd:bison
cmd:gcc$secondaryArchSuffix
cmd:ar$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:xargs
cmd:sed
"
DEPEND="
libcdio,
libogg,
libmodplug,
libdvdread,
libebml,
libmad
ffmpeg = 7407"
CHECKSUM_MD5="fd852166d1705573cd7768a06117ed51"
"
PATCHES="vlc-$portVersion.patchset"
BUILD()
{
cd vlc-0.8.6i
libtoolize --force --copy --install
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
autoconf
runConfigure ./configure CFLAGS="-Davcodec_init=avcodec_register_all" \
--disable-wxwidgets --disable-skins2 --enable-shared
make # Multi-job build is not working
}
INSTALL()
{
cd vlc-0.8.6i
make install
prepareInstalledDevelLib libvlc
packageEntries devel $developDir
}
LICENSE="GNU GPL v2"
COPYRIGHT="1998-2008"
COPYRIGHT="1998-2008 VideoLan organization"