mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
106 lines
3.5 KiB
Bash
106 lines
3.5 KiB
Bash
SUMMARY="A complete IDE for C/C++ development from the makers of Qt"
|
|
DESCRIPTION="Qt Creator provides a cross-platform, complete integrated \
|
|
development environment (IDE) for application developers to create \
|
|
applications for multiple desktop, embedded, and mobile device platforms, \
|
|
such as Android and iOS."
|
|
HOMEPAGE="https://www.qt.io/ide/"
|
|
COPYRIGHT="2018 The Qt Company Ltd"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.qt.io/official_releases/qtcreator/4.6/$portVersion/qt-creator-opensource-src-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="36e6a9146fbd07f045ea19301176c66f8234afd42bae0a7a17c91e1832fc4882"
|
|
SOURCE_DIR="qt-creator-opensource-src-$portVersion"
|
|
PATCHES="qt_creator-$portVersion.patchset"
|
|
ADDITIONAL_FILES="qt_creator.rdef.in"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
qt_creator$secondaryArchSuffix = $portVersion
|
|
app:QtCreator$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt5Concurrent$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Designer$secondaryArchSuffix
|
|
lib:libQt5DesignerComponents$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Help$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Qml$secondaryArchSuffix
|
|
lib:libQt5Quick$secondaryArchSuffix
|
|
lib:libQt5QuickWidgets$secondaryArchSuffix
|
|
lib:libQt5Script$secondaryArchSuffix
|
|
lib:libQt5Sql$secondaryArchSuffix
|
|
lib:libQt5Svg$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libQt5Concurrent$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Designer$secondaryArchSuffix
|
|
devel:libQt5DesignerComponents$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Help$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
devel:libQt5Qml$secondaryArchSuffix
|
|
devel:libQt5Quick$secondaryArchSuffix
|
|
devel:libQt5QuickWidgets$secondaryArchSuffix
|
|
devel:libQt5Script$secondaryArchSuffix
|
|
devel:libQt5Sql$secondaryArchSuffix
|
|
devel:libQt5Svg$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
qmake -r
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install INSTALL_ROOT=$appsDir/QtCreator
|
|
# rm -rf $appsDir/QtCreator/share
|
|
|
|
# Qt port doesn't support createPlatformOpenGLContext yet
|
|
rm -rf $appsDir/QtCreator/lib/qtcreator/plugins/libQmlDesigner.so
|
|
rm -rf $appsDir/QtCreator/lib/qtcreator/plugins/libQmlProfiler.so
|
|
|
|
local APP_SIGNATURE="application/x-vnd.qt5-qtcreator"
|
|
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/qt_creator.rdef.in > qt_creator.rdef
|
|
|
|
addResourcesToBinaries qt_creator.rdef $appsDir/QtCreator/bin/qtcreator
|
|
|
|
mv $appsDir/QtCreator/bin/qtcreator "$appsDir/QtCreator/bin/Qt Creator"
|
|
# ln -s "$appsDir/QtCreator/bin/Qt Creator" $appsDir/QtCreator/
|
|
|
|
mkdir -p $dataDir/deskbar/menu/Applications/Qt
|
|
addAppDeskbarSymlink "$appsDir/QtCreator/bin/Qt Creator" "Qt/Qt Creator"
|
|
}
|