qtwebkit-5.212.0~pre20190906.recipe revision 33125666
1SUMMARY="WebKit rendering library for the Qt5 framework"
2DESCRIPTION="QtWebKit provides a Web browser engine that makes it easy to embed \
3content from the World Wide Web into your Qt application. At the same time Web \
4content can be enhanced with native controls.
5QtWebKit provides facilities for rendering of HyperText Markup Language (HTML), \
6Extensible HyperText Markup Language (XHTML) and Scalable Vector Graphics (SVG) \
7documents, styled using Cascading Style Sheets (CSS) and scripted with JavaScript."
8HOMEPAGE="https://www.qt.io"
9COPYRIGHT="2015-2019 The Qt Company Ltd."
10LICENSE="BSD (3-clause)
11	GNU LGPL v2.1"
12REVISION="1"
13srcGitRev="8b813e69d7764a1ad320de203fbcf17146ba469b"
14SOURCE_URI="https://github.com/qt/qtwebkit/archive/$srcGitRev.tar.gz"
15CHECKSUM_SHA256="f802715ae74f282b76261ed12cf6108a4c070f43024d5e2d11b31dc98b762d3b"
16SOURCE_DIR="qtwebkit-$srcGitRev"
17PATCHES="qtwebkit-$portVersion.patchset"
18
19ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
20SECONDARY_ARCHITECTURES="x86"
21
22PROVIDES="
23	qtwebkit$secondaryArchSuffix = $portVersion compat >= 5
24	cmd:QtWebNetworkProcess$secondaryArchSuffix = $portVersion compat >= 5
25	cmd:QtWebProcess$secondaryArchSuffix = $portVersion compat >= 5
26	cmd:QtWebStorageProcess$secondaryArchSuffix = $portVersion compat >= 5
27	lib:libQt5WebKit$secondaryArchSuffix = $portVersion compat >= 5
28	lib:libQt5WebKitWidgets$secondaryArchSuffix = $portVersion compat >= 5
29	"
30REQUIRES="
31	haiku$secondaryArchSuffix
32	lib:libfontconfig$secondaryArchSuffix
33	lib:libfreetype$secondaryArchSuffix
34	lib:libgcrypt$secondaryArchSuffix
35	lib:libgl$secondaryArchSuffix
36	lib:libglib_2.0$secondaryArchSuffix
37	lib:libglu$secondaryArchSuffix
38	lib:libgnutls$secondaryArchSuffix
39	lib:libhyphen$secondaryArchSuffix
40	lib:libicudata$secondaryArchSuffix
41	lib:libicui18n$secondaryArchSuffix
42	lib:libicuuc$secondaryArchSuffix
43	lib:libjpeg$secondaryArchSuffix
44	lib:libpng16$secondaryArchSuffix
45	lib:libQt5Core$secondaryArchSuffix
46	lib:libQt5Gui$secondaryArchSuffix
47	lib:libQt5Multimedia$secondaryArchSuffix
48	lib:libQt5MultimediaWidgets$secondaryArchSuffix
49	lib:libQt5Network$secondaryArchSuffix
50	lib:libQt5Positioning$secondaryArchSuffix
51	lib:libQt5PrintSupport$secondaryArchSuffix
52	lib:libQt5Qml$secondaryArchSuffix
53	lib:libQt5Quick$secondaryArchSuffix
54	lib:libQt5Sensors$secondaryArchSuffix
55	lib:libQt5WebChannel$secondaryArchSuffix
56	lib:libQt5Widgets$secondaryArchSuffix
57	lib:libsqlite3$secondaryArchSuffix
58	lib:libtasn1$secondaryArchSuffix
59	lib:libwebp$secondaryArchSuffix
60	lib:libxml2$secondaryArchSuffix
61	lib:libxslt$secondaryArchSuffix
62	lib:libz$secondaryArchSuffix
63	"
64
65PROVIDES_devel="
66	qtwebkit${secondaryArchSuffix}_devel = $portVersion compat >= 5
67	devel:libQt5WebKit$secondaryArchSuffix = $portVersion compat >= 5
68	devel:libQt5WebKitWidgets$secondaryArchSuffix = $portVersion compat >= 5
69	"
70REQUIRES_devel="
71	haiku$secondaryArchSuffix
72	qtwebkit$secondaryArchSuffix == $portVersion base
73	devel:libQt5Core$secondaryArchSuffix
74	devel:libQt5Gui$secondaryArchSuffix
75	devel:libQt5Network$secondaryArchSuffix
76	devel:libQt5Widgets$secondaryArchSuffix
77	"
78
79BUILD_REQUIRES="
80	haiku${secondaryArchSuffix}_devel
81	devel:libcrypto$secondaryArchSuffix
82	devel:libegl$secondaryArchSuffix
83	devel:libfontconfig$secondaryArchSuffix
84	devel:libfreetype$secondaryArchSuffix
85	devel:libgcc$secondaryArchSuffix
86	devel:libgcrypt$secondaryArchSuffix
87	devel:libgl$secondaryArchSuffix
88	devel:libglib_2.0$secondaryArchSuffix
89	devel:libglu$secondaryArchSuffix
90	devel:libgnutls$secondaryArchSuffix >= 30
91	devel:libhyphen$secondaryArchSuffix
92	devel:libicuuc$secondaryArchSuffix
93	devel:libintl$secondaryArchSuffix
94	devel:libjpeg$secondaryArchSuffix
95	devel:libpcre2_16$secondaryArchSuffix
96	devel:libpng16$secondaryArchSuffix
97	devel:libQt5Core$secondaryArchSuffix
98	devel:libQt5Gui$secondaryArchSuffix
99	devel:libQt5Multimedia$secondaryArchSuffix
100	devel:libQt5MultimediaWidgets$secondaryArchSuffix
101	devel:libQt5Network$secondaryArchSuffix
102	devel:libQt5Positioning$secondaryArchSuffix
103	devel:libQt5PrintSupport$secondaryArchSuffix
104	devel:libQt5Qml$secondaryArchSuffix
105	devel:libQt5Quick$secondaryArchSuffix
106	devel:libQt5Sensors$secondaryArchSuffix
107	devel:libQt5WebChannel$secondaryArchSuffix
108	devel:libQt5Widgets$secondaryArchSuffix
109	devel:libruby$secondaryArchSuffix
110	devel:libsqlite3$secondaryArchSuffix
111	devel:libssl$secondaryArchSuffix
112	devel:libtasn1$secondaryArchSuffix
113	devel:libwebp$secondaryArchSuffix
114	devel:libxml2$secondaryArchSuffix
115	devel:libxslt$secondaryArchSuffix
116	devel:libz$secondaryArchSuffix
117	"
118BUILD_PREREQUIRES="
119	cmd:awk
120	cmd:bison
121	cmd:cmake
122	cmd:find
123	cmd:flex
124	cmd:g++$secondaryArchSuffix
125	cmd:gcc$secondaryArchSuffix
126	cmd:gperf
127	cmd:ld$secondaryArchSuffix
128	cmd:make
129	cmd:perl
130	cmd:pkg_config$secondaryArchSuffix
131	cmd:python
132	cmd:ruby
133	cmd:sed
134	"
135
136BUILD()
137{
138	mkdir -p build && cd build
139
140	cmake .. $cmakeDirArgs \
141		-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
142		-DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
143		-DCMAKE_INSTALL_LIBDIR=$libDir \
144		-DCMAKE_INSTALL_BINDIR:PATH=$binDir \
145		-DCMAKE_INSTALL_SBINDIR:PATH=$binDir \
146		-DCMAKE_INSTALL_LIBEXECDIR:PATH=$binDir \
147		-DCMAKE_INSTALL_DATAROOTDIR:PATH=$dataDir/Qt5 \
148		-DCMAKE_BUILD_TYPE=RELEASE \
149		-DPORT=Qt \
150		-DENABLE_ALLINONE_BUILD=OFF \
151		-DENABLE_API_TESTS=OFF \
152		-DENABLE_FTPDIR=ON \
153		-DENABLE_MEDIA_SOURCE=OFF \
154		-DENABLE_SAMPLING_PROFILER=OFF \
155		-DENABLE_THREADED_COMPOSITOR=OFF \
156		-DENABLE_TOOLS=OFF \
157		-DENABLE_SUBTLE_CRYPTO=ON \
158		-DENABLE_FULLSCREEN_API=ON \
159		-DENABLE_SHADOW_DOM=ON \
160		-DENABLE_DFG_JIT=OFF \
161		-DUSE_GSTREAMER=OFF \
162		-DUSE_LIBHYPHEN=ON \
163		-DUSE_QT_MULTIMEDIA=ON \
164		-DUSE_SYSTEM_MALLOC=ON
165	make $jobArgs
166}
167
168INSTALL()
169{
170	cd build
171	make install
172
173	mkdir -p $dataDir/Qt5
174	mv -f $libDir/qml $dataDir/Qt5
175	mv -f $prefix/mkspecs $dataDir/Qt5
176
177	fixPkgconfig
178
179	prepareInstalledDevelLibs libQt5WebKit libQt5WebKitWidgets
180
181	cd $libDir
182	for i in lib*.so.5.*;do
183		ln -fs $i $(echo $i | cut -f1,2 -d.)
184	done
185
186	packageEntries devel \
187		$developDir \
188		$libDir/cmake \
189		$dataDir/Qt5/mkspecs
190}
191