Removed
Link Here
|
1 |
#-*- tab-width: 4; -*- |
2 |
# ex:ts=4 |
3 |
# |
4 |
# $FreeBSD$ |
5 |
# |
6 |
# Port variables: |
7 |
# USE_QT* - List of Qt modules to depend on, with optional '_build' |
8 |
# and '_run' suffixes. Define it empty to include this file |
9 |
# without depending on Qt ports. |
10 |
# QT_DIST - The port belongs to the Qt distribution. Set to 'yes' for |
11 |
# Qt 4, or to the distribution name(s) for newer versions. |
12 |
# QT_NONSTANDARD - Suppress modification of configure and make environment. |
13 |
# |
14 |
# Global switches (for inclusion into /etc/make.conf): |
15 |
# QT4_OPTIONS - A list of (Qt 4-only) global options; can be CUPS, NAS |
16 |
# and/or QGTKSTYLE. If set, Qt will be built with support |
17 |
# for: |
18 |
# * Common UNIX Printing System (CUPS); |
19 |
# * Network Audio System (NAS); |
20 |
# * GTK+-based Qt theme (QGTKSTYLE). |
21 |
|
22 |
.if !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include) |
23 |
|
24 |
Qt_Include_MAINTAINER= kde@FreeBSD.org |
25 |
Qt_Pre_Include= bsd.qt.mk |
26 |
|
27 |
# Qt versions currently supported by the framework. |
28 |
_QT_SUPPORTED?= 4 5 |
29 |
QT4_VERSION?= 4.8.7 |
30 |
QT5_VERSION?= 5.10.1 |
31 |
|
32 |
_QT_RELNAME= qt${_QT_VERSION:R:R} |
33 |
_QT_VERSION= # empty |
34 |
.for ver in ${_QT_SUPPORTED} |
35 |
. if defined(USE_QT${ver}) |
36 |
. if empty(_QT_VERSION) |
37 |
_QT_VERSION= ${QT${ver}_VERSION} |
38 |
. else |
39 |
# Reject different USE_QT*. |
40 |
IGNORE?= can't be installed: different Qt versions specified via USE_QT[${_QT_SUPPORTED:S/ //g}] #' |
41 |
. endif |
42 |
. endif |
43 |
.endfor |
44 |
|
45 |
.if empty(_QT_VERSION) |
46 |
# The file was included without USE_QT*. |
47 |
IGNORE?= can't be installed: bsd.qt.mk may only be included via USE_QT[${_QT_SUPPORTED:S/ //g}] #' |
48 |
.endif |
49 |
|
50 |
.if defined(QT_DIST) |
51 |
QT_NONSTANDARD= yes |
52 |
|
53 |
MASTER_SITES= ${MASTER_SITE_QT} |
54 |
DISTINFO_FILE?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/distinfo |
55 |
|
56 |
LICENSE?= LGPL21 |
57 |
|
58 |
. if !exists(${PKGDIR}/pkg-descr) |
59 |
DESCR?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/pkg-descr |
60 |
. endif |
61 |
|
62 |
# Stage support. |
63 |
DESTDIRNAME= INSTALL_ROOT |
64 |
|
65 |
. if ${_QT_VERSION:M4*} |
66 |
MASTER_SITE_SUBDIR?= official_releases/qt/${_QT_VERSION:R}/${_QT_VERSION}/ |
67 |
DISTNAME= qt-everywhere-opensource-src-${_QT_VERSION} |
68 |
DIST_SUBDIR= KDE |
69 |
. else |
70 |
MASTER_SITE_SUBDIR?= official_releases/qt/${_QT_VERSION:R}/${_QT_VERSION}/submodules/ |
71 |
# www/qt5-webengine hackery: The tarballs of 5.9.5 had a different naming scheme. |
72 |
. if ${QT5_VERSION} == "5.9.5" |
73 |
DISTNAME= ${QT_DIST:S,^,qt,:S,$,-opensource-src-${DISTVERSION},} |
74 |
. else |
75 |
DISTNAME= ${QT_DIST:S,^,qt,:S,$,-everywhere-src-${DISTVERSION},} |
76 |
. endif |
77 |
DISTFILES= ${DISTNAME:S,$,${EXTRACT_SUFX},} |
78 |
DIST_SUBDIR= KDE/Qt/${_QT_VERSION} |
79 |
|
80 |
USES+= tar:xz |
81 |
|
82 |
# Qt (at least when used with qmake) has a tendency to overlink: some libraries |
83 |
# have dependencies on others in the mkspec configurations and the latter are |
84 |
# always passed to the linker even if they are not actually used. By passing |
85 |
# --as-needed to the linker by default when building the Qt ports we do not |
86 |
# have to declare a lot of unnecessary dependencies in USE_QT5. |
87 |
# This could arguably work for Qt4 too, but since it is maintenance mode it is |
88 |
# better not to fix what is not explicitly broken there. |
89 |
LDFLAGS+= -Wl,--as-needed |
90 |
|
91 |
. if ${.TARGETS:Mmakesum} || ${.TARGETS:Mfetch} && \ |
92 |
defined(DISABLE_SIZE) && defined(NO_CHECKSUM) |
93 |
# Ensure that the "makesum" target (with its inner "fetch" one) uses |
94 |
# devel/qt*/distinfo for every port. |
95 |
. if ${DISTINFO_FILE:H} == ${.CURDIR:H:H}/devel/${_QT_RELNAME} |
96 |
QT_DIST= 3d activeqt androidextras base canvas3d charts connectivity \ |
97 |
datavis3d declarative doc gamepad graphicaleffects imageformats \ |
98 |
location macextras multimedia networkauth purchasing \ |
99 |
quickcontrols2 quickcontrols remoteobjects script scxml sensors \ |
100 |
serialbus serialport speech svg tools translations \ |
101 |
virtualkeyboard wayland webchannel websockets webview \ |
102 |
winextras x11extras xmlpatterns |
103 |
. endif |
104 |
. endif |
105 |
|
106 |
. if ${QT_DIST} == "base" && ${PORTNAME} != "qmake" |
107 |
# Qt configure requires pkg-config to detect dependencies. |
108 |
USES+= pkgconfig |
109 |
. endif |
110 |
|
111 |
# -nomake is only used by qtbase's configure script. |
112 |
# Other ports from other Qt modules will automatically build examples and |
113 |
# tests if the directories exist because of mkspecs/features/qt_parts.prf. |
114 |
EXTRACT_AFTER_ARGS?= ${DISTNAME:S,$,/examples,:S,^,--exclude ,} \ |
115 |
${DISTNAME:S,$,/tests,:S,^,--exclude ,} \ |
116 |
--no-same-owner --no-same-permissions |
117 |
. endif # ! ${_QT_VERSION:M4*} |
118 |
|
119 |
CONFIGURE_ENV+= MAKE="${MAKE:T}" |
120 |
|
121 |
CONFIGURE_ARGS+=-opensource -confirm-license \ |
122 |
-no-pch \ |
123 |
-prefix ${PREFIX} \ |
124 |
-bindir ${PREFIX}/${QT_BINDIR_REL} \ |
125 |
-headerdir ${PREFIX}/${QT_INCDIR_REL} \ |
126 |
-libdir ${PREFIX}/${QT_LIBDIR_REL} \ |
127 |
-plugindir ${PREFIX}/${QT_PLUGINDIR_REL} \ |
128 |
-importdir ${PREFIX}/${QT_IMPORTDIR_REL} \ |
129 |
-datadir ${PREFIX}/${QT_DATADIR_REL} \ |
130 |
-docdir ${PREFIX}/${QT_DOCDIR_REL} \ |
131 |
-translationdir ${PREFIX}/${QT_L10NDIR_REL} \ |
132 |
-sysconfdir ${PREFIX}/${QT_ETCDIR_REL} |
133 |
|
134 |
. if ${_QT_VERSION:M4*} |
135 |
CONFIGURE_ARGS+=-fast \ |
136 |
-platform ${QMAKESPEC} \ |
137 |
-system-libjpeg -system-libpng \ |
138 |
-system-libmng -system-libtiff -system-zlib \ |
139 |
-no-phonon-backend \ |
140 |
-examplesdir ${PREFIX}/${QT_EXAMPLEDIR_REL}/examples \ |
141 |
-demosdir ${PREFIX}/${QT_EXAMPLEDIR_REL}/demos |
142 |
. else |
143 |
CONFIGURE_ARGS+=-nomake examples -nomake tests \ |
144 |
-platform ${QMAKESPECNAME} \ |
145 |
-archdatadir ${PREFIX}/${QT_ARCHDIR_REL} \ |
146 |
-libexecdir ${PREFIX}/${QT_LIBEXECDIR_REL} \ |
147 |
-qmldir ${PREFIX}/${QT_QMLDIR_REL} \ |
148 |
-examplesdir ${PREFIX}/${QT_EXAMPLEDIR_REL} \ |
149 |
-testsdir ${PREFIX}/${QT_TESTDIR_REL} |
150 |
. if ${ARCH} == i386 && empty(MACHINE_CPU:Msse2) |
151 |
CONFIGURE_ARGS+=-no-sse2 |
152 |
. endif |
153 |
# Work around a bug in current binutils, where the gold linker creates |
154 |
# duplicate symbols. See pr 218187. Disable the gold-linker for Qt5 ports. |
155 |
CONFIGURE_ARGS+= -no-use-gold-linker |
156 |
# Pass -recheck-all so that multiple calls to the configure script really |
157 |
# re-run all checks. |
158 |
CONFIGURE_ARGS+= -recheck-all |
159 |
. endif |
160 |
|
161 |
. if defined(WANT_QT_DEBUG) || defined(WITH_DEBUG) |
162 |
WITH_DEBUG= yes |
163 |
STRIP= # It's done prior to bsd.qt.mk inclusion. |
164 |
CONFIGURE_ARGS+=-debug -separate-debug-info |
165 |
# Override configuration in global qconfig.pri. |
166 |
QMAKE_ARGS+= QT_CONFIG+="debug separate_debug_info" \ |
167 |
QT_CONFIG-="release" |
168 |
PLIST_SUB+= DEBUG="" |
169 |
. else |
170 |
CONFIGURE_ARGS+=-release -no-separate-debug-info |
171 |
QMAKE_ARGS+= QT_CONFIG+="release" \ |
172 |
QT_CONFIG-="debug separate_debug_info" |
173 |
PLIST_SUB+= DEBUG="@comment " |
174 |
. endif |
175 |
|
176 |
. if defined(WANT_QT_VERBOSE_CONFIGURE) |
177 |
CONFIGURE_ARGS+=-verbose |
178 |
. endif |
179 |
|
180 |
. if ${QT_DIST} == "base" || ${_QT_VERSION:M4*} |
181 |
. if ${_QT_VERSION:M4*} |
182 |
_EXTRA_PATCHES_QT4= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-src-corelib-global-qglobal.h \ |
183 |
${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-libtool \ |
184 |
${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-config.tests-unix-compile.test |
185 |
# Patch in proper name for armv6 architecture: https://gcc.gnu.org/ml/gcc-patches/2015-06/msg01679.html |
186 |
_EXTRA_PATCHES_QT4+= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-armv6 |
187 |
_EXTRA_PATCHES_QT4+= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-aarch64 |
188 |
. else |
189 |
_EXTRA_PATCHES_QT5= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_features_create__cmake.prf \ |
190 |
${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_features_qt__module.prf \ |
191 |
${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_common_bsd_bsd.conf |
192 |
. endif |
193 |
EXTRA_PATCHES?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-configure \ |
194 |
${_EXTRA_PATCHES_QT4} ${_EXTRA_PATCHES_QT5} |
195 |
. endif |
196 |
|
197 |
# Override settings installed in qconfig.h and *.pri files. The flags will be |
198 |
# installed along with the port, but have to be passed as arguments while |
199 |
# building the port itself. Flags prefixed with "-" (e.g., "-CUPS" and "-cups") |
200 |
# are needed to disable some features. |
201 |
. if !defined(${QT_MODNAME}) || empty(${QT_MODNAME}) |
202 |
# Used for both qconfig-*.h and qt_config_*.pri; it can't be empty. |
203 |
QT_MODNAME= ${PORTNAME} |
204 |
. endif |
205 |
QT_DEFINES?= # For qconfig.h flags (without "QT_" prefix). |
206 |
QT_CONFIG?= # For *.pri files QT_CONFIG flags. |
207 |
. if ${QT_DEFINES} |
208 |
QMAKE_ARGS+= DEFINES+="${QT_DEFINES:O:u:C/^([^-])/QT_\1/:C/^-/QT_NO_/:O}" |
209 |
. if ${QT_DEFINES:N-*} |
210 |
# Use a script to cleanup qconfig-modules.h (see qt-post-install). |
211 |
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall |
212 |
. endif |
213 |
. endif |
214 |
. if ${QT_CONFIG:N-*} |
215 |
QMAKE_ARGS+= QT_CONFIG+="${QT_CONFIG:N-*:O:u}" |
216 |
. endif |
217 |
. if ${QT_CONFIG:M-*} |
218 |
QMAKE_ARGS+= QT_CONFIG-="${QT_CONFIG:M-*:O:u:C/^-//}" |
219 |
. endif |
220 |
|
221 |
# Add a RUN_DEPENDS on misc/qtchooser to select the binaries. |
222 |
# The binaries of both supported Qt versions are installed to |
223 |
# ${LOCALBASE}/lib/qt[45]/bin. The port misc/qtchooser installs |
224 |
# wrapper binaries into ${LOCALBASE}/bin, and chooses the correct |
225 |
# one depending on the value of QT_SELECT (which we pass to both |
226 |
# CONFIGURE_ENV and MAKE_ENV). Therefore make all QT_DIST ports |
227 |
# RUN_DEPEND on it. |
228 |
RUN_DEPENDS+= qtchooser:misc/qtchooser |
229 |
|
230 |
PLIST_SUB+= SHORTVER=${DISTVERSION:R} \ |
231 |
FULLVER=${DISTVERSION:C/-.*//} |
232 |
.endif # defined(QT_DIST) |
233 |
|
234 |
# A wrapper (qtchooser) is used to invoke binaries. |
235 |
QT_BINDIR_REL?= ${QT_ARCHDIR_REL}/bin |
236 |
QT_INCDIR_REL?= include/${_QT_RELNAME} |
237 |
QT_LIBDIR_REL?= lib/${_QT_RELNAME} |
238 |
QT_ARCHDIR_REL?=${QT_LIBDIR_REL} |
239 |
QT_PLUGINDIR_REL?= ${QT_ARCHDIR_REL}/plugins |
240 |
QT_LIBEXECDIR_REL?= libexec/${_QT_RELNAME} |
241 |
QT_IMPORTDIR_REL?= ${QT_ARCHDIR_REL}/imports |
242 |
QT_QMLDIR_REL?= ${QT_ARCHDIR_REL}/qml |
243 |
QT_DATADIR_REL?=share/${_QT_RELNAME} |
244 |
QT_DOCDIR_REL?= share/doc/${_QT_RELNAME} |
245 |
QT_L10NDIR_REL?=${QT_DATADIR_REL}/translations |
246 |
QT_ETCDIR_REL?= etc/xdg |
247 |
QT_EXAMPLEDIR_REL?= share/examples/${_QT_RELNAME} |
248 |
QT_TESTDIR_REL?=${QT_DATADIR_REL}/tests |
249 |
QT_CMAKEDIR_REL?= lib/cmake |
250 |
QT_QTCHOOSERDIR_REL?= ${QT_ETCDIR_REL}/qtchooser |
251 |
|
252 |
# Not customizable. |
253 |
.if ${_QT_VERSION:M4*} |
254 |
QT_MKSPECDIR_REL= ${QT_DATADIR_REL}/mkspecs |
255 |
|
256 |
_QT_LIBVER= # empty |
257 |
.else |
258 |
QT_MKSPECDIR_REL= ${QT_ARCHDIR_REL}/mkspecs |
259 |
|
260 |
_QT_LIBVER= ${_QT_VERSION:R:R} |
261 |
.endif |
262 |
|
263 |
LRELEASE?= ${QT_BINDIR}/lrelease |
264 |
LUPDATE?= ${QT_BINDIR}/lupdate |
265 |
MOC?= ${QT_BINDIR}/moc |
266 |
RCC?= ${QT_BINDIR}/rcc |
267 |
UIC?= ${QT_BINDIR}/uic |
268 |
QMAKE?= ${QT_BINDIR}/qmake |
269 |
# Needed to redefine the qmake target for internal Qt configuration. |
270 |
_QMAKE?= ${QMAKE} |
271 |
QMAKESPECNAME?= freebsd-${QMAKE_COMPILER} |
272 |
QMAKESPEC?= ${QT_MKSPECDIR}/${QMAKESPECNAME} |
273 |
|
274 |
# The whole Qt distribution should be built with the same compiler, but it's |
275 |
# better to support custom settings. Dereferencing the detection allows to |
276 |
# avoid forking a shell on each inclusion of this file, and to catch any CXX |
277 |
# customization (via USE_GCC, etc.). |
278 |
QMAKE_COMPILER= $$(ccver="$$(${CXX} --version)"; case "$$ccver" in *clang*) echo clang ;; *) echo g++ ;; esac) |
279 |
|
280 |
# Import QMAKE_ENV and QMAKE_ARGS definitions. |
281 |
USES+= qmake:_env |
282 |
|
283 |
.for dir in BIN INC LIB ARCH PLUGIN LIBEXEC IMPORT \ |
284 |
QML DATA DOC L10N ETC EXAMPLE TEST MKSPEC \ |
285 |
CMAKE QTCHOOSER |
286 |
QT_${dir}DIR= ${PREFIX}/${QT_${dir}DIR_REL} |
287 |
# Export all directories to the plist substituion for QT_DIST ports. |
288 |
# For the others, exclude QT_CMAKEDIR and QT_ETCDIR. |
289 |
. if (${dir:NCMAKE} && ${dir:NETC}) || defined(QT_DIST) |
290 |
PLIST_SUB+= QT_${dir}DIR="${QT_${dir}DIR_REL}" |
291 |
. endif |
292 |
.endfor |
293 |
|
294 |
# Pass the chosen Qt version to the environment for qtchooser. |
295 |
CONFIGURE_ENV+= QT_SELECT=${_QT_RELNAME} |
296 |
MAKE_ENV+= QT_SELECT=${_QT_RELNAME} |
297 |
|
298 |
# Make sure both the installed mkspecs as well as the ones being built are |
299 |
# found, with the ones from the port being built having preference. |
300 |
CONFIGURE_ENV+= QMAKEMODULES="${WRKSRC}/mkspecs/modules:${LOCALBASE}/${QT_MKSPECDIR_REL}/modules" |
301 |
MAKE_ENV+= QMAKEMODULES="${WRKSRC}/mkspecs/modules:${LOCALBASE}/${QT_MKSPECDIR_REL}/modules" |
302 |
|
303 |
.endif # !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include) |
304 |
|
305 |
.if defined(_POSTMKINCLUDED) && !defined(Qt_Post_Include) |
306 |
|
307 |
Qt_Post_Include= bsd.qt.mk |
308 |
|
309 |
.if !defined(QT_NONSTANDARD) |
310 |
CONFIGURE_ENV+= QTDIR="${QT_ARCHDIR}" QMAKE="${QMAKE}" \ |
311 |
MOC="${MOC}" RCC="${RCC}" UIC="${UIC}" \ |
312 |
QMAKESPEC="${QMAKESPEC}" |
313 |
CONFIGURE_ARGS+=--with-qt-includes=${QT_INCDIR} \ |
314 |
--with-qt-libraries=${QT_LIBDIR} \ |
315 |
--with-extra-includes=${LOCALBASE}/include \ |
316 |
--with-extra-libs=${LOCALBASE}/lib |
317 |
.endif # !defined(QT_NONSTANDARD) |
318 |
|
319 |
_USE_QT_ALL= assistant dbus declarative designer doc gui help \ |
320 |
imageformats l10n linguist linguisttools multimedia \ |
321 |
network opengl pixeltool qdbusviewer qmake script \ |
322 |
scripttools sql sql-mysql sql-odbc sql-pgsql \ |
323 |
sql-sqlite2 sql-sqlite3 svg testlib webkit \ |
324 |
xml xmlpatterns |
325 |
.if ${ARCH} == amd64 || ${ARCH} == i386 |
326 |
_USE_QT_ALL+= sql-ibase |
327 |
.endif |
328 |
|
329 |
_USE_QT4_ONLY= accessible assistant-adp assistantclient clucene codecs-cn codecs-jp \ |
330 |
codecs-kr codecs-tw corelib demo graphicssystems-opengl \ |
331 |
help-tools iconengines inputmethods makeqpf moc phonon \ |
332 |
phonon-gst porting qdoc3 qmlviewer qt3support qtconfig \ |
333 |
qtestlib qvfb rcc uic uic3 xmlpatterns-tool |
334 |
|
335 |
_USE_QT5_ONLY= 3d buildtools canvas3d charts concurrent connectivity \ |
336 |
core datavis3d diag examples gamepad \ |
337 |
graphicaleffects location paths phonon4 plugininfo printsupport \ |
338 |
qdbus qdoc qdoc-data qev qml quick quickcontrols \ |
339 |
quickcontrols2 scxml sensors serialbus serialport speech \ |
340 |
sql-tds uiplugin uitools virtualkeyboard wayland webchannel \ |
341 |
webengine websockets websockets-qml widgets x11extras |
342 |
|
343 |
3d_PORT= graphics/${_QT_RELNAME}-3d |
344 |
3d_LIB= libQt${_QT_LIBVER}3DCore.so |
345 |
|
346 |
accessible_PORT= accessibility/${_QT_RELNAME}-accessible |
347 |
accessible_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/accessible/libqtaccessiblewidgets.so |
348 |
|
349 |
assistant_PORT= devel/${_QT_RELNAME}-assistant |
350 |
assistant_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/assistant |
351 |
|
352 |
assistant-adp_PORT= devel/${_QT_RELNAME}-assistant-adp |
353 |
assistant-adp_PATH= assistant_adp |
354 |
|
355 |
assistantclient_PORT= devel/${_QT_RELNAME}-libqtassistantclient |
356 |
assistantclient_LIB= libQt${_QT_LIBVER}AssistantClient.so |
357 |
|
358 |
buildtools_PORT= devel/${_QT_RELNAME}-buildtools |
359 |
buildtools_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/moc |
360 |
|
361 |
canvas3d_PORT= x11-toolkits/${_QT_RELNAME}-canvas3d |
362 |
canvas3d_PATH= ${LOCALBASE}/${QT_QMLDIR_REL}/QtCanvas3D/qmldir |
363 |
|
364 |
charts_PORT= x11-toolkits/${_QT_RELNAME}-charts |
365 |
charts_LIB= libQt${_QT_LIBVER}Charts.so |
366 |
|
367 |
clucene_PORT= textproc/${_QT_RELNAME}-clucene |
368 |
clucene_LIB= libQt${_QT_LIBVER}CLucene.so |
369 |
|
370 |
codecs-cn_PORT= chinese/${_QT_RELNAME}-codecs-cn |
371 |
codecs-cn_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/codecs/libqcncodecs.so |
372 |
|
373 |
codecs-jp_PORT= japanese/${_QT_RELNAME}-codecs-jp |
374 |
codecs-jp_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/codecs/libqjpcodecs.so |
375 |
|
376 |
codecs-kr_PORT= korean/${_QT_RELNAME}-codecs-kr |
377 |
codecs-kr_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/codecs/libqkrcodecs.so |
378 |
|
379 |
codecs-tw_PORT= chinese/${_QT_RELNAME}-codecs-tw |
380 |
codecs-tw_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/codecs/libqtwcodecs.so |
381 |
|
382 |
concurrent_PORT= devel/${_QT_RELNAME}-concurrent |
383 |
concurrent_LIB= libQt${_QT_LIBVER}Concurrent.so |
384 |
|
385 |
connectivity_PORT= comms/${_QT_RELNAME}-connectivity |
386 |
connectivity_LIB= libQt${_QT_LIBVER}Bluetooth.so |
387 |
|
388 |
core_PORT= devel/${_QT_RELNAME}-core |
389 |
core_LIB= libQt${_QT_LIBVER}Core.so |
390 |
|
391 |
corelib_PORT= devel/${_QT_RELNAME}-corelib |
392 |
corelib_LIB= ${core_LIB} |
393 |
|
394 |
datavis3d_PORT= x11-toolkits/${_QT_RELNAME}-datavis3d |
395 |
datavis3d_LIB= libQt${_QT_LIBVER}DataVisualization.so |
396 |
|
397 |
dbus_PORT= devel/${_QT_RELNAME}-dbus |
398 |
dbus_LIB= libQt${_QT_LIBVER}DBus.so |
399 |
|
400 |
declarative_PORT= x11-toolkits/${_QT_RELNAME}-declarative |
401 |
declarative_LIB= libQt${_QT_LIBVER}Declarative.so |
402 |
|
403 |
demo_PORT= misc/${_QT_RELNAME}-qtdemo |
404 |
demo_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qtdemo |
405 |
|
406 |
designer_PORT= devel/${_QT_RELNAME}-designer |
407 |
designer_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/designer |
408 |
|
409 |
diag_PORT= sysutils/${_QT_RELNAME}-qtdiag |
410 |
diag_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qtdiag |
411 |
|
412 |
doc_PORT= misc/${_QT_RELNAME}-doc |
413 |
doc_PATH= ${_QT_RELNAME}-doc>=${_QT_VERSION:R:R} |
414 |
|
415 |
examples_PORT= misc/${_QT_RELNAME}-examples |
416 |
examples_PATH= ${_QT_RELNAME}-examples>=${_QT_VERSION:R:R} |
417 |
|
418 |
gamepad_PORT= x11-toolkits/${_QT_RELNAME}-gamepad |
419 |
gamepad_LIB= libQt${_QT_LIBVER}Gamepad.so |
420 |
|
421 |
graphicaleffects_PORT= graphics/${_QT_RELNAME}-graphicaleffects |
422 |
graphicaleffects_PATH= ${LOCALBASE}/${QT_QMLDIR_REL}/QtGraphicalEffects/qmldir |
423 |
|
424 |
graphicssystems-opengl_PORT= x11/${_QT_RELNAME}-graphicssystems-opengl |
425 |
graphicssystems-opengl_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/graphicssystems/libqglgraphicssystem.so |
426 |
|
427 |
gui_PORT= x11-toolkits/${_QT_RELNAME}-gui |
428 |
gui_LIB= libQt${_QT_LIBVER}Gui.so |
429 |
|
430 |
help_PORT= devel/${_QT_RELNAME}-help |
431 |
help_LIB= libQt${_QT_LIBVER}Help.so |
432 |
|
433 |
help-tools_PORT= devel/${_QT_RELNAME}-help-tools |
434 |
help-tools_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qhelpgenerator |
435 |
|
436 |
iconengines_PORT= graphics/${_QT_RELNAME}-iconengines |
437 |
iconengines_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/iconengines/libqsvgicon.so |
438 |
|
439 |
imageformats_PORT= graphics/${_QT_RELNAME}-imageformats |
440 |
imageformats_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/imageformats/libqtiff.so |
441 |
|
442 |
inputmethods_PORT= x11/${_QT_RELNAME}-inputmethods |
443 |
inputmethods_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/inputmethods/libqimsw-multi.so |
444 |
|
445 |
linguist_PORT= devel/${_QT_RELNAME}-linguist |
446 |
linguist_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/linguist |
447 |
|
448 |
linguisttools_PORT= devel/${_QT_RELNAME}-linguisttools |
449 |
linguisttools_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/lrelease |
450 |
|
451 |
location_PORT= devel/${_QT_RELNAME}-location |
452 |
location_LIB= libQt${_QT_LIBVER}Location.so |
453 |
|
454 |
l10n_PORT= misc/${_QT_RELNAME}-l10n |
455 |
l10n_PATH= ${_QT_RELNAME}-l10n>=${_QT_VERSION:R:R} |
456 |
|
457 |
makeqpf_PORT= devel/${_QT_RELNAME}-makeqpf |
458 |
makeqpf_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/makeqpf |
459 |
|
460 |
moc_PORT= devel/${_QT_RELNAME}-moc |
461 |
moc_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/moc |
462 |
|
463 |
multimedia_PORT= multimedia/${_QT_RELNAME}-multimedia |
464 |
multimedia_LIB= libQt${_QT_LIBVER}Multimedia.so |
465 |
|
466 |
network_PORT= net/${_QT_RELNAME}-network |
467 |
network_LIB= libQt${_QT_LIBVER}Network.so |
468 |
|
469 |
opengl_PORT= graphics/${_QT_RELNAME}-opengl |
470 |
opengl_LIB= libQt${_QT_LIBVER}OpenGL.so |
471 |
|
472 |
paths_PORT= sysutils/${_QT_RELNAME}-qtpaths |
473 |
paths_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qtpaths |
474 |
|
475 |
pixeltool_PORT= graphics/${_QT_RELNAME}-pixeltool |
476 |
pixeltool_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/pixeltool |
477 |
|
478 |
phonon_PORT= multimedia/phonon@${_QT_RELNAME} |
479 |
phonon_LIB= libphonon.so |
480 |
|
481 |
phonon4_PORT= multimedia/phonon@${_QT_RELNAME} |
482 |
phonon4_LIB= libphonon4${_QT_RELNAME}.so |
483 |
|
484 |
phonon-gst_PORT= multimedia/phonon-gstreamer@${_QT_RELNAME} |
485 |
phonon-gst_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/phonon_backend/libphonon_gstreamer.so |
486 |
|
487 |
plugininfo_PORT= sysutils/${_QT_RELNAME}-qtplugininfo |
488 |
plugininfo_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qtplugininfo |
489 |
|
490 |
porting_PORT= devel/${_QT_RELNAME}-porting |
491 |
porting_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qt3to4 |
492 |
|
493 |
printsupport_PORT= print/${_QT_RELNAME}-printsupport |
494 |
printsupport_LIB= libQt${_QT_LIBVER}PrintSupport.so |
495 |
|
496 |
qdbus_PORT= devel/${_QT_RELNAME}-qdbus |
497 |
qdbus_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qdbus |
498 |
|
499 |
qdbusviewer_PORT= devel/${_QT_RELNAME}-qdbusviewer |
500 |
qdbusviewer_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qdbusviewer |
501 |
|
502 |
qdoc_PORT= devel/${_QT_RELNAME}-qdoc |
503 |
qdoc_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qdoc |
504 |
|
505 |
qdoc-data_PORT= devel/${_QT_RELNAME}-qdoc-data |
506 |
qdoc-data_PATH= ${LOCALBASE}/${QT_DOCDIR_REL}/global/config.qdocconf |
507 |
|
508 |
qdoc3_PORT= devel/${_QT_RELNAME}-qdoc3 |
509 |
qdoc3_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qdoc3 |
510 |
|
511 |
qev_PORT= x11/${_QT_RELNAME}-qev |
512 |
qev_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qev |
513 |
|
514 |
qmake_PORT= devel/${_QT_RELNAME}-qmake |
515 |
qmake_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qmake |
516 |
|
517 |
qml_PORT= lang/${_QT_RELNAME}-qml |
518 |
qml_LIB= libQt${_QT_LIBVER}Qml.so |
519 |
|
520 |
qmlviewer_PORT= devel/${_QT_RELNAME}-qmlviewer |
521 |
qmlviewer_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qmlviewer |
522 |
|
523 |
qt3support_PORT= devel/${_QT_RELNAME}-qt3support |
524 |
qt3support_LIB= libQt${_QT_LIBVER}3Support.so |
525 |
|
526 |
qtconfig_PORT= misc/${_QT_RELNAME}-qtconfig |
527 |
qtconfig_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qtconfig |
528 |
|
529 |
qtestlib_PORT= ${testlib_PORT} |
530 |
qtestlib_LIB= ${testlib_LIB} |
531 |
|
532 |
quick_PORT= x11-toolkits/${_QT_RELNAME}-quick |
533 |
quick_LIB= libQt${_QT_LIBVER}Quick.so |
534 |
|
535 |
quickcontrols_PORT= x11-toolkits/${_QT_RELNAME}-quickcontrols |
536 |
quickcontrols_PATH= ${LOCALBASE}/${QT_QMLDIR_REL}/QtQuick/Controls/qmldir |
537 |
|
538 |
quickcontrols2_PORT= x11-toolkits/${_QT_RELNAME}-quickcontrols2 |
539 |
quickcontrols2_LIB= libQt${_QT_LIBVER}QuickControls2.so |
540 |
|
541 |
qvfb_PORT= devel/${_QT_RELNAME}-qvfb |
542 |
qvfb_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/qvfb |
543 |
|
544 |
rcc_PORT= devel/${_QT_RELNAME}-rcc |
545 |
rcc_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/rcc |
546 |
|
547 |
sensors_PORT= comms/${_QT_RELNAME}-sensors |
548 |
sensors_LIB= libQt${_QT_LIBVER}Sensors.so |
549 |
|
550 |
script_PORT= devel/${_QT_RELNAME}-script |
551 |
script_LIB= libQt${_QT_LIBVER}Script.so |
552 |
|
553 |
scripttools_PORT= devel/${_QT_RELNAME}-scripttools |
554 |
scripttools_LIB= libQt${_QT_LIBVER}ScriptTools.so |
555 |
|
556 |
scxml_PORT= devel/${_QT_RELNAME}-scxml |
557 |
scxml_LIB= libQt${_QT_LIBVER}Scxml.so |
558 |
|
559 |
serialbus_PORT= comms/${_QT_RELNAME}-serialbus |
560 |
serialbus_LIB= libQt${_QT_LIBVER}SerialBus.so |
561 |
|
562 |
serialport_PORT= comms/${_QT_RELNAME}-serialport |
563 |
serialport_LIB= libQt${_QT_LIBVER}SerialPort.so |
564 |
|
565 |
speech_PORT= accessibility/${_QT_RELNAME}-speech |
566 |
speech_LIB= libQt${_QT_LIBVER}TextToSpeech.so |
567 |
|
568 |
sql_PORT= databases/${_QT_RELNAME}-sql |
569 |
sql_LIB= libQt${_QT_LIBVER}Sql.so |
570 |
|
571 |
sql-pgsql_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/sqldrivers/libqsqlpsql.so |
572 |
|
573 |
. if ${_QT_VERSION:M4*} |
574 |
sql-sqlite2_PORT= databases/${_QT_RELNAME}-sqlite-plugin |
575 |
. endif |
576 |
|
577 |
sql-sqlite3_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/sqldrivers/libqsqlite.so |
578 |
|
579 |
. for db in ibase mysql odbc pgsql sqlite2 sqlite3 tds |
580 |
. if ${_QT_VERSION:M4*} |
581 |
sql-${db}_PORT?= databases/${_QT_RELNAME}-${db}-plugin |
582 |
. else |
583 |
sql-${db}_PORT?= databases/${_QT_RELNAME}-sqldrivers-${db} |
584 |
. endif |
585 |
sql-${db}_PATH?= ${LOCALBASE}/${QT_PLUGINDIR_REL}/sqldrivers/libqsql${db:C/^sql//}.so |
586 |
. endfor |
587 |
|
588 |
svg_PORT= graphics/${_QT_RELNAME}-svg |
589 |
svg_LIB= libQt${_QT_LIBVER}Svg.so |
590 |
|
591 |
testlib_PORT= devel/${_QT_RELNAME}-testlib |
592 |
testlib_LIB= libQt${_QT_LIBVER}Test.so |
593 |
|
594 |
uic_PORT= devel/${_QT_RELNAME}-uic |
595 |
uic_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/uic |
596 |
|
597 |
uic3_PORT= devel/${_QT_RELNAME}-uic3 |
598 |
uic3_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/uic3 |
599 |
|
600 |
uiplugin_PORT= x11-toolkits/${_QT_RELNAME}-uiplugin |
601 |
uiplugin_PATH= ${LOCALBASE}/${QT_INCDIR_REL}/QtUiPlugin/QtUiPlugin |
602 |
|
603 |
uitools_PORT= devel/${_QT_RELNAME}-uitools |
604 |
uitools_PATH= ${LOCALBASE}/${QT_LIBDIR_REL}/libQt${_QT_LIBVER}UiTools.a |
605 |
|
606 |
virtualkeyboard_PORT= x11-toolkits/${_QT_RELNAME}-virtualkeyboard |
607 |
virtualkeyboard_PATH= ${LOCALBASE}/${QT_PLUGINDIR_REL}/platforminputcontexts/libqtvirtualkeyboardplugin.so |
608 |
|
609 |
webchannel_PORT= www/${_QT_RELNAME}-webchannel |
610 |
webchannel_LIB= libQt${_QT_LIBVER}WebChannel.so |
611 |
|
612 |
webengine_PORT= www/${_QT_RELNAME}-webengine |
613 |
webengine_LIB= libQt${_QT_LIBVER}WebEngine.so |
614 |
|
615 |
websockets_PORT= www/${_QT_RELNAME}-websockets |
616 |
websockets_LIB= libQt${_QT_LIBVER}WebSockets.so |
617 |
|
618 |
websockets-qml_PORT= www/${_QT_RELNAME}-websockets-qml |
619 |
websockets-qml_PATH= ${LOCALBASE}/${QT_QMLDIR_REL}/QtWebSockets/qmldir |
620 |
|
621 |
webkit_PORT= www/${_QT_RELNAME}-webkit |
622 |
webkit_LIB= libQt${_QT_LIBVER}WebKit.so |
623 |
|
624 |
widgets_PORT= x11-toolkits/${_QT_RELNAME}-widgets |
625 |
widgets_LIB= libQt${_QT_LIBVER}Widgets.so |
626 |
|
627 |
x11extras_PORT= x11/${_QT_RELNAME}-x11extras |
628 |
x11extras_LIB= libQt${_QT_LIBVER}X11Extras.so |
629 |
|
630 |
xml_PORT= textproc/${_QT_RELNAME}-xml |
631 |
xml_LIB= libQt${_QT_LIBVER}Xml.so |
632 |
|
633 |
xmlpatterns_PORT= textproc/${_QT_RELNAME}-xmlpatterns |
634 |
xmlpatterns_LIB= libQt${_QT_LIBVER}XmlPatterns.so |
635 |
|
636 |
xmlpatterns-tool_PORT= textproc/${_QT_RELNAME}-xmlpatterns-tool |
637 |
xmlpatterns-tool_PATH= ${LOCALBASE}/${QT_BINDIR_REL}/xmlpatterns |
638 |
|
639 |
_USE_QT= ${USE_QT${_QT_VERSION:R:R}} |
640 |
_USE_QT_ALL+= ${_USE_QT${_QT_VERSION:R:R}_ONLY} |
641 |
# Iterate through components deprived of suffix. |
642 |
. for component in ${_USE_QT:O:u:C/_.+//} |
643 |
# Check that the component is valid. |
644 |
. if ${_USE_QT_ALL:M${component}} != "" |
645 |
# Skip meta-components (currently none). |
646 |
. if defined(${component}_PORT) && (defined(${component}_PATH) || defined(${component}_LIB)) |
647 |
# Check if a dependency type is explicitly requested. |
648 |
. if ${_USE_QT:M${component}_*} != "" && ${_USE_QT:M${component}} == "" |
649 |
${component}_TYPE= # empty |
650 |
. if ${_USE_QT:M${component}_build} != "" |
651 |
${component}_TYPE+= build |
652 |
. endif |
653 |
. if ${_USE_QT:M${component}_run} != "" |
654 |
${component}_TYPE+= run |
655 |
. endif |
656 |
. endif # ${_USE_QT:M${component}_*} != "" && ${_USE_QT:M${component}} == "" |
657 |
# If no dependency type is set, default to full dependency. |
658 |
. if !defined(${component}_TYPE) |
659 |
${component}_TYPE= build run |
660 |
. endif |
661 |
# Set real dependencies. |
662 |
. if defined(${component}_LIB) && ${${component}_TYPE:Mbuild} && ${${component}_TYPE:Mrun} |
663 |
LIB_DEPENDS+= ${${component}_LIB}:${${component}_PORT} |
664 |
. else |
665 |
${component}_PATH?= ${QT_LIBDIR}/${${component}_LIB} |
666 |
${component}_DEPENDS= ${${component}_PATH}:${${component}_PORT} |
667 |
. if ${${component}_TYPE:Mbuild} != "" |
668 |
BUILD_DEPENDS+= ${${component}_DEPENDS} |
669 |
. endif |
670 |
. if ${${component}_TYPE:Mrun} != "" |
671 |
RUN_DEPENDS+= ${${component}_DEPENDS} |
672 |
. endif |
673 |
. endif # ${${component}_LIB} && ${${component}_TYPE:Mbuild} && ${${component}_TYPE:Mrun} |
674 |
. endif # defined(${component}_PORT) && defined(${component}_PATH) |
675 |
. else # ! ${_USE_QT_ALL:M${component}} != "" |
676 |
IGNORE= cannot be installed: unknown USE_QT component '${component}' |
677 |
. endif # ${_USE_QT_ALL:M${component}} != "" |
678 |
. endfor |
679 |
|
680 |
.if defined(QT_DIST) && ! ${_QT_VERSION:M4*} |
681 |
. if ${QT_DIST} == "base" |
682 |
# qtbase requires some tools to be symlinked to the build directory. |
683 |
_QT_TOOLS= # empty |
684 |
. if ${PORTNAME} != "qmake" |
685 |
_QT_TOOLS+= ${QMAKE} |
686 |
. endif |
687 |
. if ${PORTNAME} != "buildtools" |
688 |
_QT_TOOLS+= ${MOC} ${RCC} |
689 |
. endif |
690 |
. if ${PORTNAME} != "qdoc" |
691 |
_QT_TOOLS+= qdoc |
692 |
. endif |
693 |
. if ${PORTNAME} != "dbus" |
694 |
_QT_TOOLS+= qdbuscpp2xml qdbusxml2cpp |
695 |
. endif |
696 |
. if ${PORTNAME} != "widgets" |
697 |
_QT_TOOLS+= ${UIC} |
698 |
. endif |
699 |
|
700 |
# The list of QtBase components that need to be linked into WRKSRC/lib for |
701 |
# other QtBase ports. See below. |
702 |
_QT5_BASE= core dbus gui network sql widgets |
703 |
|
704 |
pre-configure: qtbase-pre-configure |
705 |
qtbase-pre-configure: |
706 |
. for tool in ${_QT_TOOLS} |
707 |
@${TEST} -e ${QT_BINDIR}/${tool:T} && \ |
708 |
${LN} -sf ${QT_BINDIR}/${tool:T} ${CONFIGURE_WRKSRC}/bin/${tool:T} || \ |
709 |
${TRUE} |
710 |
. endfor |
711 |
|
712 |
# The following is a fix for the inplace upgrade problem we faced (see |
713 |
# QTBUG-40825 and ports bugs 194088, 195105 and 198720) previously, |
714 |
# which previously was adressed by making sure, that ${LOCALBASE}/lib, which |
715 |
# would often gets added by pkgconf for the dependencies, was passed after |
716 |
# ${WRKSRC}/lib. |
717 |
# * We fix the inplace upgrade problem by moving the Qt5 libraries into |
718 |
# ${LOCALBASE}/lib/qt5. Therefore a -L${LOCALBASE}/lib does no harm anymore. |
719 |
# * However, this means, that the ports belonging to the split up QtBase package |
720 |
# now no longer can find their depending QtBase libraries. We fix this by |
721 |
# linking these into ${CONFIGURE_WRKSRC}/lib if the given QtBase port depends |
722 |
# on them. |
723 |
. if ${QT_DIST:Mbase} |
724 |
. for basedep in ${_QT5_BASE} |
725 |
. if ${USE_QT5:M${basedep}} |
726 |
${LN} -sf ${QT_LIBDIR}/${${basedep}_LIB} ${CONFIGURE_WRKSRC}/lib |
727 |
. endif |
728 |
. endfor |
729 |
. endif |
730 |
|
731 |
# |
732 |
# **** THIS PART IS OBSOLETE FOR THE NEXT QT UPGRADE **** |
733 |
# |
734 |
# Add ${LOCALBASE}/lib to DEFAULT_LIBDIRS, which we use to filter out |
735 |
# certain paths from pkg-config calls (see the explanation in |
736 |
# devel/qt5/files/patch-configure) as well as for setting |
737 |
# QMAKE_DEFAULT_LIBDIR in mkspecs/qconfig.pri. Part of the solution for |
738 |
# ports/194088. |
739 |
post-patch: qtbase-post-patch |
740 |
qtbase-post-patch: |
741 |
${REINPLACE_CMD} -e "/DEFAULT_LIBDIRS=/ s,\\\\\"\\\\n,\\\\n${LOCALBASE}/lib&," \ |
742 |
${WRKSRC}/configure |
743 |
|
744 |
. if ${PORTNAME} != "qmake" |
745 |
_QMAKE= ${CONFIGURE_WRKSRC}/bin/qmake |
746 |
. endif |
747 |
. endif # ${QT_DIST} == "base" |
748 |
|
749 |
pre-configure: qt5-pre-configure |
750 |
qt5-pre-configure: |
751 |
# Qt 5.3.2 introduced a check in mkspecs/features/create_cmake.prf that |
752 |
# requires tests/auto/cmake to be present, otherwise the configure stage will |
753 |
# fail. |
754 |
# Since we cannot extract tests/auto/cmake/ and exclude tests/ at the same |
755 |
# time, we have to disable the check in a cache file (the only way to get this |
756 |
# value through to the configure script in qtbase). |
757 |
${MKDIR} ${CONFIGURE_WRKSRC} |
758 |
${ECHO_CMD} 'CMAKE_MODULE_TESTS = -' > ${CONFIGURE_WRKSRC}/.qmake.cache |
759 |
# |
760 |
# **** THIS PART IS OBSOLETE FOR THE NEXT QT UPGRADE **** |
761 |
# |
762 |
# We piggyback on QMAKE_LIBDIR_FLAGS to make sure -L${WRKSRC}/lib is passed to |
763 |
# the linker before -L/usr/local/lib. By default, the opposite happens, which |
764 |
# is a problem when a Qt port is being upgraded, since an existing library |
765 |
# would end up being picked up instead of those built in ${WRKSRC}/lib. Since |
766 |
# qmake appends the value of QMAKE_LIBDIR to QMAKE_LIBDIR_FLAGS, we can use the |
767 |
# latter to get the linker path order right. qmake is smart enough to strip |
768 |
# occurrences of ${WRKSRC}/lib from .pc and .prl files when installing them. |
769 |
# See QTBUG-40825 and ports bugs 194088, 195105 and 198720. |
770 |
${ECHO_CMD} 'QMAKE_LIBDIR_FLAGS = -L${CONFIGURE_WRKSRC}/lib' >> ${CONFIGURE_WRKSRC}/.qmake.cache |
771 |
|
772 |
post-install: qt-post-install |
773 |
qt-post-install: |
774 |
. if ${QT_DEFINES:N-*} |
775 |
# We can't use SUB_FILES with a shared pkg-deinstall.in. |
776 |
# We need it to be a script instead of a group of @unexecs, otherwise |
777 |
# qconfig-modules.h cleanup will be run in pre-deinstall stage, which is |
778 |
# useless. This will probably be replaced by a Keywords/ script in the future. |
779 |
@${SED} -e 's,%%QT_MODNAME%%,${QT_MODNAME},g' \ |
780 |
-e 's,%%QT_INCDIR%%,${QT_INCDIR},g' \ |
781 |
${.CURDIR:H:H}/devel/${_QT_RELNAME}/${FILESDIR:T}/${PKGDEINSTALL:T}.in > \ |
782 |
${PKGDEINSTALL} |
783 |
@${MKDIR} ${STAGEDIR}${QT_INCDIR}/QtCore/modules |
784 |
@${ECHO_CMD} -n \ |
785 |
> ${STAGEDIR}${QT_INCDIR}/QtCore/modules/qconfig-${QT_MODNAME}.h |
786 |
. for def in ${QT_DEFINES:N-*:O:u:C/=.*$//} |
787 |
@${ECHO_CMD} "#if !defined(QT_${def}) && !defined(QT_NO_${def})" \ |
788 |
>> ${STAGEDIR}${QT_INCDIR}/QtCore/modules/qconfig-${QT_MODNAME}.h |
789 |
${ECHO_CMD} "# define QT_${def}" \ |
790 |
>> ${STAGEDIR}${QT_INCDIR}/QtCore/modules/qconfig-${QT_MODNAME}.h |
791 |
@${ECHO_CMD} "#endif" \ |
792 |
>> ${STAGEDIR}${QT_INCDIR}/QtCore/modules/qconfig-${QT_MODNAME}.h |
793 |
@${ECHO_CMD} \ |
794 |
>> ${STAGEDIR}${QT_INCDIR}/QtCore/modules/qconfig-${QT_MODNAME}.h |
795 |
. endfor |
796 |
@${ECHO_CMD} "${PREFIX}/${QT_INCDIR_REL}/QtCore/modules/qconfig-${QT_MODNAME}.h" \ |
797 |
>> ${TMPPLIST} |
798 |
@${ECHO_CMD} "@exec echo '#include <QtCore/modules/qconfig-${QT_MODNAME}.h>' >> ${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig-modules.h" \ |
799 |
>> ${TMPPLIST} |
800 |
. endif # ${QT_DEFINES:N-*} |
801 |
. if ${QT_CONFIG:N-*} |
802 |
@${MKDIR} ${STAGEDIR}${QT_MKSPECDIR}/modules |
803 |
${ECHO_CMD} "QT_CONFIG += ${QT_CONFIG:N-*:O:u}" \ |
804 |
> ${STAGEDIR}${QT_MKSPECDIR}/modules/qt_config_${QT_MODNAME}.pri |
805 |
@${ECHO_CMD} "${PREFIX}/${QT_MKSPECDIR_REL}/modules/qt_config_${QT_MODNAME}.pri" \ |
806 |
>> ${TMPPLIST} |
807 |
. endif # ${QT_CONFIG:N-*} |
808 |
.endif # defined(QT_DIST) && ! ${_QT_VERSION:M4*} |
809 |
|
810 |
.endif # defined(_POSTMKINCLUDED) && !defined(Qt_Post_Include) |