Created attachment 172708 [details] Add TOOLKIT option databases/sqlitebrowser can be built against either Qt4 or Qt5. The attached patch adds an OPTIONS_SINGLE to select between QT4[default] and QT5.
Maintainer informed via mail
This may be better as individual -qt4 -qt5 slave ports (thus packages), though I haven't looked at how other ports have implemented such an option or if a policy preference exists for it. The option name may also need to be changed depending on policy / defacto standards in existing ports, or the presence of existing (and appropriate) options in bsd.options.desc.mk
Also, opt_CMAKE_BOOL is a thing now: https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html#options-cmake_bool
I created a review [1] to create the slave ports suggested in comment#2 [1] https://reviews.freebsd.org/D7253
I joined this request in the update of sqlitebrowser 3.8.0 to 3.9.0. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212395
A commit references this bug: Author: tcberner Date: Tue Sep 13 20:06:29 UTC 2016 New revision: 422073 URL: https://svnweb.freebsd.org/changeset/ports/422073 Log: Add new port databases/sqlitebrowser-qt5 as slaveport of databases/sqlitebrowser Add a new port databases/sqlitebrowser-qt5 as slaveport of the existing databases/sqlitebrowser. PR: 211217 Reviewed by: mat Approved by: rakuco (mentor) Differential Revision: https://reviews.freebsd.org/D7253 Changes: head/databases/Makefile head/databases/sqlitebrowser/Makefile head/databases/sqlitebrowser-qt5/ head/databases/sqlitebrowser-qt5/Makefile head/databases/sqlitebrowser-qt5/distinfo head/databases/sqlitebrowser-qt5/files/ head/databases/sqlitebrowser-qt5/pkg-descr head/databases/sqlitebrowser-qt5/pkg-plist
Committed. Closing.