VLC: add support integrate video in interface mode

This commit is contained in:
Gerasim Troeglazov
2024-12-12 22:43:09 +10:00
parent a29ed34c67
commit 6e36d101d8
2 changed files with 469 additions and 413 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,7 @@ VCDs, and various streaming protocols."
HOMEPAGE="https://www.videolan.org/vlc/"
COPYRIGHT="1998-2024 VideoLAN"
LICENSE="GNU GPL v2"
REVISION="3"
REVISION="4"
SOURCE_URI="https://download.videolan.org/pub/videolan/vlc/$portVersion/vlc-$portVersion.tar.xz"
SOURCE_DIR="vlc-$portVersion"
CHECKSUM_SHA256="24dbbe1d7dfaeea0994d5def0bbde200177347136dbfe573f5b6a4cee25afbb0"
@@ -19,10 +19,17 @@ ADDITIONAL_FILES="
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
vlc$secondaryArchSuffix = $portVersion
app:VLC = $portVersion
cmd:vlc$secondaryArchSuffix = $portVersion
cmd:vlc$commandSuffix = $portVersion
lib:libvlc$secondaryArchSuffix = 5.6.1 compat >= 5
lib:libvlccore$secondaryArchSuffix = 9.0.1 compat >= 9
"
@@ -174,7 +181,8 @@ BUILD()
export CFLAGS="-lgnu -lnetwork"
export CXXFLAGS="-lgnu -lnetwork"
runConfigure ./configure \
runConfigure --omit-dirs binDir ./configure \
--bindir="$commandBinDir" \
--disable-rpath \
--with-default-font=`finddir B_SYSTEM_FONTS_DIRECTORY`/ttfonts/NotoMono-Regular.ttf \
--with-default-font-family=Sans \
@@ -202,7 +210,8 @@ INSTALL()
mkdir -p $appsDir
cp "haiku/VLC media player" $appsDir
cp $binDir/vlc $appsDir/VLC
mv $commandBinDir/vlc $commandBinDir/VLC
ln -s $commandBinDir/VLC $commandBinDir/vlc
local APP_SIGNATURE="application/x-vnd.vlc"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
@@ -217,7 +226,7 @@ INSTALL()
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/vlc.rdef.in > vlc.rdef
addResourcesToBinaries vlc.rdef $appsDir/VLC
addResourcesToBinaries vlc.rdef $commandBinDir/VLC
local APP_SIGNATURE="application/x-vnd.vlc-launcher"
sed \