qt_creator-4.10.0.recipe revision 8167c616
1SUMMARY="A complete IDE for C/C++ development from the makers of Qt"
2DESCRIPTION="Qt Creator provides a cross-platform, complete integrated \
3development environment (IDE) for application developers to create \
4applications for multiple desktop, embedded, and mobile device platforms, \
5such as Android and iOS."
6HOMEPAGE="https://www.qt.io/ide/"
7COPYRIGHT="2019 The Qt Company Ltd"
8LICENSE="GNU GPL v3"
9REVISION="1"
10SOURCE_URI="https://download.qt.io/official_releases/qtcreator/4.10/$portVersion/qt-creator-opensource-src-$portVersion.tar.xz"
11CHECKSUM_SHA256="8f5d3abc522d8b8879adfa098e037f751b4311173f5f443fd1b5800f5feb0f8a"
12SOURCE_DIR="qt-creator-opensource-src-$portVersion"
13PATCHES="qt_creator-$portVersion.patchset"
14ADDITIONAL_FILES="qt_creator.rdef.in"
15
16ARCHITECTURES="!x86_gcc2 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	qt_creator$secondaryArchSuffix = $portVersion
21	app:QtCreator$secondaryArchSuffix = $portVersion
22	"
23REQUIRES="
24	haiku$secondaryArchSuffix
25	cmd:qdoc$secondaryArchSuffix >= 5
26	cmd:qmake$secondaryArchSuffix >= 5
27	lib:libGL$secondaryArchSuffix
28	lib:libLLVM_8$secondaryArchSuffix
29	lib:libQt5Concurrent$secondaryArchSuffix
30	lib:libQt5Core$secondaryArchSuffix
31	lib:libQt5Designer$secondaryArchSuffix
32	lib:libQt5DesignerComponents$secondaryArchSuffix
33	lib:libQt5Gui$secondaryArchSuffix
34	lib:libQt5Help$secondaryArchSuffix
35	lib:libQt5Network$secondaryArchSuffix
36	lib:libQt5PrintSupport$secondaryArchSuffix
37	lib:libQt5Qml$secondaryArchSuffix
38	lib:libQt5Quick$secondaryArchSuffix
39	lib:libQt5QuickWidgets$secondaryArchSuffix
40	lib:libQt5Script$secondaryArchSuffix
41	lib:libQt5Sql$secondaryArchSuffix
42	lib:libQt5Svg$secondaryArchSuffix
43	lib:libQt5Widgets$secondaryArchSuffix
44	lib:libQt5Xml$secondaryArchSuffix
45	"
46
47BUILD_REQUIRES="
48	haiku${secondaryArchSuffix}_devel
49	devel:libclang$secondaryArchSuffix >= 8
50	devel:libGL$secondaryArchSuffix
51	devel:libLLVM_8$secondaryArchSuffix
52	devel:libQt5Concurrent$secondaryArchSuffix
53	devel:libQt5Core$secondaryArchSuffix
54	devel:libQt5Designer$secondaryArchSuffix
55	devel:libQt5DesignerComponents$secondaryArchSuffix
56	devel:libQt5Gui$secondaryArchSuffix
57	devel:libQt5Help$secondaryArchSuffix
58	devel:libQt5Network$secondaryArchSuffix
59	devel:libQt5PrintSupport$secondaryArchSuffix
60	devel:libQt5Qml$secondaryArchSuffix
61	devel:libQt5Quick$secondaryArchSuffix
62	devel:libQt5QuickWidgets$secondaryArchSuffix
63	devel:libQt5Script$secondaryArchSuffix
64	devel:libQt5Sql$secondaryArchSuffix
65	devel:libQt5Svg$secondaryArchSuffix
66	devel:libQt5Widgets$secondaryArchSuffix
67	devel:libQt5Xml$secondaryArchSuffix
68	"
69BUILD_PREREQUIRES="
70	cmd:g++$secondaryArchSuffix
71	cmd:lrelease$secondaryArchSuffix >= 5
72	cmd:make	
73	cmd:qdoc$secondaryArchSuffix >= 5
74	cmd:qmake$secondaryArchSuffix >= 5
75	cmd:python2
76	cmd:which
77	"
78
79BUILD()
80{
81	qmake -r
82	make $jobArgs
83}
84
85INSTALL()
86{
87	make install INSTALL_ROOT=$appsDir/QtCreator
88
89	# Qt port doesn't support createPlatformOpenGLContext yet
90	rm -rf $appsDir/QtCreator/lib/qtcreator/plugins/libQmlDesigner.so
91	rm -rf $appsDir/QtCreator/lib/qtcreator/plugins/libQmlProfiler.so
92	# Create symlink to libclang 5.0 from Qt's build
93	ln -s /system/apps/Qt5/lib/libclang* $appsDir/QtCreator/lib/qtcreator/
94
95	local APP_SIGNATURE="application/x-vnd.qt5-qtcreator"
96	local MAJOR="`echo "$portVersion" | cut -d. -f1`"
97	local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
98	local MINOR="`echo "$portVersion" | cut -d. -f3`"
99	local LONG_INFO="$SUMMARY"
100	sed \
101		-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
102		-e "s|@MAJOR@|$MAJOR|" \
103		-e "s|@MIDDLE@|$MIDDLE|" \
104		-e "s|@MINOR@|$MINOR|" \
105		-e "s|@LONG_INFO@|$LONG_INFO|" \
106		$portDir/additional-files/qt_creator.rdef.in > qt_creator.rdef
107
108	addResourcesToBinaries qt_creator.rdef $appsDir/QtCreator/bin/qtcreator
109
110	mv $appsDir/QtCreator/bin/qtcreator "$appsDir/QtCreator/bin/Qt Creator"
111
112	mkdir -p $dataDir/deskbar/menu/Applications/Qt
113	addAppDeskbarSymlink "$appsDir/QtCreator/bin/Qt Creator" "Qt/Qt Creator"
114}
115