QWinFF: enable build for x86 and x86_64

* add application icon
* add haiku toolbar icons
This commit is contained in:
Gerasim Troeglazov
2019-05-26 21:08:43 +10:00
parent 729f104a26
commit 5d06f0eaef
3 changed files with 73 additions and 7 deletions

View File

@@ -6,14 +6,17 @@ 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"
REVISION="2"
SOURCE_URI="https://downloads.sf.net/qwinff/qwinff_$portVersion.tar.gz"
CHECKSUM_SHA256="b9f230b22e56c5ebd50a2b51dc9369df5006b1e3bf7cfcee819b7745c0d9fc18"
PATCHES="qwinff-$portVersion.patchset"
ADDITIONAL_FILES="qwinff.rdef.in"
ADDITIONAL_FILES="
qwinff.rdef.in
haikuicons.zip
"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
QwinFF$secondaryArchSuffix = $portVersion
@@ -46,6 +49,11 @@ BUILD_PREREQUIRES="
cmd:qmake$secondaryArchSuffix >= 5
"
PATCH()
{
unzip -o $sourceDir/../../additional-files/haikuicons.zip -d $sourceDir/src/icons
}
BUILD()
{
make $jobArgs PREFIX=$appsDir/QwinFF
@@ -59,13 +67,17 @@ INSTALL()
mv $appsDir/QwinFF/qwinff $appsDir/QwinFF/QwinFF
rm -rf $appsDir/QwinFF/bin/
local APP_SIGNATURE="application/x-vnd.qwinff"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
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/qwinff.rdef.in > qwinff.rdef
addResourcesToBinaries qwinff.rdef $appsDir/QwinFF/QwinFF