mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-07 07:28:57 +02:00
SMPlayer: bump version
This commit is contained in:
99
media-video/smplayer/smplayer-18.9.0.recipe
Normal file
99
media-video/smplayer/smplayer-18.9.0.recipe
Normal file
@@ -0,0 +1,99 @@
|
||||
SUMMARY="Great Qt GUI front-end for MPlayer/mpv"
|
||||
DESCRIPTION="SMPlayer is a graphical user interface (GUI) for the \
|
||||
award-winning MPlayer, which is capable of playing almost all known video and \
|
||||
audio formats. But apart from providing access for the most common and useful \
|
||||
options of MPlayer, SMPlayer adds other interesting features like the \
|
||||
possibility to play Youtube videos or download subtitles."
|
||||
HOMEPAGE="https://www.smplayer.info/"
|
||||
COPYRIGHT="2006-2018 Ricardo Villalba"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sf.net/smplayer/smplayer-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="0df1ed59caea1f321b6a3a0e2a9fff4e87d2553eeacaa5b167e64001bd10ce3d"
|
||||
PATCHES="smplayer-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="smplayer.rdef"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 ?x86"
|
||||
|
||||
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
|
||||
PROVIDES="
|
||||
smplayer$secondaryArchSuffix = $portVersion
|
||||
app:SMPlayer = $portVersion
|
||||
cmd:smplayer = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5DBus$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Script$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libQt5Xml$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
cmd:mpv
|
||||
cmd:smtube$commandSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5DBus$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Script$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libQt5Xml$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="settings/smplayer/input.conf keep-old"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
smplayerDir=$appsDir/SMPlayer
|
||||
mkdir -p $smplayerDir/translations $settingsDir/smplayer
|
||||
cp src/translations/*.qm $smplayerDir/translations
|
||||
cp src/input.conf $settingsDir/smplayer
|
||||
cp src/smplayer $smplayerDir/SMPlayer$commandSuffix
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/smplayer.rdef > smplayer.rdef
|
||||
|
||||
addResourcesToBinaries smplayer.rdef $smplayerDir/SMPlayer$commandSuffix
|
||||
|
||||
mkdir -p $commandBinDir
|
||||
if [ -n "$commandSuffix" ]; then
|
||||
mkdir -p $prefix/bin
|
||||
symlinkRelative -s $smplayerDir/SMPlayer$commandSuffix $prefix/bin
|
||||
fi
|
||||
symlinkRelative -s $smplayerDir/SMPlayer$commandSuffix \
|
||||
$commandBinDir/smplayer
|
||||
addAppDeskbarSymlink $smplayerDir/SMPlayer
|
||||
}
|
||||
Reference in New Issue
Block a user