155 lines
4.7 KiB
Bash
155 lines
4.7 KiB
Bash
SUMMARY="The popular cross-plattform 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="https://www.videolan.org/vlc/"
|
|
COPYRIGHT="1998-2008 VideoLAN"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="6"
|
|
SOURCE_URI="https://download.videolan.org/pub/vlc/$portVersion/vlc-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="e99b3b49efd8cae8cf210ca69a5c81ceeac3b2e7d2b1e79df84c9abee4aa8426"
|
|
PATCHES="vlc-$portVersion.patchset"
|
|
ADDITIONAL_FILES="vlc.rdef.in"
|
|
|
|
ARCHITECTURES="?x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
vlc$secondaryArchSuffix = $portVersion
|
|
cmd:vlc$secondaryArchSuffix
|
|
cmd:vlc_config$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:liba52$secondaryArchSuffix
|
|
lib:libavcodec$secondaryArchSuffix == 53.61.100
|
|
# lib:libdvbpsi$secondaryArchSuffix >= 9
|
|
lib:libdvdcss$secondaryArchSuffix
|
|
lib:libgnutls$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
vlc${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libbeos$secondaryArchSuffix
|
|
devel:libi420_rgb_mmx$secondaryArchSuffix
|
|
devel:libi420_ymga_mmx$secondaryArchSuffix
|
|
devel:libi420_yuy2_mmx$secondaryArchSuffix
|
|
devel:libi422_yuy2_mmx$secondaryArchSuffix
|
|
devel:libmemcpy3dn$secondaryArchSuffix
|
|
devel:libmemcpymmx$secondaryArchSuffix
|
|
devel:libmemcpymmxext$secondaryArchSuffix
|
|
devel:libvlc$secondaryArchSuffix
|
|
"
|
|
REQUIRES_devel="
|
|
vlc == $portVersion base
|
|
# devel:libdvbpsi$secondaryArchSuffix >= 9
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:liba52$secondaryArchSuffix
|
|
devel:libavcodec$secondaryArchSuffix == 53.61.100
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libcddb$secondaryArchSuffix
|
|
devel:libcdio$secondaryArchSuffix
|
|
devel:libdca$secondaryArchSuffix
|
|
# devel:libdvbpsi$secondaryArchSuffix >= 9
|
|
devel:libdvdcss$secondaryArchSuffix
|
|
devel:libdvdnav$secondaryArchSuffix
|
|
devel:libdvdread$secondaryArchSuffix
|
|
devel:libebml$secondaryArchSuffix
|
|
devel:libfaac$secondaryArchSuffix
|
|
devel:libfaad$secondaryArchSuffix
|
|
devel:libflac$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libfribidi$secondaryArchSuffix
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgl$secondaryArchSuffix
|
|
devel:libglu$secondaryArchSuffix
|
|
devel:libgnutls$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libid3tag$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libmad$secondaryArchSuffix
|
|
devel:libmatroska$secondaryArchSuffix
|
|
devel:libmodplug$secondaryArchSuffix
|
|
devel:libmp3lame$secondaryArchSuffix
|
|
devel:libmpcdec$secondaryArchSuffix
|
|
devel:libmpeg2$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libpostproc$secondaryArchSuffix
|
|
devel:libsmbclient$secondaryArchSuffix
|
|
devel:libspeex$secondaryArchSuffix
|
|
devel:libtheora$secondaryArchSuffix
|
|
devel:libtwolame$secondaryArchSuffix
|
|
devel:libvcdinfo$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
# We need a recipe for an old version of this that will still build with gcc2.
|
|
# devel:libx264$secondaryArchSuffix
|
|
BUILD_PREREQUIRES="
|
|
cmd:ar$secondaryArchSuffix
|
|
cmd:autoconf
|
|
cmd:bison
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sed
|
|
cmd:which
|
|
cmd:xargs
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoconf
|
|
runConfigure ./configure CFLAGS="-Davcodec_init=avcodec_register_all" \
|
|
--disable-wxwidgets --disable-skins2 --enable-shared \
|
|
--enable-screen --enable-dvdread --enable-smb --enable-faad \
|
|
--enable-twolame --with-ffmpeg-dca --with-ffmpeg-theora --enable-flac
|
|
|
|
make # Multi-job build is not working
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libvlc vlc/libbeos vlc/libi420_rgb_mmx \
|
|
vlc/libi420_ymga_mmx vlc/libi420_yuy2_mmx vlc/libi422_yuy2_mmx \
|
|
vlc/libmemcpy3dn vlc/libmemcpymmx vlc/libmemcpymmxext
|
|
|
|
local APP_SIGNATURE="application/x-vnd.videolan-vlc"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3 | tr -d '[:alpha:]'`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/vlc.rdef.in > vlc.rdef
|
|
|
|
addResourcesToBinaries vlc.rdef $binDir/vlc
|
|
addAppDeskbarSymlink $binDir/vlc "VLC media player"
|
|
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|