mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
74 lines
2.0 KiB
Bash
74 lines
2.0 KiB
Bash
SUMMARY="Qt Build Suite"
|
|
DESCRIPTION="Qbs is a cross-platform build tool."
|
|
HOMEPAGE="https://wiki.qt.io/Qbs"
|
|
COPYRIGHT="2016-2017, Digia Plc and/or its subsidiary(-ies)"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.qt.io/official_releases/qbs/$portVersion/qbs-src-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4daa764a944bdb33a4a0dd792864dd9acc24036ad84ef34cfb3215538c6cef89"
|
|
SOURCE_DIR="qbs-src-$portVersion"
|
|
PATCHES="qbs-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
qbs$secondaryArchSuffix = $portVersion
|
|
cmd:qbs = $portVersion
|
|
cmd:qbs_config = $portVersion
|
|
cmd:qbs_config_ui = $portVersion
|
|
cmd:qbs_create_project = $portVersion
|
|
cmd:qbs_qmltypes = $portVersion
|
|
cmd:qbs_setup_android = $portVersion
|
|
cmd:qbs_setup_qt = $portVersion
|
|
cmd:qbs_setup_toolchains = $portVersion
|
|
lib:libqbscore$secondaryArchSuffix = $portVersion
|
|
lib:libqbsqtprofilesetup$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Script$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Script$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
qmake -r qbs.pro QBS_INSTALL_PREFIX=$prefix
|
|
ln -s ../lib/ bin/lib
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
mv $prefix/lib $prefix/lib2
|
|
mkdir -p $(dirname $libDir) $(dirname $includeDir) $(diname $dataDir)
|
|
|
|
mv $prefix/include $includeDir
|
|
mv $prefix/lib2 $libDir
|
|
mv $prefix/share $dataDir
|
|
mv $prefix/libexec/qbs/* $libDir/qbs/
|
|
rm -rf $prefix/libexec
|
|
}
|