/
Portfile
1912 lines (1698 loc) · 65.5 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name qt511
categories aqua
platforms macosx
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
# for OpenSSLException, see source and header files in src/network/ssl of qtbase
license {LGPL-3 GPL-3 OpenSSLException}
homepage https://www.qt.io
version 5.11.3
set middle_name everywhere
if { ${subport} eq "${name}-qtwebkit" ||
${subport} eq "${name}-qtwebkit-examples" ||
${subport} eq "${name}-qtwebkit-docs" } {
version 5.9.1
set middle_name opensource
}
# https://trac.macports.org/ticket/63154
if { ${xcodeversion} ne "none" } {
use_xcode yes
}
set just_want_qt5_variables yes
PortGroup qt5 1.0
unset just_want_qt5_variables
# get Qt's version numbers
set branch [join [lrange [split ${version} .] 0 1] .]
set qt_major [lindex [split ${version} .] 0]
# see https://wiki.qt.io/New_Features_in_Qt_5.7
compiler.cxx_standard 2011
master_sites \
https://download.qt.io/official_releases/qt/${branch}/${version}/submodules
# see https://trac.macports.org/ticket/53952
dist_subdir qt5
# file sizes are significantly smaller using xz
if { ${subport} ne ${name} && ${subport} ne "${name}-docs" } {
use_xz yes
}
conflicts qt3 qt3-mac
# conflict with all other version of qt5
foreach {qt_test_name qt_test_info} [array get available_qt_versions] {
if {${name} ne ${qt_test_name}} {
conflicts-append [lindex ${qt_test_info} 0]
}
}
# qt511-qtbase replaces qt5-qtbase, so can not conflict
if { ${os.major} == 15 } {
conflicts-delete qt5-qtbase
}
############################################################################### Modules Not Considered
#
# No qtactiveqt (Windows Only)
# No qtandroidextras (Android Only)
# No qtwayland (Linux Only)
# No qtx11extras (X11 Only)
# No qtwinextras (Windows Only)
#
###############################################################################
############################################################################### Finding Dependencies
#
# grep -r "%dependencies" *
# find ./ -name sync.profile
#
# grep -r qtCompileTest *
#
# find ./ -name config.tests
#
# find ./ -name Find\*.cmake
#
# grep -r qtHaveModule *
#
# grep -r packagesExist *
#
# port provides `find ./ -name \*.dylib -exec otool -L {} \; | grep /opt/local/libexec/qt5 | cut -d ' ' -f1` | cut -d : -f2 | sort -u
# port provides `find ./ -name \*.dylib -exec otool -L {} \; | grep /opt/local/lib/ | cut -d ' ' -f1` | cut -d : -f2 | sort -u
#
# https://code.qt.io/cgit/qt/qt5.git/tree/.gitmodules?h=5.11
#
###############################################################################
############################################################################### Notes
#
# qtconnectivity checks for bluetooth libraries
# bluez and bluez_le (Linux Only)
#
# qtconnectivity depends on
# qtandroidextras (Android Only)
#
# qtserialport depends on
# ntddmodm (Windows Only)
#
# qttools depends on
# qtactiveqt (Windows Only)
#
# qtwebkit has tests for libraries in:
# Tools/qmake/mkspecs/features/configure.prf
# Tools/qmake/config.tests/
#
###############################################################################
############################################################################### TODO
#
# TODO: possible to trim dependencies of qtbase?
#
###############################################################################
############################################################################### Module Format
#
# "Qt Module Name" {
# {
# checksum, rmd160
# checksum, sha256
# checksum, size
# }
# dependencies, build
# dependencies, lib
# dependencies, Qt module name
# Qt components provided
# included in "standard" installation of Qt (empty string is no, explanation string is yes)
# variant overrides
# revision number
# license replacement
# }
#
# module info found at https://doc.qt.io/qt-5.11/qtmodules.html
#
###############################################################################
array set modules {
qt3d {
{
9fe6a7bfa80b9262c50aad4a7abb1edd349cecb8
04a55c21f365d897ec75042ee83f9ad59a847992c6f55fae0763ad2701d99eab
84944236
}
""
"port:assimp"
"qtbase qtdeclarative qtimageformats qtgamepad"
{"Qt 3D"}
""
"variant overrides: "
"revision 1"
"License: "
}
qtbase {
{
71c7c5498a02b7d8019b26c6b7ebc1a2321a3284
c6bf887732b83ce072eb72eddb7497bedcdf9ca794e7ed91261a93f063623e1c
46997676
}
""
"port:zlib port:libpng path:include/turbojpeg.h:libjpeg-turbo port:freetype path:bin/dbus-daemon:dbus path:lib/pkgconfig/glib-2.0.pc:glib2 port:icu port:pcre2 path:lib/pkgconfig/harfbuzz.pc:harfbuzz"
""
{"Qt Core" "Qt GUI" "Qt Network" "Qt SQL" "Qt Test" "Qt Widgets" "Qt Concurrent" "Qt D-Bus" "Qt OpenGL" "Qt Platform Headers" "Qt Print Support" "Qt XML"}
""
"variant overrides: "
"revision 7"
"License: "
}
qtcanvas3d {
{
b4cf945c2aee4b2bb6b503f4f8996fab471fa821
d5a004848588c1c53ea7ed9d36bb5bfe3a813ffc45290066d2f6cfcace072138
10915004
}
""
""
"qtdeclarative"
{"Qt Canvas 3D"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtcharts {
{
6404cb97674c6d713d2fbfc1fc64957fafebeb66
4798f3ebc4d937d1c190db7ff718ad5affa907caa56b5557e593f6b5a60d95dc
4239348
}
""
""
"qtbase qtdeclarative qtmultimedia"
{"Qt Charts"}
"GPLv3 license only"
"variant overrides: "
"revision 0"
"License: {GPL-3 OpenSSLException}"
}
qtconnectivity {
{
fc9b5dbaa5bf66ac71ef26d6bcb746606211d036
148cfcbceb3d0a70059f4d92fa069baf56babb627b16a4203b318ca6f0d0b32a
2729800
}
""
""
"qtbase qtdeclarative"
{"Qt Bluetooth" "Qt NFC"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtdatavis3d {
{
4eb4b82b61a64500f4a9a4fe3b02a2cd44875df4
83362eb9b55de61fa686c898fc4300494abdc2ec4f6e2422f19e6db6d5c81ccf
5201492
}
""
""
"qtbase qtdeclarative qtmultimedia"
{"Qt Data Visualization"}
"GPLv3 license only"
"variant overrides: "
"revision 0"
"License: {GPL-3 OpenSSLException}"
}
qtdeclarative {
{
21c3191728692a0f129d25cfc0cd14b64bca4156
8e263621d706f1c4def5d71212a6ae37b0d3c378da89d9e3e5fc0b5557721ae6
22233024
}
"port:python27"
""
"qtbase qtsvg qtxmlpatterns"
{"Qt QML" "Qt Quick" "Qt Quick Layouts" "Qt Quick Widgets"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtdoc {
{
59db45690965d44c651d8adacc77309fdfb220b6
585316a166a798b8379429bcaa5438b019455375c4e3e25df448d2983f45d41a
3331620
}
""
""
"qtdeclarative qttools sqlite-plugin"
{"Qt Reference Documentation"}
"requires all documentation"
"variant overrides: ~examples ~tests ~debug noarch ~docs"
"revision 0"
"License: "
}
qtgamepad {
{
670974f3b6f98f316e9b9c62edf038068f71d5d2
e99590cc14e7fb98caf7b48ddf8515f3e32388af3024659d46047f143a1342cc
385444
}
""
"port:libsdl2"
"qtbase qtdeclarative"
{"Qt Gamepad"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtgraphicaleffects {
{
dec2489cadf3b31b31ba511828b78fc0774b3444
14d86983fcdd119daefad235ffee7d8ca691e6074ef360cb6347b8aae66f57e2
14267588
}
""
""
"qtdeclarative"
{"Qt Graphical Effects"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtimageformats {
{
d8cc5a9d76ae8cc72f07d52aa618df5755fa39b6
04b261bc3d7a277fbe9ac8619ecd037d7089b356eaee41b2d41d7a2ff58b087f
2197304
}
""
"path:lib/pkgconfig/jasper.pc:jasper port:libmng port:tiff port:webp"
"qtbase"
{"Qt Image Formats"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtlocation {
{
6bf01d3492453a24e9b5837b8c849f1d797820a3
58e498a5b496e3a38925398b244bbd57ba68cbb482f2a0d2ae51572e037100eb
5589440
}
""
"port:icu port:zlib"
"qtbase qtdeclarative qtquickcontrols qtquickcontrols2 qtserialport"
{"Qt Location" "Qt Positioning"}
""
"variant overrides: "
"revision 3"
"License: "
}
qtmacextras {
{
8ec0a01dfc0dc66209672e55a26defe397fdda6b
930e26f80b330e110ad31de458d3b6e8db23170875b18a7eda2873cd59c53ac9
68932
}
""
""
"qtbase"
{"Qt Mac Extras"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtmultimedia {
{
2f55a52681e5b58a49800c717930bf87a37a2552
728078eff7dc21495d704a7cd17c604d74604604b45a3c58271608f90dea3c41
3710012
}
""
""
"qtbase qtdeclarative"
{"Qt Multimedia" "Qt Multimedia Widgets"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtnetworkauth {
{
9923d03afd7b17c91e1da7272dfd991e05257d1b
a060d0c3da56ea1e651d80ea1fa52b89544f059551c45d4e4ae87d8e9229a335
138740
}
""
""
"qtbase"
{"Qt Network Authorization"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtpurchasing {
{
93f9e4a03ef038d30ed6eaca7030d3f282503670
16cdd3751b18400715d516cd9836d687d811071101d7c8634030d7225b7fa0b9
207696
}
""
""
"qtbase qtdeclarative"
{"Qt Purchasing"}
"in-app purchases is of limited value on desktop"
"variant overrides: "
"revision 0"
"License: {GPL-3 OpenSSLException}"
}
qtquickcontrols {
{
d4fda13bd500f53ff952f8e1aa38de0a7ba184cc
4e4e5da02ab0b06d35b09356170013cfe36a773d15f92281f7e6d085c3f07537
6053336
}
""
""
"qtdeclarative qtgraphicaleffects"
{"Qt Quick Controls" "Qt Quick Dialogs" "Qt Quick Extras"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtquickcontrols2 {
{
bb52a10a3160812d269b109f7e591d546b462911
f45630b652585b62204405b28432977e67c148ca5f1789a794654fd6c1bad086
9042632
}
""
""
"qtgraphicaleffects qtimageformats"
{"Qt Quick Controls 2"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtremoteobjects {
{
3c31c5a561c0d801565bec03bb399c8e31d6af9c
f70306a78f440516eaacd6908140bc469ebd101a61c724b9590f4aefbafe72b4
319240
}
""
""
"qtbase qtdeclarative"
{"Qt Remote Objects"}
"technology preview module"
"variant overrides: "
"revision 0"
"License: "
}
qtscript {
{
73b35a78251b6a4ddcfb5790e4ba06ce95e354e3
bb84f3cc581078df4ff76705c5623cd88287f70f7405cbccf99e6fb6dedbec08
2674692
}
""
""
"qtbase"
{"Qt Script" "Qt Script Tools"}
"deprecated in favor QJS* in Qt QML"
"variant overrides: "
"revision 1"
"License: "
}
qtscxml {
{
debc70cdb4f558afaf3dd62f3118b80a5cb80854
13172767eda404f1b71ab35998a95af6633d700d2417fff3648d8c6dc6af68d7
433500
}
""
""
"qtbase qtdeclarative"
{"Qt SCXML"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtsensors {
{
a8ce4b6a1b8c3fa51bca8f8ae65dbb4d58359882
a75753d1d5607d4cb27b1849ea9612a65bb3a5271bb31bf0817edd143b620859
2031168
}
""
""
"qtbase qtdeclarative"
{"Qt Sensors"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtserialbus {
{
80de0ccfe92b233db99e45368f817732d55eaba7
5664def35d4ad4aedef14bc529679851450262ea81477a69031ba81aa614c16d
318484
}
""
""
"qtserialport"
{"Qt Serial Bus"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtserialport {
{
5b33eb52afc6d317bdd424b92086246d1b4af858
96c45e6d0d470626815f82b38ee48bf941e1bbfc10863087b69cc5f7bb766bda
299140
}
""
""
"qtbase"
{"Qt Serial Port"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtspeech {
{
0b6b18f6b31d88a693f8259a398659c3b3350e17
b92fd9ae33d78b6a080e154c80208c8998e3481bec4b84dc2be56dd0f03f1795
99516
}
""
""
"qtbase qtdeclarative qtmultimedia"
{"Qt Speech"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtsvg {
{
3e8d5fe2d4ec7ac21918320a4c9e53b27caf0299
21ea2c9c4e78101e98163bc19e463b8d8cdffa20e1ccd523ccc925b9f2cd4491
1845004
}
""
""
"qtbase"
{"Qt SVG"}
""
"variant overrides: "
"revision 0"
"License: "
}
qttools {
{
c80a783a16a31100884f6096ca9eef6a0231018e
c205e81bba9b87c6186604a05ab48e4e6cac0cd511525749dfd00b107b6f9f8e
9705920
}
""
"port:clang-9.0"
"qtbase qtdeclarative"
{"Qt Designer" "Qt Help" "Qt UI Tools"}
""
"variant overrides: "
"revision 1"
"License: "
}
qttranslations {
{
e52948b5957cba3bde90487200fcb526cd8e8988
fa84b284d8aa34d6076b5e87a33ba6eb2382b69c371089c1c25b88bfd4141149
1424160
}
""
""
"qttools"
{"translation files"}
""
"variant overrides: ~examples ~tests ~debug noarch ~docs"
"revision 0"
"License: "
}
qtvirtualkeyboard {
{
fc4dc27446ef79876158c5eb3615cac6eaa40611
8c5c40245a9dd2e9e504ce2d47d45079d8280436146797b24b8115ef163b4b9e
10698520
}
""
"port:hunspell"
"qtbase qtdeclarative qtsvg qtmultimedia qtquickcontrols"
{"Qt Virtual Keyboard"}
"GPLv3 license only"
"variant overrides: "
"revision 0"
"License: {GPL-3 OpenSSLException}"
}
qtwebchannel {
{
7192689ff316bc6259ab887971360ee87dcbb6ad
3c254fa41b1af09c1e951131f3a1336dee70a15cbb8a82112488b38d29572df3
177328
}
""
""
"qtbase qtdeclarative qtwebsockets"
{"Qt WebChannel"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtwebengine {
{
dca53ea8b12782d4bc35a749ca4b6ff2cb22d20e
5bb49ead71b851db4dc56f8fd97e0db72a268b22104129a06bac201d55d3b8fe
233678844
}
"port:python27 port:py27-ply path:bin/ninja:ninja"
""
"qtquickcontrols qtwebchannel qtlocation qttools"
{"Qt WebEngine"}
"very large and relatively new"
"variant overrides: "
"revision 0"
"License: "
}
qtwebglplugin {
{
30aff3a53561b651e77ee3003a5fd3e7367961d8
691d4c99a15b110369a080af59c95c3481c08149e55fe0bf73f7c4ca3c451f73
67452
}
""
""
"qtbase qtwebsockets qtdeclarative"
{"QPA plugin for running an application via a browser using streamed WebGL commands"}
"technology preview module; GPLv3 license only"
"variant overrides: ~docs ~examples"
"revision 0"
"License: {GPL-3 OpenSSLException}"
}
qtwebkit {
{
72cab2a8473801dcbbe8fc41ecf8dc45775f8b18
28a560becd800a4229bfac317c2e5407cd3cc95308bc4c3ca90dba2577b052cf
35300628
}
"port:python27"
"port:fontconfig port:icu port:leveldb port:webp port:libxml2 port:libxslt port:zlib port:sqlite3"
"qtbase qtdeclarative qtlocation qtmultimedia qtsensors qtwebchannel qtxmlpatterns"
{"Qt WebKit" "Qt WebKit Widgets"}
"community support only (use Qt WebEngine)"
"variant overrides: "
"revision 3"
"License: "
}
qtwebkit-examples {
{
21e9ec7d6b6ebe0e96dde0f59324a814b57048bc
e4ce4de6b468243abad2baabbe8ddfb05d25b186529bfe88cb8662fc983f54d0
3426504
}
""
""
"qtwebkit qtdeclarative qtlocation qttools qtwebchannel qtwebengine"
{"examples for Qt WebKit"}
"community support only (use Qt WebEngine)"
"variant overrides: ++examples ~docs "
"revision 0"
"License: "
}
qtwebsockets {
{
2dbadad1a81bcb578ec2c8252348054a8a31a365
021090c1a92f11fcf2914168741c1364235896793685b7fae2bc23e3dd55d5b9
229368
}
""
""
"qtbase qtdeclarative"
{"Qt WebSockets"}
""
"variant overrides: "
"revision 0"
"License: "
}
qtwebview {
{
2bcc7f5288d2b1d8b35dca4617a015453ebb563a
7026f6e5e8f7c0adea4743004eb945adeb65bec00c95cf50abe4b6016cb055da
130676
}
""
""
"qtdeclarative qtwebengine"
{"Qt WebView"}
"new in 5.6.0; requires qtwebengine"
"variant overrides: "
"revision 0"
"License: "
}
qtxmlpatterns {
{
c10f813b53b43c7eb00ace7da02b509b13c98b77
8bd00be30722570d22382b99679d07787a2d62d4891d1c47d738d634e2db0eee
1373016
}
""
""
"qtbase"
{"Qt XML Patterns"}
""
"variant overrides: "
"revision 0"
"License: "
}
}
############################################################################### SQL Plugin Format
#
# {
# variant name
# dependency, library
# include directory
# library directory
# library name
# obsolete? (empty string is no)
# }
#
###############################################################################
array set sql_plugins {
{sqlite SQLite "revision 0"} {
{
"sqlite3"
"port:sqlite3"
"${prefix}/include"
"${prefix}/lib"
"-lsqlite3"
""
}
}
{psql PostgreSQL "revision 0"} {
{
"postgresql96"
"port:postgresql96"
"${prefix}/include/postgresql96"
"${prefix}/lib/postgresql96"
"-lpq"
""
}
{
"postgresql95"
"port:postgresql95"
"${prefix}/include/postgresql95"
"${prefix}/lib/postgresql95"
"-lpq"
""
}
{
"postgresql94"
"port:postgresql94"
"${prefix}/include/postgresql94"
"${prefix}/lib/postgresql94"
"-lpq"
""
}
{
"postgresql84"
"port:postgresql84"
"${prefix}/include/postgresql84"
"${prefix}/lib/postgresql84"
"-lpq"
""
}
}
{mysql MySQL "revision 0"} {
{
"mariadb55"
"port:mariadb"
"${prefix}/include/mariadb/mysql"
"${prefix}/lib/mariadb/mysql"
"-lmysqlclient_r"
""
}
{
"mysql57"
"port:mysql57"
"${prefix}/include/mysql57/mysql"
"${prefix}/lib/mysql57/mysql"
"-lmysqlclient_r"
""
}
{
"mysql56"
"port:mysql56"
"${prefix}/include/mysql56/mysql"
"${prefix}/lib/mysql56/mysql"
"-lmysqlclient_r"
""
}
}
}
# because CPATH is set, pkgconfig does not include ${prefix}/lib and ${prefix}/include even when requested
# this means that files in ${prefix}/lib and ${prefix}/include are the *last* to be found
# this causes problems when there are files in ${worksrpath} that are unintentionally found instead
configure.env-append \
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
build.env-append \
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
if { ${os.major} < 15 } {
known_fail yes
pre-fetch {
ui_error "${subport} requires OS X 10.11 or later"
return -code error "incompatible OS version"
}
}
foreach {module module_info} [array get modules] {
set revision_string [string trim [lindex ${module_info} 7]]
set revision_string [string range ${revision_string} 1+[string last " " ${revision_string}] end]
subport ${name}-${module} {
distname ${module}-${middle_name}-src-${version}
revision ${revision_string}
# see https://bugreports.qt.io/browse/QTBUG-35514
build.target
checksums \
rmd160 [lindex [lindex ${module_info} 0] 0] \
sha256 [lindex [lindex ${module_info} 0] 1] \
size [lindex [lindex ${module_info} 0] 2]
set license_string [lindex ${module_info} 8]
set license_string [string range ${license_string} 1+[string first ":" ${license_string}] end]
set license_string [string trim ${license_string}]
if { ${license_string} ne "" } {
license {*}${license_string}
}
foreach deps [lindex ${module_info} 1] {
depends_build-append [subst ${deps}]
}
foreach deps [lindex ${module_info} 2] {
depends_lib-append [subst ${deps}]
}
foreach qtdeps [lindex ${module_info} 3] {
if { ${qtdeps} ne "qtbase" } {
depends_lib-append port:${name}-${qtdeps}
}
}
if {${os.platform} eq "darwin" && ${os.major} >= 20 && (${module} eq "qtbase" || "qtbase" in [lindex ${module_info} 3])} {
# Fails to find a working compiler and SDK
known_fail yes
depends_lib
depends_build
pre-fetch {
ui_error "${subport} currently does not build on macOS 11 or later"
return -code error "incompatible OS version"
}
}
description Tools and Module(s) for Qt Tool Kit ${qt_major}
set modules_provided_list [lindex ${module_info} 4]
if { [llength ${modules_provided_list}] == 1 } {
set modules_provided_join [lindex ${modules_provided_list} 0]
} elseif { [llength ${modules_provided_list}] == 2 } {
set modules_provided_join [join ${modules_provided_list} " and "]
} else {
set modules_provided_join [join [list [join [lrange ${modules_provided_list} 0 end-1] ", "] [lindex ${modules_provided_list} end]] ", and "]
}
long_description "Tools and Module(s) for Qt Tool Kit ${qt_major}: ${modules_provided_join}"
if { ${module} eq "qtbase" } {
# this subport uses configure script (NOT qmake)
PortGroup qt5 1.0
if { ${os.platform} ne "darwin" } {
pre-fetch {
ui_warn "${subport} is untested on \"${os.platform}\"."
}
}
if { [variant_isset universal] } {
pre-fetch {
ui_warn "Multiple architectures is not a Reference Configuration for Qt."
ui_warn "See https://doc.qt.io/qt-5/supported-platforms.html#reference-configurations"
}
}
# undo part of https://codereview.qt-project.org/#/c/140954/
# .pc files still needed by some ports
# see https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt5.rb
patchfiles-append patch-pc_files.diff
# see https://stackoverflow.com/questions/14506151/invalid-symbol-redefinition-in-inline-asm-on-llvm
# only runs test code on 32-bit systems
patchfiles-append patch-tst_benchlibcallgrind.diff
# find the Rez program
patchfiles-append patch-find_rez.diff
post-patch {
reinplace \
"s|__MACPORTS_Rez__|[exec -ignorestderr xcrun --find Rez]|g" \
mkspecs/common/mac.conf \
mkspecs/features/mac/rez.prf
}
#-----------------------------------------------------------------------------
# qtbase is used for:
# 1) building qtbase
# 2) building MacPorts projects via qmake
# 3) building end-user projects
#
# 1 & 2 require consistency with the MacPorts environment
# 3 requires consistency with the default Qt installation
#
# 2 can be achieved via environment variables
# (e.g. QMAKE_MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target})
#
# the only way 3 can be achieved is if no changes are made to the build system
#
# the following is an attempt to achieve 1 without destroying 3
#-----------------------------------------------------------------------------
# save default spec files
post-extract {
copy ${worksrcpath}/mkspecs ${worksrcpath}/mkspecs-save
}
# ensure qmake builds for the correct architecture
patchfiles-append patch-qmake_flags.diff
post-patch {
if {[variant_exists universal] && [variant_isset universal]} {
set arch_replace_cxx [portconfigure::configure_get_universal_archflags]
set arch_replace_ld [portconfigure::configure_get_universal_archflags]
} else {
set arch_replace_cxx [portconfigure::configure_get_archflags cxx]
set arch_replace_ld [portconfigure::configure_get_ld_archflags]
}
reinplace \
"s|__MACPORTS_CXX_ARCH_FLAGS__|${arch_replace_cxx}|g" \
${worksrcpath}/qmake/Makefile.unix.macos
reinplace \
"s|__MACPORTS_LD_ARCH_FLAGS__|${arch_replace_ld}|g" \
${worksrcpath}/qmake/Makefile.unix.macos
}
# respect MacPorts build variables
patchfiles-append patch-mkspecs.diff
# respect configure.compiler
if { ${configure.compiler} eq "clang" } {
# let xargs find correct compiler (default behaviour)
post-patch {
# let xargs find correct compiler
reinplace \
"s|__MACPORTS_CC__|clang|g" \
${worksrcpath}/mkspecs/common/clang.conf
reinplace \
"s|__MACPORTS_CXX__|clang++|g" \
${worksrcpath}/mkspecs/common/clang.conf
}
} else {
post-patch {
reinplace \
"s|__MACPORTS_CC__|${configure.cc}|g" \
${worksrcpath}/mkspecs/common/clang.conf
reinplace \
"s|__MACPORTS_CXX__|${configure.cxx}|g" \
${worksrcpath}/mkspecs/common/clang.conf
}
}
if { [string match macports-clang-* ${configure.compiler}] && [vercmp ${xcodeversion} "7.0"] >= 0 } {
# non-Xcode clang does not seem to be able to understand tbd files
# for an explanation of tbd files, see
# https://stackoverflow.com/questions/31450690/why-xcode-7-shows-tbd-instead-of-dylib
# see https://trac.macports.org/ticket/53151
pre-fetch {
ui_error "This configuration is known to fail"
ui_error "See https://trac.macports.org/ticket/53151"
ui_error "As a workaround, do not set configure.compiler manually"
return -code error "incompatible configuration"
}
}
post-patch {
# respect configure.cxx_stdlib
reinplace \
"s|__MACPORTS_CXX_STDLIB__|${configure.cxx_stdlib}|g" \
${worksrcpath}/mkspecs/common/clang-mac.conf
# respect macosx_deployment_target
foreach spec {macx-clang macx-g++ macx-icc} {
reinplace \
"s|__MACPORTS_DEPLOYMENT_TARGET__|${macosx_deployment_target}|g" \
${worksrcpath}/mkspecs/${spec}/qmake.conf
}
#respect configure.optflags
reinplace \