mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
QWinFF: new recipe (#2514)
This commit is contained in:
73
media-video/qwinff/qwinff-0.2.1.recipe
Normal file
73
media-video/qwinff/qwinff-0.2.1.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="A GUI for FFMPEG"
|
||||
DESCRIPTION="FFmpeg can read audio and video files in various formats and \
|
||||
convert them into other formats. QwinFF features an intuitive graphical \
|
||||
interface and a rich set of presets to help you convert media files within a \
|
||||
few clicks. Advanced users can also adjust conversion parameters in detail."
|
||||
HOMEPAGE="https://qwinff.github.io/"
|
||||
COPYRIGHT="2011 Timothy Lin"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sf.net/qwinff/qwinff_$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b9f230b22e56c5ebd50a2b51dc9369df5006b1e3bf7cfcee819b7745c0d9fc18"
|
||||
ADDITIONAL_FILES="qwinff.rdef.in"
|
||||
PATCHES="qwinff-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
QwinFF$secondaryArchSuffix = $portVersion
|
||||
app:QwinFF$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:ffmpeg
|
||||
cmd:ffprobe
|
||||
cmd:ffplay
|
||||
cmd:sox$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5DBus$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5OpenGL$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs PREFIX=$appsDir/QwinFF
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make PREFIX=$appsDir/QwinFF install
|
||||
|
||||
mv $appsDir/QwinFF/bin/* $appsDir/QwinFF
|
||||
mv $appsDir/QwinFF/qwinff $appsDir/QwinFF/QwinFF
|
||||
rm -rf $appsDir/QwinFF/bin/
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/qwinff.rdef.in > qwinff.rdef
|
||||
|
||||
addResourcesToBinaries qwinff.rdef $appsDir/QwinFF/QwinFF
|
||||
addAppDeskbarSymlink $appsDir/QwinFF/QwinFF QwinFF
|
||||
}
|
||||
Reference in New Issue
Block a user