mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
QWinFF: enable build for x86 and x86_64
* add application icon * add haiku toolbar icons
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user