Date: Sun, 18 Sep 2022 17:25:01 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Ports swithing from qt5 -> qt6 Message-ID: <CAFDf7UJdTbYJbZ_29gyZg_ZX4KysiYbhV-3UdfLHJokNd3EbqA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--0000000000001e9a1a05e8f60adc Content-Type: text/plain; charset="UTF-8" Hello all, Some ports have started to include qt6 support like deskutils/copyq <https://www.freshports.org/deskutils/copyq/> My doubt is how should I include qt6 in this port: an QT6 option or "force" update it to qt6 by default. CMakeLists.txt: --- OPTION(WITH_QT6 "Enable Qt 6" OFF) if (WITH_QT6) set(QT_DEFAULT_MAJOR_VERSION 6) find_package(Qt6Widgets 6.1.0 REQUIRED) set(copyq_qt Qt6) add_definitions( -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 ) else() set(QT_DEFAULT_MAJOR_VERSION 5) find_package(Qt5Widgets 5.8.0 REQUIRED) set(copyq_qt Qt5) --- Thanks, -- Nuno Teixeira FreeBSD Committer (ports) --0000000000001e9a1a05e8f60adc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>Some ports have s= tarted to include qt6 support like <a href=3D"https://www.freshports.org/de= skutils/copyq/">deskutils/copyq</a></div><div><br></div><div>My doubt is ho= w should I include qt6 in this port: an QT6 option or "force" upd= ate it to qt6 by default.<br></div><div><br></div><div>CMakeLists.txt:<br><= /div><div>---</div>OPTION(WITH_QT6 "Enable Qt 6" OFF)<br>if (WITH= _QT6)<br>set(QT_DEFAULT_MAJOR_VERSION 6)<br>find_package(Qt6Widgets 6.1.0 R= EQUIRED)<br>set(copyq_qt Qt6)<br>add_definitions( -DQT_DEPRECATED_WARNINGS_= SINCE=3D0x051500 )<br>else()<br>set(QT_DEFAULT_MAJOR_VERSION 5)<br>find_pac= kage(Qt5Widgets 5.8.0 REQUIRED)<br><div>set(copyq_qt Qt5)</div><div>---<br>= </div><div><br></div><div>Thanks,<br>-- <br><div dir=3D"ltr" class=3D"gmail= _signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><span style= =3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</spa= n></div></div></div></div> --0000000000001e9a1a05e8f60adc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJdTbYJbZ_29gyZg_ZX4KysiYbhV-3UdfLHJokNd3EbqA>