Changeset View
Standalone View
Mk/bsd.qt.mk
| Show All 21 Lines | |||||
| .if !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include) | .if !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include) | ||||
| Qt_Include_MAINTAINER= kde@FreeBSD.org | Qt_Include_MAINTAINER= kde@FreeBSD.org | ||||
| Qt_Pre_Include= bsd.qt.mk | Qt_Pre_Include= bsd.qt.mk | ||||
| # Qt versions currently supported by the framework. | # Qt versions currently supported by the framework. | ||||
| _QT_SUPPORTED?= 4 5 | _QT_SUPPORTED?= 4 5 | ||||
| QT4_VERSION?= 4.8.7 | QT4_VERSION?= 4.8.7 | ||||
| QT5_VERSION?= 5.6.2 | QT5_VERSION?= 5.7.1 | ||||
| _QT_RELNAME= qt${_QT_VERSION:R:R} | _QT_RELNAME= qt${_QT_VERSION:R:R} | ||||
| _QT_VERSION= # empty | _QT_VERSION= # empty | ||||
| .for ver in ${_QT_SUPPORTED} | .for ver in ${_QT_SUPPORTED} | ||||
| . if defined(USE_QT${ver}) | . if defined(USE_QT${ver}) | ||||
| . if empty(_QT_VERSION) | . if empty(_QT_VERSION) | ||||
| _QT_VERSION= ${QT${ver}_VERSION} | _QT_VERSION= ${QT${ver}_VERSION} | ||||
| . else | . else | ||||
| # Reject different USE_QT*. | # Reject different USE_QT*. | ||||
| IGNORE?= can't be installed: different Qt versions specified via USE_QT[${_QT_SUPPORTED:S/ //g}] #' | IGNORE?= can't be installed: different Qt versions specified via USE_QT[${_QT_SUPPORTED:S/ //g}] #' | ||||
| . endif | . endif | ||||
| . endif | . endif | ||||
| .endfor | .endfor | ||||
| .if empty(_QT_VERSION) | .if empty(_QT_VERSION) | ||||
| # The file was included without USE_QT*. | # The file was included without USE_QT*. | ||||
| IGNORE?= can't be installed: bsd.qt.mk may only be included via USE_QT[${_QT_SUPPORTED:S/ //g}] #' | IGNORE?= can't be installed: bsd.qt.mk may only be included via USE_QT[${_QT_SUPPORTED:S/ //g}] #' | ||||
| .endif | .endif | ||||
| .if defined(QT_DIST) | .if defined(QT_DIST) | ||||
| QT_NONSTANDARD= yes | QT_NONSTANDARD= yes | ||||
| MASTER_SITES= ${MASTER_SITE_QT} | MASTER_SITES= ${MASTER_SITE_QT} | ||||
| # Useless, as it must be defined before including bsd.port.pre.mk (at least | |||||
| # because of bsd.options.mk). | |||||
| #PKGNAMEPREFIX?= ${_QT_RELNAME}- | |||||
| DISTINFO_FILE?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/distinfo | DISTINFO_FILE?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/distinfo | ||||
| LICENSE?= LGPL21 | LICENSE?= LGPL21 | ||||
| . if !exists(${PKGDIR}/pkg-descr) | . if !exists(${PKGDIR}/pkg-descr) | ||||
| DESCR?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/pkg-descr | DESCR?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/pkg-descr | ||||
| . endif | . endif | ||||
| Show All 20 Lines | |||||
| # This could arguably work for Qt4 too, but since it is maintenance mode it is | # This could arguably work for Qt4 too, but since it is maintenance mode it is | ||||
| # better not to fix what is not explicitly broken there. | # better not to fix what is not explicitly broken there. | ||||
| LDFLAGS+= -Wl,--as-needed | LDFLAGS+= -Wl,--as-needed | ||||
| . if ${.TARGETS:Mmakesum} || ${.TARGETS:Mfetch} && \ | . if ${.TARGETS:Mmakesum} || ${.TARGETS:Mfetch} && \ | ||||
| defined(DISABLE_SIZE) && defined(NO_CHECKSUM) | defined(DISABLE_SIZE) && defined(NO_CHECKSUM) | ||||
| # Ensure that the "makesum" target (with its inner "fetch" one) uses | # Ensure that the "makesum" target (with its inner "fetch" one) uses | ||||
| # devel/qt*/distinfo for every port. | # devel/qt*/distinfo for every port. | ||||
| . if ${DISTINFO_FILE:H} == ${.CURDIR:H:H}/devel/${_QT_RELNAME} | . if ${DISTINFO_FILE:H} == ${.CURDIR:H:H}/devel/${_QT_RELNAME} | ||||
| QT_DIST= 3d base canvas3d connectivity declarative graphicaleffects imageformats \ | QT_DIST= 3d base canvas3d charts connectivity datavis3d \ | ||||
| location multimedia quickcontrols quickcontrols2 script sensors serialbus serialport svg tools \ | declarative declarative-render2d gamepad \ | ||||
| translations webchannel websockets x11extras xmlpatterns | graphicaleffects imageformats location multimedia \ | ||||
| quickcontrols quickcontrols2 script scxml sensors \ | |||||
| serialbus serialport svg tools translations \ | |||||
| virtualkeyboard webchannel webkit websockets \ | |||||
| x11extras xmlpatterns | |||||
| . endif | . endif | ||||
mat: i think there is a level of indentation missing here in all but the first line. | |||||
Not Done Inline ActionsThese seem to be overwrapped, as if your tabs were 8 spaces wide and not 4. mat: These seem to be overwrapped, as if your tabs were 8 spaces wide and not 4. | |||||
| . endif | . endif | ||||
| . if ${QT_DIST} == "base" && ${PORTNAME} != "qmake" | . if ${QT_DIST} == "base" && ${PORTNAME} != "qmake" | ||||
| # Qt configure requires pkg-config to detect dependencies. | # Qt configure requires pkg-config to detect dependencies. | ||||
| USES+= pkgconfig | USES+= pkgconfig | ||||
| # Set QMAKESPEC when building qtbase so that qmake (called by the configure | # Set QMAKESPEC when building qtbase so that qmake (called by the configure | ||||
| # script) can find the mkspecs we create ourselves in devel/qmake5. | # script) can find the mkspecs we create ourselves in devel/qmake5. | ||||
| Show All 20 Lines | CONFIGURE_ARGS+=-opensource -confirm-license \ | ||||
| -plugindir ${PREFIX}/${QT_PLUGINDIR_REL} \ | -plugindir ${PREFIX}/${QT_PLUGINDIR_REL} \ | ||||
| -importdir ${PREFIX}/${QT_IMPORTDIR_REL} \ | -importdir ${PREFIX}/${QT_IMPORTDIR_REL} \ | ||||
| -datadir ${PREFIX}/${QT_DATADIR_REL} \ | -datadir ${PREFIX}/${QT_DATADIR_REL} \ | ||||
| -docdir ${PREFIX}/${QT_DOCDIR_REL} \ | -docdir ${PREFIX}/${QT_DOCDIR_REL} \ | ||||
| -translationdir ${PREFIX}/${QT_L10NDIR_REL} \ | -translationdir ${PREFIX}/${QT_L10NDIR_REL} \ | ||||
| -sysconfdir ${PREFIX}/${QT_ETCDIR_REL} | -sysconfdir ${PREFIX}/${QT_ETCDIR_REL} | ||||
| . if ${_QT_VERSION:M4*} | . if ${_QT_VERSION:M4*} | ||||
| CONFIGURE_ARGS+=-fast \ | CONFIGURE_ARGS+= -fast \ | ||||
| -system-libjpeg -system-libpng \ | -system-libjpeg -system-libpng \ | ||||
| -system-libmng -system-libtiff -system-zlib \ | -system-libmng -system-libtiff -system-zlib \ | ||||
| -no-phonon-backend \ | -no-phonon-backend \ | ||||
| -examplesdir ${PREFIX}/${QT_EXAMPLEDIR_REL}/examples \ | -examplesdir ${PREFIX}/${QT_EXAMPLEDIR_REL}/examples \ | ||||
| -demosdir ${PREFIX}/${QT_EXAMPLEDIR_REL}/demos | -demosdir ${PREFIX}/${QT_EXAMPLEDIR_REL}/demos | ||||
| . else | . else | ||||
| CONFIGURE_ARGS+=-nomake examples -nomake tests \ | CONFIGURE_ARGS+= -nomake examples -nomake tests \ | ||||
| -archdatadir ${PREFIX}/${QT_ARCHDIR_REL} \ | -archdatadir ${PREFIX}/${QT_ARCHDIR_REL} \ | ||||
| -libexecdir ${PREFIX}/${QT_LIBEXECDIR_REL} \ | -libexecdir ${PREFIX}/${QT_LIBEXECDIR_REL} \ | ||||
| -qmldir ${PREFIX}/${QT_QMLDIR_REL} \ | -qmldir ${PREFIX}/${QT_QMLDIR_REL} \ | ||||
| -examplesdir ${PREFIX}/${QT_EXAMPLEDIR_REL} \ | -examplesdir ${PREFIX}/${QT_EXAMPLEDIR_REL} \ | ||||
| -testsdir ${PREFIX}/${QT_TESTDIR_REL} | -testsdir ${PREFIX}/${QT_TESTDIR_REL} | ||||
| . if ${ARCH} == i386 && empty(MACHINE_CPU:Msse2) | . if ${ARCH} == i386 && empty(MACHINE_CPU:Msse2) | ||||
| CONFIGURE_ARGS+=-no-sse2 | CONFIGURE_ARGS+= -no-sse2 | ||||
| . endif | . endif | ||||
| . endif | . endif | ||||
Done Inline ActionsCan you add a bigger description of why we do this? rakuco: Can you add a bigger description of why we do this? | |||||
| . if defined(WANT_QT_DEBUG) || defined(WITH_DEBUG) | . if defined(WANT_QT_DEBUG) || defined(WITH_DEBUG) | ||||
| WITH_DEBUG= yes | WITH_DEBUG= yes | ||||
| STRIP= # It's done prior to bsd.qt.mk inclusion. | STRIP= # It's done prior to bsd.qt.mk inclusion. | ||||
| CONFIGURE_ARGS+=-debug -separate-debug-info | CONFIGURE_ARGS+= -debug -separate-debug-info | ||||
| # Override configuration in global qconfig.pri. | # Override configuration in global qconfig.pri. | ||||
| QMAKE_ARGS+= QT_CONFIG+="debug separate_debug_info" \ | QMAKE_ARGS+= QT_CONFIG+="debug separate_debug_info" \ | ||||
| QT_CONFIG-="release" | QT_CONFIG-="release" | ||||
| PLIST_SUB+= DEBUG="" | PLIST_SUB+= DEBUG="" | ||||
| . else | . else | ||||
| CONFIGURE_ARGS+=-release -no-separate-debug-info | CONFIGURE_ARGS+= -release -no-separate-debug-info | ||||
| QMAKE_ARGS+= QT_CONFIG+="release" \ | QMAKE_ARGS+= QT_CONFIG+="release" \ | ||||
| QT_CONFIG-="debug separate_debug_info" | QT_CONFIG-="debug separate_debug_info" | ||||
| PLIST_SUB+= DEBUG="@comment " | PLIST_SUB+= DEBUG="@comment " | ||||
| . endif | . endif | ||||
| . if defined(WANT_QT_VERBOSE_CONFIGURE) | . if defined(WANT_QT_VERBOSE_CONFIGURE) | ||||
| CONFIGURE_ARGS+=-verbose | CONFIGURE_ARGS+= -verbose | ||||
| . endif | . endif | ||||
| . if ${QT_DIST} == "base" || ${_QT_VERSION:M4*} | . if ${QT_DIST} == "base" || ${_QT_VERSION:M4*} | ||||
| . if ${_QT_VERSION:M4*} | . if ${_QT_VERSION:M4*} | ||||
| _EXTRA_PATCHES_QT4= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-src-corelib-global-qglobal.h \ | _EXTRA_PATCHES_QT4= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-src-corelib-global-qglobal.h \ | ||||
| ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-libtool | ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-libtool | ||||
| . else | . else | ||||
| _EXTRA_PATCHES_QT5= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-src_corelib_global_qcompilerdetection.h \ | _EXTRA_PATCHES_QT5= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_features_create__cmake.prf \ | ||||
| ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_features_qt__module.prf | ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-mkspecs_features_qt__module.prf | ||||
| . endif | . endif | ||||
| EXTRA_PATCHES?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-configure \ | EXTRA_PATCHES?= ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-configure \ | ||||
| ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-config.tests-unix-compile.test \ | ${.CURDIR:H:H}/devel/${_QT_RELNAME}/files/extrapatch-config.tests-unix-compile.test \ | ||||
| ${_EXTRA_PATCHES_QT4} ${_EXTRA_PATCHES_QT5} | ${_EXTRA_PATCHES_QT4} ${_EXTRA_PATCHES_QT5} | ||||
| . endif | . endif | ||||
| # Override settings installed in qconfig.h and *.pri files. The flags will be | # Override settings installed in qconfig.h and *.pri files. The flags will be | ||||
| # installed along with the port, but have to be passed as arguments while | # installed along with the port, but have to be passed as arguments while | ||||
| # building the port itself. Flags prefixed with "-" (e.g., "-CUPS" and "-cups") | # building the port itself. Flags prefixed with "-" (e.g., "-CUPS" and "-cups") | ||||
| # are needed to disable some features. | # are needed to disable some features. | ||||
| . if !defined(${QT_MODNAME}) || empty(${QT_MODNAME}) | . if !defined(${QT_MODNAME}) || empty(${QT_MODNAME}) | ||||
| # Used for both qconfig-*.h and qt_config_*.pri; it can't be empty. | # Used for both qconfig-*.h and qt_config_*.pri; it can't be empty. | ||||
| QT_MODNAME= ${PORTNAME} | QT_MODNAME= ${PORTNAME} | ||||
| . endif | . endif | ||||
| QT_DEFINES?= # For qconfig.h flags (without "QT_" prefix). | QT_DEFINES?= # For qconfig.h flags (without "QT_" prefix). | ||||
| QT_CONFIG?= # For *.pri files QT_CONFIG flags. | QT_CONFIG?= # For *.pri files QT_CONFIG flags. | ||||
| . if ${QT_DEFINES} | . if ${QT_DEFINES} | ||||
| QMAKE_ARGS+= DEFINES+="${QT_DEFINES:O:u:C/^([^-])/QT_\1/:C/^-/QT_NO_/:O}" | QMAKE_ARGS+= DEFINES+="${QT_DEFINES:O:u:C/^([^-])/QT_\1/:C/^-/QT_NO_/:O}" | ||||
| . if ${QT_DEFINES:N-*} | . if ${QT_DEFINES:N-*} | ||||
| # Use a script to cleanup qconfig-modules.h (see qt-post-install). | # Use a script to cleanup qconfig-modules.h (see qt-post-install). | ||||
| PKGDEINSTALL= ${WRKDIR}/pkg-deinstall | PKGDEINSTALL= ${WRKDIR}/pkg-deinstall | ||||
| . endif | . endif | ||||
| . endif | . endif | ||||
| . if ${QT_CONFIG:N-*} | . if ${QT_CONFIG:N-*} | ||||
| QMAKE_ARGS+= QT_CONFIG+="${QT_CONFIG:N-*:O:u}" | QMAKE_ARGS+= QT_CONFIG+="${QT_CONFIG:N-*:O:u}" | ||||
| . endif | . endif | ||||
| . if ${QT_CONFIG:M-*} | . if ${QT_CONFIG:M-*} | ||||
| QMAKE_ARGS+= QT_CONFIG-="${QT_CONFIG:M-*:O:u:C/^-//}" | QMAKE_ARGS+= QT_CONFIG-="${QT_CONFIG:M-*:O:u:C/^-//}" | ||||
| . endif | . endif | ||||
| PLIST_SUB+= SHORTVER=${DISTVERSION:R} \ | PLIST_SUB+= SHORTVER=${_QT_VERSION:R} \ | ||||
| FULLVER=${DISTVERSION:C/-.*//} | FULLVER=${_QT_VERSION:C/-.*//} | ||||
| .endif # defined(QT_DIST) | .endif # defined(QT_DIST) | ||||
| .if ${_QT_VERSION:M4*} | |||||
| QT_BINDIR_REL?= bin | |||||
| QT_LIBDIR_REL?= lib/${_QT_RELNAME} | |||||
| QT_PLUGINDIR_REL?= ${QT_LIBDIR_REL}/plugins | |||||
| QT_IMPORTDIR_REL?= ${QT_LIBDIR_REL}/imports | |||||
| .endif | |||||
| # A wrapper (qtchooser) is used to invoke binaries. | # A wrapper (qtchooser) is used to invoke binaries. | ||||
| QT_BINDIR_REL?= ${QT_ARCHDIR_REL}/bin | QT_BINDIR_REL?= ${QT_ARCHDIR_REL}/bin | ||||
| QT_INCDIR_REL?= include/${_QT_RELNAME} | QT_INCDIR_REL?= include/${_QT_RELNAME} | ||||
| QT_LIBDIR_REL?= lib | QT_LIBDIR_REL?= lib/${_QT_RELNAME} | ||||
| QT_ARCHDIR_REL?=${QT_LIBDIR_REL}/${_QT_RELNAME} | QT_ARCHDIR_REL?= ${QT_LIBDIR_REL} | ||||
| QT_PLUGINDIR_REL?= ${QT_ARCHDIR_REL}/plugins | QT_PLUGINDIR_REL?= ${QT_ARCHDIR_REL}/plugins | ||||
| QT_LIBEXECDIR_REL?= libexec/${_QT_RELNAME} | QT_LIBEXECDIR_REL?= libexec/${_QT_RELNAME} | ||||
| QT_IMPORTDIR_REL?= ${QT_ARCHDIR_REL}/imports | QT_IMPORTDIR_REL?= ${QT_ARCHDIR_REL}/imports | ||||
| QT_QMLDIR_REL?= ${QT_ARCHDIR_REL}/qml | QT_QMLDIR_REL?= ${QT_ARCHDIR_REL}/qml | ||||
| QT_DATADIR_REL?=share/${_QT_RELNAME} | QT_DATADIR_REL?= share/${_QT_RELNAME} | ||||
| QT_DOCDIR_REL?= share/doc/${_QT_RELNAME} | QT_DOCDIR_REL?= share/doc/${_QT_RELNAME} | ||||
| QT_L10NDIR_REL?=${QT_DATADIR_REL}/translations | QT_L10NDIR_REL?= ${QT_DATADIR_REL}/translations | ||||
| QT_ETCDIR_REL?= etc/xdg | QT_ETCDIR_REL?= etc/xdg | ||||
| QT_EXAMPLEDIR_REL?= share/examples/${_QT_RELNAME} | QT_EXAMPLEDIR_REL?= share/examples/${_QT_RELNAME} | ||||
| QT_TESTDIR_REL?=${QT_DATADIR_REL}/tests | QT_TESTDIR_REL?= ${QT_DATADIR_REL}/tests | ||||
| QT_CMAKEDIR_REL?= lib/cmake | |||||
| QT_QTCHOOSERDIR_REL?= ${QT_ETCDIR_REL}/qtchooser | |||||
| # Not customizable. | # Not customizable. | ||||
| .if ${_QT_VERSION:M4*} | .if ${_QT_VERSION:M4*} | ||||
| QT_MKSPECDIR_REL= ${QT_DATADIR_REL}/mkspecs | QT_MKSPECDIR_REL= ${QT_DATADIR_REL}/mkspecs | ||||
| _QT_LIBVER= # empty | _QT_LIBVER= # empty | ||||
| _QT_BINSUFX= -${_QT_RELNAME} | |||||
| .else | .else | ||||
| QT_MKSPECDIR_REL= ${QT_ARCHDIR_REL}/mkspecs | QT_MKSPECDIR_REL= ${QT_ARCHDIR_REL}/mkspecs | ||||
| _QT_LIBVER= ${_QT_VERSION:R:R} | _QT_LIBVER= ${_QT_VERSION:R:R} | ||||
| _QT_BINSUFX= # empty | |||||
| .endif | .endif | ||||
| LRELEASE?= ${QT_BINDIR}/lrelease${_QT_BINSUFX} | LRELEASE?= ${QT_BINDIR}/lrelease | ||||
| LUPDATE?= ${QT_BINDIR}/lupdate${_QT_BINSUFX} | LUPDATE?= ${QT_BINDIR}/lupdate | ||||
| MOC?= ${QT_BINDIR}/moc${_QT_BINSUFX} | MOC?= ${QT_BINDIR}/moc | ||||
| RCC?= ${QT_BINDIR}/rcc | RCC?= ${QT_BINDIR}/rcc | ||||
| UIC?= ${QT_BINDIR}/uic${_QT_BINSUFX} | UIC?= ${QT_BINDIR}/uic | ||||
| QMAKE?= ${QT_BINDIR}/qmake${_QT_BINSUFX} | QMAKE?= ${QT_BINDIR}/qmake | ||||
| # Needed to redefine the qmake target for internal Qt configuration. | # Needed to redefine the qmake target for internal Qt configuration. | ||||
Not Done Inline ActionsIf these are the ones created by qtchooser in PREFIX/bin, it should be PREFIX/bin, not QT_BINDIR. (If they are the ones in PREFIX/some-qt-directory then it's ok.) mat: If these are the ones created by qtchooser in PREFIX/bin, it should be PREFIX/bin, not… | |||||
Not Done Inline ActionsThese are the real binaries, i.e. /usr/local/lib/qt4/bin/lrelease . tcberner: These are the real binaries, i.e. `/usr/local/lib/qt4/bin/lrelease` . | |||||
| _QMAKE?= ${QMAKE} | _QMAKE?= ${QMAKE} | ||||
| QMAKESPEC?= ${QT_MKSPECDIR}/freebsd-${QMAKE_COMPILER} | QMAKESPEC?= ${QT_MKSPECDIR}/freebsd-${QMAKE_COMPILER} | ||||
| # The whole Qt distribution should be built with the same compiler, but it's | # The whole Qt distribution should be built with the same compiler, but it's | ||||
| # better to support custom settings. Dereferencing the detection allows to | # better to support custom settings. Dereferencing the detection allows to | ||||
| # avoid forking a shell on each inclusion of this file, and to catch any CXX | # avoid forking a shell on each inclusion of this file, and to catch any CXX | ||||
| # customization (via USE_GCC, etc.). | # customization (via USE_GCC, etc.). | ||||
| QMAKE_COMPILER= $$(ccver="$$(${CXX} --version)"; case "$$ccver" in *clang*) echo clang ;; *) echo g++ ;; esac) | QMAKE_COMPILER= $$(ccver="$$(${CXX} --version)"; case "$$ccver" in *clang*) echo clang ;; *) echo g++ ;; esac) | ||||
| # Import QMAKE_ENV and QMAKE_ARGS definitions. | # Import QMAKE_ENV and QMAKE_ARGS definitions. | ||||
| USES+= qmake:_env | USES+= qmake:_env | ||||
| .for dir in INC ARCH PLUGIN LIBEXEC IMPORT \ | .for dir in BIN INC LIB ARCH PLUGIN LIBEXEC IMPORT \ | ||||
| QML DATA DOC L10N ETC EXAMPLE TEST MKSPEC | QML DATA DOC L10N ETC EXAMPLE TEST MKSPEC \ | ||||
Done Inline ActionsVery small nitpick: there are two spaces instead of one after the '#'s, and an extra space before "QT_DIST". rakuco: Very small nitpick: there are two spaces instead of one after the '#'s, and an extra space… | |||||
| CMAKE QTCHOOSER | |||||
| QT_${dir}DIR= ${PREFIX}/${QT_${dir}DIR_REL} | QT_${dir}DIR= ${PREFIX}/${QT_${dir}DIR_REL} | ||||
| PLIST_SUB+= QT_${dir}DIR="${QT_${dir}DIR_REL}" | PLIST_SUB+= QT_${dir}DIR="${QT_${dir}DIR_REL}" | ||||
| .endfor | .endfor | ||||
| .for dir in BIN LIB | # Pass the chosen qt version to the environment for qtchooser | ||||
| QT_${dir}DIR= ${PREFIX}/${QT_${dir}DIR_REL} | CONFIGURE_ENV+= QT_SELECT=${_QT_RELNAME} | ||||
| . if defined(QT_DIST) | MAKE_ENV+= QT_SELECT=${_QT_RELNAME} | ||||
| PLIST_SUB+= QT_${dir}DIR="${QT_${dir}DIR_REL}" | |||||
| . endif | |||||
| .endfor | |||||
| .endif # !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include) | .endif # !defined(_POSTMKINCLUDED) && !defined(Qt_Pre_Include) | ||||
Done Inline ActionsAnother small style nitpick: "qt" should be "Qt", and it's always good to end the sentences with a period. rakuco: Another small style nitpick: "qt" should be "Qt", and it's always good to end the sentences… | |||||
| .if defined(_POSTMKINCLUDED) && !defined(Qt_Post_Include) | .if defined(_POSTMKINCLUDED) && !defined(Qt_Post_Include) | ||||
| Qt_Post_Include= bsd.qt.mk | Qt_Post_Include= bsd.qt.mk | ||||
| .if !defined(QT_NONSTANDARD) | .if !defined(QT_NONSTANDARD) | ||||
| CONFIGURE_ENV+= QTDIR="${PREFIX}" QMAKE="${QMAKE}" \ | CONFIGURE_ENV+= QTDIR="${QT_LIBDIR}" QMAKE="${QMAKE}" \ | ||||
| MOC="${MOC}" RCC="${RCC}" UIC="${UIC}" \ | MOC="${MOC}" RCC="${RCC}" UIC="${UIC}" \ | ||||
| QMAKESPEC="${QMAKESPEC}" | QMAKESPEC="${QMAKESPEC}" | ||||
| CONFIGURE_ARGS+=--with-qt-includes=${QT_INCDIR} \ | CONFIGURE_ARGS+= --with-qt-includes=${QT_INCDIR} \ | ||||
| --with-qt-libraries=${QT_LIBDIR} \ | --with-qt-libraries=${QT_LIBDIR} \ | ||||
| --with-extra-includes=${LOCALBASE}/include \ | --with-extra-includes=${LOCALBASE}/include \ | ||||
| --with-extra-libs=${LOCALBASE}/lib | --with-extra-libs=${LOCALBASE}/lib | ||||
| .endif # !defined(QT_NONSTANDARD) | .endif # !defined(QT_NONSTANDARD) | ||||
| _USE_QT_ALL= assistant dbus declarative designer doc gui help \ | _USE_QT_ALL= assistant dbus declarative designer doc gui help \ | ||||
| imageformats l10n linguist linguisttools multimedia \ | imageformats l10n linguist linguisttools multimedia \ | ||||
| network opengl pixeltool qdbusviewer qmake script \ | network opengl pixeltool qdbusviewer qmake script \ | ||||
| scripttools sql sql-ibase sql-mysql sql-odbc sql-pgsql \ | scripttools sql sql-ibase sql-mysql sql-odbc sql-pgsql \ | ||||
| sql-sqlite2 sql-sqlite3 svg testlib webkit \ | sql-sqlite2 sql-sqlite3 svg testlib webkit \ | ||||
| xml xmlpatterns | xml xmlpatterns | ||||
| _USE_QT4_ONLY= accessible assistant-adp assistantclient clucene codecs-cn codecs-jp \ | _USE_QT4_ONLY= accessible assistant-adp assistantclient clucene \ | ||||
| codecs-kr codecs-tw corelib demo graphicssystems-opengl \ | codecs-cn codecs-jp codecs-kr codecs-tw corelib demo \ | ||||
Not Done Inline ActionsStyle: "# Components", not "#Components". rakuco: Style: "# Components", not "#Components". | |||||
| help-tools iconengines inputmethods makeqpf moc phonon \ | graphicssystems-opengl help-tools iconengines \ | ||||
| phonon-gst porting qdoc3 qmlviewer qt3support qtconfig \ | inputmethods makeqpf moc phonon phonon-gst porting \ | ||||
| qtestlib qvfb rcc uic uic3 xmlpatterns-tool | qdoc3 qmlviewer qt3support qtconfig qtestlib qvfb \ | ||||
| rcc uic uic3 xmlpatterns-tool | |||||
| _USE_QT5_ONLY= 3d buildtools canvas3d concurrent connectivity core \ | _USE_QT5_ONLY= 3d buildtools canvas3d charts concurrent connectivity \ | ||||
| examples graphicaleffects location paths phonon4 \ | core datavis3d declarative-render2d examples gamepad \ | ||||
| printsupport qdbus qdoc qdoc-data qev qml quick quickcontrols \ | graphicaleffects location paths phonon4 printsupport \ | ||||
| quickcontrols2 sensors serialbus serialport sql-tds \ | qdbus qdoc qev qml quick quickcontrols quickcontrols2 \ | ||||
| uiplugin uitools webchannel websockets widgets x11extras | scxml sensors serialbus serialport sql-tds uiplugin \ | ||||
| uitools virtualkeyboard webchannel websockets \ | |||||
| widgets x11extras | |||||
| #Components: | |||||
| # comp_PORT port directory | |||||
| # comp_PATH file used to check existence, should be the "defining" | |||||
| # library/binary of the port | |||||
| # comp_LINK *FOR INTERNAL USE WHEN BUILDING QT5* | |||||
| # libraries used for linking against the module. | |||||
| # They will be linked into ${CONFIGURE_WRKSRC}/lib | |||||
| # for Qt5 ports. | |||||
| # The approach via _LINK was chosen, to be able to define | |||||
| # multiple "so" files per component (should that ever be | |||||
| # necessary). It also allows to only auto symlink in from | |||||
| # components that are actually needed during the build of | |||||
| # Qt5. | |||||
| 3d_PORT= graphics/${_QT_RELNAME}-3d | 3d_PORT= graphics/${_QT_RELNAME}-3d | ||||
| 3d_LIB= libQt${_QT_LIBVER}3DCore.so | 3d_LIB= libQt${_QT_LIBVER}3DCore.so | ||||
| accessible_PORT= accessibility/${_QT_RELNAME}-accessible | accessible_PORT= accessibility/${_QT_RELNAME}-accessible | ||||
| accessible_PATH= ${QT_PLUGINDIR}/accessible/libqtaccessiblewidgets.so | accessible_PATH= ${QT_PLUGINDIR}/accessible/libqtaccessiblewidgets.so | ||||
| assistant_PORT= devel/${_QT_RELNAME}-assistant | assistant_PORT= devel/${_QT_RELNAME}-assistant | ||||
| assistant_PATH= ${QT_BINDIR}/assistant${_QT_BINSUFX} | assistant_PATH= ${QT_BINDIR}/assistant | ||||
| assistant-adp_PORT= devel/${_QT_RELNAME}-assistant-adp | assistant-adp_PORT= devel/${_QT_RELNAME}-assistant-adp | ||||
| assistant-adp_PATH= ${QT_BINDIR}/assistant_adp | assistant-adp_PATH= ${QT_BINDIR}/assistant_adp | ||||
| assistantclient_PORT= devel/${_QT_RELNAME}-libqtassistantclient | assistantclient_PORT= devel/${_QT_RELNAME}-libqtassistantclient | ||||
| assistantclient_LIB= libQt${_QT_LIBVER}AssistantClient.so | assistantclient_LIB= libQt${_QT_LIBVER}AssistantClient.so | ||||
| buildtools_PORT= devel/${_QT_RELNAME}-buildtools | buildtools_PORT= devel/${_QT_RELNAME}-buildtools | ||||
| buildtools_PATH= ${MOC} | buildtools_PATH= ${MOC} | ||||
| canvas3d_PORT= x11-toolkits/${_QT_RELNAME}-canvas3d | canvas3d_PORT= x11-toolkits/${_QT_RELNAME}-canvas3d | ||||
| canvas3d_PATH= ${QT_QMLDIR}/QtCanvas3D/qmldir | canvas3d_PATH= ${QT_QMLDIR}/QtCanvas3D/qmldir | ||||
| clucene_PORT= textproc/clucene-${_QT_RELNAME} | charts_PORT= x11-toolkits/${_QT_RELNAME}-charts | ||||
| charts_LIB= libQt${_QT_LIBVER}Charts.so | |||||
| clucene_PORT= textproc/${_QT_RELNAME}-clucene | |||||
| clucene_LIB= libQt${_QT_LIBVER}CLucene.so | clucene_LIB= libQt${_QT_LIBVER}CLucene.so | ||||
| codecs-cn_PORT= chinese/${_QT_RELNAME}-codecs-cn | codecs-cn_PORT= chinese/${_QT_RELNAME}-codecs-cn | ||||
| codecs-cn_PATH= ${QT_PLUGINDIR}/codecs/libqcncodecs.so | codecs-cn_PATH= ${QT_PLUGINDIR}/codecs/libqcncodecs.so | ||||
| codecs-jp_PORT= japanese/${_QT_RELNAME}-codecs-jp | codecs-jp_PORT= japanese/${_QT_RELNAME}-codecs-jp | ||||
| codecs-jp_PATH= ${QT_PLUGINDIR}/codecs/libqjpcodecs.so | codecs-jp_PATH= ${QT_PLUGINDIR}/codecs/libqjpcodecs.so | ||||
| codecs-kr_PORT= korean/${_QT_RELNAME}-codecs-kr | codecs-kr_PORT= korean/${_QT_RELNAME}-codecs-kr | ||||
| codecs-kr_PATH= ${QT_PLUGINDIR}/codecs/libqkrcodecs.so | codecs-kr_PATH= ${QT_PLUGINDIR}/codecs/libqkrcodecs.so | ||||
| codecs-tw_PORT= chinese/${_QT_RELNAME}-codecs-tw | codecs-tw_PORT= chinese/${_QT_RELNAME}-codecs-tw | ||||
| codecs-tw_PATH= ${QT_PLUGINDIR}/codecs/libqtwcodecs.so | codecs-tw_PATH= ${QT_PLUGINDIR}/codecs/libqtwcodecs.so | ||||
| concurrent_PORT= devel/${_QT_RELNAME}-concurrent | concurrent_PORT= devel/${_QT_RELNAME}-concurrent | ||||
| concurrent_LIB= libQt${_QT_LIBVER}Concurrent.so | concurrent_LIB= libQt${_QT_LIBVER}Concurrent.so | ||||
| connectivity_PORT= comms/${_QT_RELNAME}-connectivity | connectivity_PORT= comms/${_QT_RELNAME}-connectivity | ||||
| connectivity_LIB= libQt${_QT_LIBVER}Bluetooth.so | connectivity_LIB= libQt${_QT_LIBVER}Bluetooth.so | ||||
| core_PORT= devel/${_QT_RELNAME}-core | core_PORT= devel/${_QT_RELNAME}-core | ||||
| core_LIB= libQt${_QT_LIBVER}Core.so | core_LIB= libQt${_QT_LIBVER}Core.so | ||||
| core_LINK= ${core_LIB} | |||||
| corelib_PORT= devel/${_QT_RELNAME}-corelib | corelib_PORT= devel/${_QT_RELNAME}-corelib | ||||
| corelib_LIB= ${core_LIB} | corelib_LIB= ${core_LIB} | ||||
| dbus_PORT= devel/dbus-${_QT_RELNAME} | datavis3d_PORT= x11-toolkits/${_QT_RELNAME}-datavis3d | ||||
| datavis3d_LIB= libQt${_QT_LIBVER}DataVisualization.so | |||||
| dbus_PORT= devel/${_QT_RELNAME}-dbus | |||||
| dbus_LIB= libQt${_QT_LIBVER}DBus.so | dbus_LIB= libQt${_QT_LIBVER}DBus.so | ||||
| dbus_LINK= ${dbus_LIB} | |||||
| declarative_PORT= x11-toolkits/${_QT_RELNAME}-declarative | declarative_PORT= x11-toolkits/${_QT_RELNAME}-declarative | ||||
| declarative_LIB= libQt${_QT_LIBVER}Declarative.so | declarative_LIB= libQt${_QT_LIBVER}Declarative.so | ||||
| declarative-render2d_PORT= x11-toolkits/${_QT_RELNAME}-declarative-render2d | |||||
| declarative-render2d_PATH= ${QT_PLUGINDIR}/scenegraph/libsoftwarecontext.so | |||||
| demo_PORT= misc/${_QT_RELNAME}-qtdemo | demo_PORT= misc/${_QT_RELNAME}-qtdemo | ||||
| demo_PATH= ${QT_BINDIR}/qtdemo | demo_PATH= ${QT_BINDIR}/qtdemo | ||||
| designer_PORT= devel/${_QT_RELNAME}-designer | designer_PORT= devel/${_QT_RELNAME}-designer | ||||
| designer_PATH= ${QT_BINDIR}/designer${_QT_BINSUFX} | designer_PATH= ${QT_BINDIR}/designer | ||||
| doc_PORT= misc/${_QT_RELNAME}-doc | doc_PORT= misc/${_QT_RELNAME}-doc | ||||
| doc_PATH= ${_QT_RELNAME}-doc>=${_QT_VERSION:R:R} | doc_PATH= ${_QT_RELNAME}-doc>=${_QT_VERSION:R:R} | ||||
| examples_PORT= misc/${_QT_RELNAME}-examples | examples_PORT= misc/${_QT_RELNAME}-examples | ||||
| examples_PATH= ${_QT_RELNAME}-examples>=${_QT_VERSION:R:R} | examples_PATH= ${_QT_RELNAME}-examples>=${_QT_VERSION:R:R} | ||||
| gamepad_PORT= x11-toolkits/${_QT_RELNAME}-gamepad | |||||
| gamepad_LIB= libQt${_QT_LIBVER}Gamepad.so | |||||
| graphicaleffects_PORT= graphics/${_QT_RELNAME}-graphicaleffects | graphicaleffects_PORT= graphics/${_QT_RELNAME}-graphicaleffects | ||||
| graphicaleffects_PATH= ${QT_QMLDIR}/QtGraphicalEffects/qmldir | graphicaleffects_PATH= ${QT_QMLDIR}/QtGraphicalEffects/qmldir | ||||
| graphicssystems-opengl_PORT= x11/${_QT_RELNAME}-graphicssystems-opengl | graphicssystems-opengl_PORT= x11/${_QT_RELNAME}-graphicssystems-opengl | ||||
| graphicssystems-opengl_PATH= ${QT_PLUGINDIR}/graphicssystems/libqglgraphicssystem.so | graphicssystems-opengl_PATH= ${QT_PLUGINDIR}/graphicssystems/libqglgraphicssystem.so | ||||
| gui_PORT= x11-toolkits/${_QT_RELNAME}-gui | gui_PORT= x11-toolkits/${_QT_RELNAME}-gui | ||||
| gui_LIB= libQt${_QT_LIBVER}Gui.so | gui_LIB= libQt${_QT_LIBVER}Gui.so | ||||
| gui_LINK= ${gui_LIB} | |||||
| help_PORT= devel/${_QT_RELNAME}-help | help_PORT= devel/${_QT_RELNAME}-help | ||||
| help_LIB= libQt${_QT_LIBVER}Help.so | help_LIB= libQt${_QT_LIBVER}Help.so | ||||
| help-tools_PORT= devel/${_QT_RELNAME}-help-tools | help-tools_PORT= devel/${_QT_RELNAME}-help-tools | ||||
| help-tools_PATH= ${QT_BINDIR}/qhelpgenerator | help-tools_PATH= ${QT_BINDIR}/qhelpgenerator | ||||
| iconengines_PORT= graphics/${_QT_RELNAME}-iconengines | iconengines_PORT= graphics/${_QT_RELNAME}-iconengines | ||||
| iconengines_PATH= ${QT_PLUGINDIR}/iconengines/libqsvgicon.so | iconengines_PATH= ${QT_PLUGINDIR}/iconengines/libqsvgicon.so | ||||
| imageformats_PORT= graphics/${_QT_RELNAME}-imageformats | imageformats_PORT= graphics/${_QT_RELNAME}-imageformats | ||||
| imageformats_PATH= ${QT_PLUGINDIR}/imageformats/libqtiff.so | imageformats_PATH= ${QT_PLUGINDIR}/imageformats/libqtiff.so | ||||
| inputmethods_PORT= x11/${_QT_RELNAME}-inputmethods | inputmethods_PORT= x11/${_QT_RELNAME}-inputmethods | ||||
| inputmethods_PATH= ${QT_PLUGINDIR}/inputmethods/libqimsw-multi.so | inputmethods_PATH= ${QT_PLUGINDIR}/inputmethods/libqimsw-multi.so | ||||
| linguist_PORT= devel/${_QT_RELNAME}-linguist | linguist_PORT= devel/${_QT_RELNAME}-linguist | ||||
| linguist_PATH= ${QT_BINDIR}/linguist${_QT_BINSUFX} | linguist_PATH= ${QT_BINDIR}/linguist | ||||
| linguisttools_PORT= devel/${_QT_RELNAME}-linguisttools | linguisttools_PORT= devel/${_QT_RELNAME}-linguisttools | ||||
| linguisttools_PATH= ${LRELEASE} | linguisttools_PATH= ${LRELEASE} | ||||
| location_PORT= devel/${_QT_RELNAME}-location | location_PORT= devel/${_QT_RELNAME}-location | ||||
| location_LIB= libQt${_QT_LIBVER}Location.so | location_LIB= libQt${_QT_LIBVER}Location.so | ||||
| l10n_PORT= misc/${_QT_RELNAME}-l10n | l10n_PORT= misc/${_QT_RELNAME}-l10n | ||||
| l10n_PATH= ${_QT_RELNAME}-l10n>=${_QT_VERSION:R:R} | l10n_PATH= ${_QT_RELNAME}-l10n>=${_QT_VERSION:R:R} | ||||
| makeqpf_PORT= devel/${_QT_RELNAME}-makeqpf | makeqpf_PORT= devel/${_QT_RELNAME}-makeqpf | ||||
| makeqpf_PATH= ${QT_BINDIR}/makeqpf${_QT_BINSUFX} | makeqpf_PATH= ${QT_BINDIR}/makeqpf | ||||
| moc_PORT= devel/${_QT_RELNAME}-moc | moc_PORT= devel/${_QT_RELNAME}-moc | ||||
| moc_PATH= ${MOC} | moc_PATH= ${MOC} | ||||
| multimedia_PORT= multimedia/${_QT_RELNAME}-multimedia | multimedia_PORT= multimedia/${_QT_RELNAME}-multimedia | ||||
| multimedia_LIB= libQt${_QT_LIBVER}Multimedia.so | multimedia_LIB= libQt${_QT_LIBVER}Multimedia.so | ||||
| network_PORT= net/${_QT_RELNAME}-network | network_PORT= net/${_QT_RELNAME}-network | ||||
| network_LIB= libQt${_QT_LIBVER}Network.so | network_LIB= libQt${_QT_LIBVER}Network.so | ||||
| network_LINK= ${network_LIB} | |||||
| opengl_PORT= graphics/${_QT_RELNAME}-opengl | opengl_PORT= graphics/${_QT_RELNAME}-opengl | ||||
| opengl_LIB= libQt${_QT_LIBVER}OpenGL.so | opengl_LIB= libQt${_QT_LIBVER}OpenGL.so | ||||
| paths_PORT= sysutils/${_QT_RELNAME}-qtpaths | paths_PORT= sysutils/${_QT_RELNAME}-qtpaths | ||||
| paths_PATH= ${QT_BINDIR}/qtpaths | paths_PATH= ${QT_BINDIR}/qtpaths | ||||
| pixeltool_PORT= graphics/${_QT_RELNAME}-pixeltool | pixeltool_PORT= graphics/${_QT_RELNAME}-pixeltool | ||||
| Show All 9 Lines | |||||
| phonon-gst_PATH= ${QT_PLUGINDIR}/phonon_backend/libphonon_gstreamer.so | phonon-gst_PATH= ${QT_PLUGINDIR}/phonon_backend/libphonon_gstreamer.so | ||||
| porting_PORT= devel/${_QT_RELNAME}-porting | porting_PORT= devel/${_QT_RELNAME}-porting | ||||
| porting_PATH= ${QT_BINDIR}/qt3to4 | porting_PATH= ${QT_BINDIR}/qt3to4 | ||||
| printsupport_PORT= print/${_QT_RELNAME}-printsupport | printsupport_PORT= print/${_QT_RELNAME}-printsupport | ||||
| printsupport_LIB= libQt${_QT_LIBVER}PrintSupport.so | printsupport_LIB= libQt${_QT_LIBVER}PrintSupport.so | ||||
| qdbus_PORT= devel/${_QT_RELNAME}-qdbus | qdbus_PORT= devel/${_QT_RELNAME}-qdbus | ||||
| qdbus_PATH= ${QT_BINDIR}/qdbus | qdbus_PATH= ${QT_BINDIR}/qdbus | ||||
| qdbusviewer_PORT= devel/${_QT_RELNAME}-qdbusviewer | qdbusviewer_PORT= devel/${_QT_RELNAME}-qdbusviewer | ||||
| qdbusviewer_PATH= ${QT_BINDIR}/qdbusviewer | qdbusviewer_PATH= ${QT_BINDIR}/qdbusviewer | ||||
| qdoc_PORT= devel/${_QT_RELNAME}-qdoc | qdoc_PORT= devel/${_QT_RELNAME}-qdoc | ||||
| qdoc_PATH= ${QT_BINDIR}/qdoc | qdoc_PATH= ${QT_BINDIR}/qdoc | ||||
| qdoc-data_PORT= devel/${_QT_RELNAME}-qdoc-data | |||||
| qdoc-data_PATH= ${QT_DOCDIR}/global/config.qdocconf | |||||
| qdoc3_PORT= devel/${_QT_RELNAME}-qdoc3 | qdoc3_PORT= devel/${_QT_RELNAME}-qdoc3 | ||||
| qdoc3_PATH= ${QT_BINDIR}/qdoc3 | qdoc3_PATH= ${QT_BINDIR}/qdoc3 | ||||
| qev_PORT= x11/${_QT_RELNAME}-qev | qev_PORT= x11/${_QT_RELNAME}-qev | ||||
| qev_PATH= ${QT_BINDIR}/qev | qev_PATH= ${QT_BINDIR}/qev | ||||
| qmake_PORT= devel/qmake${_QT_VERSION:R:R} | qmake_PORT= devel/${_QT_RELNAME}-qmake | ||||
| qmake_PATH= ${QMAKE} | qmake_PATH= ${QMAKE} | ||||
| qml_PORT= lang/${_QT_RELNAME}-qml | qml_PORT= lang/${_QT_RELNAME}-qml | ||||
| qml_LIB= libQt${_QT_LIBVER}Qml.so | qml_LIB= libQt${_QT_LIBVER}Qml.so | ||||
| qmlviewer_PORT= devel/${_QT_RELNAME}-qmlviewer | qmlviewer_PORT= devel/${_QT_RELNAME}-qmlviewer | ||||
| qmlviewer_PATH= ${QT_BINDIR}/qmlviewer | qmlviewer_PATH= ${QT_BINDIR}/qmlviewer | ||||
| qt3support_PORT= devel/${_QT_RELNAME}-qt3support | qt3support_PORT= devel/${_QT_RELNAME}-qt3support | ||||
| qt3support_LIB= libQt${_QT_LIBVER}3Support.so | qt3support_LIB= libQt${_QT_LIBVER}3Support.so | ||||
| qtconfig_PORT= misc/${_QT_RELNAME}-qtconfig | qtconfig_PORT= misc/${_QT_RELNAME}-qtconfig | ||||
| qtconfig_PATH= ${QT_BINDIR}/qtconfig${_QT_BINSUFX} | qtconfig_PATH= ${QT_BINDIR}/qtconfig | ||||
| qtestlib_PORT= ${testlib_PORT} | qtestlib_PORT= ${testlib_PORT} | ||||
| qtestlib_LIB= ${testlib_LIB} | qtestlib_LIB= ${testlib_LIB} | ||||
| quick_PORT= x11-toolkits/${_QT_RELNAME}-quick | quick_PORT= x11-toolkits/${_QT_RELNAME}-quick | ||||
| quick_LIB= libQt${_QT_LIBVER}Quick.so | quick_LIB= libQt${_QT_LIBVER}Quick.so | ||||
| quickcontrols_PORT= x11-toolkits/${_QT_RELNAME}-quickcontrols | quickcontrols_PORT= x11-toolkits/${_QT_RELNAME}-quickcontrols | ||||
| quickcontrols_PATH= ${QT_QMLDIR}/QtQuick/Controls/qmldir | quickcontrols_PATH= ${QT_QMLDIR}/QtQuick/Controls/qmldir | ||||
| quickcontrols2_PORT= x11-toolkits/${_QT_RELNAME}-quickcontrols2 | quickcontrols2_PORT= x11-toolkits/${_QT_RELNAME}-quickcontrols2 | ||||
| quickcontrols2_LIB= libQt${_QT_LIBVER}LabsTemplates.so | quickcontrols2_LIB= libQt${_QT_LIBVER}QuickControls2.so | ||||
| qvfb_PORT= devel/${_QT_RELNAME}-qvfb | qvfb_PORT= devel/${_QT_RELNAME}-qvfb | ||||
| qvfb_PATH= ${QT_BINDIR}/qvfb${_QT_BINSUFX} | qvfb_PATH= ${QT_BINDIR}/qvfb | ||||
| rcc_PORT= devel/${_QT_RELNAME}-rcc | rcc_PORT= devel/${_QT_RELNAME}-rcc | ||||
| rcc_PATH= ${RCC} | rcc_PATH= ${RCC} | ||||
| sensors_PORT= comms/${_QT_RELNAME}-sensors | sensors_PORT= comms/${_QT_RELNAME}-sensors | ||||
| sensors_LIB= libQt${_QT_LIBVER}Sensors.so | sensors_LIB= libQt${_QT_LIBVER}Sensors.so | ||||
| script_PORT= devel/${_QT_RELNAME}-script | script_PORT= devel/${_QT_RELNAME}-script | ||||
| script_LIB= libQt${_QT_LIBVER}Script.so | script_LIB= libQt${_QT_LIBVER}Script.so | ||||
| scripttools_PORT= devel/${_QT_RELNAME}-scripttools | scripttools_PORT= devel/${_QT_RELNAME}-scripttools | ||||
| scripttools_LIB= libQt${_QT_LIBVER}ScriptTools.so | scripttools_LIB= libQt${_QT_LIBVER}ScriptTools.so | ||||
| scxml_PORT= devel/${_QT_RELNAME}-scxml | |||||
| scxml_LIB= libQt${_QT_LIBVER}Scxml.so | |||||
| serialbus_PORT= comms/${_QT_RELNAME}-serialbus | serialbus_PORT= comms/${_QT_RELNAME}-serialbus | ||||
| serialbus_LIB= libQt${_QT_LIBVER}SerialBus.so | serialbus_LIB= libQt${_QT_LIBVER}SerialBus.so | ||||
| serialport_PORT= comms/${_QT_RELNAME}-serialport | serialport_PORT= comms/${_QT_RELNAME}-serialport | ||||
| serialport_LIB= libQt${_QT_LIBVER}SerialPort.so | serialport_LIB= libQt${_QT_LIBVER}SerialPort.so | ||||
| sql_PORT= databases/${_QT_RELNAME}-sql | sql_PORT= databases/${_QT_RELNAME}-sql | ||||
| sql_LIB= libQt${_QT_LIBVER}Sql.so | sql_LIB= libQt${_QT_LIBVER}Sql.so | ||||
| sql_LINK= ${sql_LIB} | |||||
| sql-pgsql_PATH= ${QT_PLUGINDIR}/sqldrivers/libqsqlpsql.so | sql-pgsql_PATH= ${QT_PLUGINDIR}/sqldrivers/libqsqlpsql.so | ||||
| . if ${_QT_VERSION:M4*} | .if ${_QT_VERSION:M4*} | ||||
| sql-sqlite2_PORT= databases/${_QT_RELNAME}-sqlite-plugin | sql-sqlite2_PORT= databases/${_QT_RELNAME}-sqlite-plugin | ||||
| . endif | .endif | ||||
| sql-sqlite3_PATH= ${QT_PLUGINDIR}/sqldrivers/libqsqlite.so | sql-sqlite3_PATH= ${QT_PLUGINDIR}/sqldrivers/libqsqlite.so | ||||
| . for db in ibase mysql odbc pgsql sqlite2 sqlite3 tds | .for db in ibase mysql odbc pgsql sqlite2 sqlite3 tds | ||||
| . if ${_QT_VERSION:M4*} | .if ${_QT_VERSION:M4*} | ||||
| sql-${db}_PORT?= databases/${_QT_RELNAME}-${db}-plugin | sql-${db}_PORT?= databases/${_QT_RELNAME}-${db}-plugin | ||||
| . else | .else | ||||
| sql-${db}_PORT?= databases/${_QT_RELNAME}-sqldrivers-${db} | sql-${db}_PORT?= databases/${_QT_RELNAME}-sqldrivers-${db} | ||||
| . endif | .endif | ||||
| sql-${db}_PATH?= ${QT_PLUGINDIR}/sqldrivers/libqsql${db:C/^sql//}.so | sql-${db}_PATH?= ${QT_PLUGINDIR}/sqldrivers/libqsql${db:C/^sql//}.so | ||||
| . endfor | .endfor | ||||
| svg_PORT= graphics/${_QT_RELNAME}-svg | svg_PORT= graphics/${_QT_RELNAME}-svg | ||||
| svg_LIB= libQt${_QT_LIBVER}Svg.so | svg_LIB= libQt${_QT_LIBVER}Svg.so | ||||
| testlib_PORT= devel/${_QT_RELNAME}-testlib | testlib_PORT= devel/${_QT_RELNAME}-testlib | ||||
| testlib_LIB= libQt${_QT_LIBVER}Test.so | testlib_LIB= libQt${_QT_LIBVER}Test.so | ||||
| uic_PORT= devel/${_QT_RELNAME}-uic | uic_PORT= devel/${_QT_RELNAME}-uic | ||||
| uic_PATH= ${UIC} | uic_PATH= ${UIC} | ||||
| uic3_PORT= devel/${_QT_RELNAME}-uic3 | uic3_PORT= devel/${_QT_RELNAME}-uic3 | ||||
| uic3_PATH= ${QT_BINDIR}/uic3 | uic3_PATH= ${QT_BINDIR}/uic3 | ||||
| uiplugin_PORT= x11-toolkits/${_QT_RELNAME}-uiplugin | uiplugin_PORT= x11-toolkits/${_QT_RELNAME}-uiplugin | ||||
| uiplugin_PATH= ${QT_INCDIR}/QtUiPlugin/QtUiPlugin | uiplugin_PATH= ${QT_INCDIR}/QtUiPlugin/QtUiPlugin | ||||
| uitools_PORT= devel/${_QT_RELNAME}-uitools | uitools_PORT= devel/${_QT_RELNAME}-uitools | ||||
| uitools_PATH= ${QT_LIBDIR}/libQt${_QT_LIBVER}UiTools.a | uitools_PATH= ${QT_LIBDIR}/libQt${_QT_LIBVER}UiTools.a | ||||
| virtualkeyboard_PORT= x11-toolkits/${_QT_RELNAME}-virtualkeyboard | |||||
| virtualkeyboard_PATH= ${QT_PLUGINDIR}/platforminputcontexts/libqtvirtualkeyboardplugin.so | |||||
| webchannel_PORT= www/${_QT_RELNAME}-webchannel | webchannel_PORT= www/${_QT_RELNAME}-webchannel | ||||
| webchannel_LIB= libQt${_QT_LIBVER}WebChannel.so | webchannel_LIB= libQt${_QT_LIBVER}WebChannel.so | ||||
| websockets_PORT= www/${_QT_RELNAME}-websockets | websockets_PORT= www/${_QT_RELNAME}-websockets | ||||
| websockets_LIB= libQt${_QT_LIBVER}WebSockets.so | websockets_LIB= libQt${_QT_LIBVER}WebSockets.so | ||||
| webkit_PORT= www/webkit-${_QT_RELNAME} | webkit_PORT= www/${_QT_RELNAME}-webkit | ||||
| webkit_LIB= libQt${_QT_LIBVER}WebKit.so | webkit_LIB= libQt${_QT_LIBVER}WebKit.so | ||||
| widgets_PORT= x11-toolkits/${_QT_RELNAME}-widgets | widgets_PORT= x11-toolkits/${_QT_RELNAME}-widgets | ||||
| widgets_LIB= libQt${_QT_LIBVER}Widgets.so | widgets_LIB= libQt${_QT_LIBVER}Widgets.so | ||||
| widgets_LINK= ${widgets_LIB} | |||||
| x11extras_PORT= x11/${_QT_RELNAME}-x11extras | x11extras_PORT= x11/${_QT_RELNAME}-x11extras | ||||
| x11extras_LIB= libQt${_QT_LIBVER}X11Extras.so | x11extras_LIB= libQt${_QT_LIBVER}X11Extras.so | ||||
| xml_PORT= textproc/${_QT_RELNAME}-xml | xml_PORT= textproc/${_QT_RELNAME}-xml | ||||
| xml_LIB= libQt${_QT_LIBVER}Xml.so | xml_LIB= libQt${_QT_LIBVER}Xml.so | ||||
| xmlpatterns_PORT= textproc/${_QT_RELNAME}-xmlpatterns | xmlpatterns_PORT= textproc/${_QT_RELNAME}-xmlpatterns | ||||
| xmlpatterns_LIB= libQt${_QT_LIBVER}XmlPatterns.so | xmlpatterns_LIB= libQt${_QT_LIBVER}XmlPatterns.so | ||||
| xmlpatterns-tool_PORT= textproc/${_QT_RELNAME}-xmlpatterns-tool | xmlpatterns-tool_PORT= textproc/${_QT_RELNAME}-xmlpatterns-tool | ||||
| xmlpatterns-tool_PATH= ${QT_BINDIR}/xmlpatterns | xmlpatterns-tool_PATH= ${QT_BINDIR}/xmlpatterns | ||||
| _USE_QT= ${USE_QT${_QT_VERSION:R:R}} | _USE_QT= ${USE_QT${_QT_VERSION:R:R}} | ||||
| ▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
| _QT_TOOLS+= qdbuscpp2xml qdbusxml2cpp | _QT_TOOLS+= qdbuscpp2xml qdbusxml2cpp | ||||
| . endif | . endif | ||||
| . if ${PORTNAME} != "widgets" | . if ${PORTNAME} != "widgets" | ||||
| _QT_TOOLS+= ${UIC} | _QT_TOOLS+= ${UIC} | ||||
| . endif | . endif | ||||
| pre-configure: qtbase-pre-configure | pre-configure: qtbase-pre-configure | ||||
| qtbase-pre-configure: | qtbase-pre-configure: | ||||
| . for tool in ${_QT_TOOLS} | . for tool in ${_QT_TOOLS} | ||||
Not Done Inline ActionsI've been thinking of dropping this here, and defining _LINK components for these, and handling them like the other base dependencies in lines 680-688. But maybe it would be a nice simplification... tcberner: I've been thinking of dropping this here, and defining _LINK components for these, and handling… | |||||
| @${TEST} -e ${QT_BINDIR}/${tool:T} && \ | @${TEST} -e ${QT_BINDIR}/${tool:T} && \ | ||||
| ${LN} -sf ${QT_BINDIR}/${tool:T} ${CONFIGURE_WRKSRC}/bin/${tool:T} || \ | ${LN} -sf ${QT_BINDIR}/${tool:T} ${CONFIGURE_WRKSRC}/bin/${tool:T} || \ | ||||
| ${TRUE} | ${TRUE} | ||||
| . endfor | |||||
| # Symlink in the required libraries to ${CONFIGURE_WRKSRC}/lib of the components | |||||
| # defined in USE_QT5 which have _LINK defined. | |||||
| . for comp in ${_USE_QT:O:u} | |||||
| . if defined(${comp}_LINK) | |||||
| . for comp_lib in ${${comp}_LINK} | |||||
| @${TEST} -f ${QT_LIBDIR}/${comp_lib} && ${LN} -sf ${QT_LIBDIR}/${comp_lib} ${CONFIGURE_WRKSRC}/lib || ${TRUE} | |||||
| . endfor | |||||
| . endif | |||||
| . endfor | . endfor | ||||
| # Add ${LOCALBASE}/lib to DEFAULT_LIBDIRS, which we use to filter out | # Add ${LOCALBASE}/lib to DEFAULT_LIBDIRS, which we use to filter out | ||||
| # certain paths from pkg-config calls (see the explanation in | # certain paths from pkg-config calls (see the explanation in | ||||
| # devel/qt5/files/patch-configure) as well as for setting | # devel/qt5/files/patch-configure) as well as for setting | ||||
| # QMAKE_DEFAULT_LIBDIR in mkspecs/qconfig.pri. Part of the solution for | # QMAKE_DEFAULT_LIBDIR in mkspecs/qconfig.pri. Part of the solution for | ||||
| # ports/194088. | # ports/194088. | ||||
| post-patch: qtbase-post-patch | post-patch: qtbase-post-patch | ||||
| qtbase-post-patch: | qtbase-post-patch: | ||||
Done Inline ActionsI think this can moved before the "Add ${LOCALBASE}/lib" block. rakuco: I think this can moved before the "Add ${LOCALBASE}/lib" block. | |||||
| ${REINPLACE_CMD} -e "/DEFAULT_LIBDIRS=/ s,\\\\\"\\\\n,\\\\n${LOCALBASE}/lib&," \ | ${REINPLACE_CMD} -e "/DEFAULT_LIBDIRS=/ s,\\\\\"\\\\n,\\\\n${LOCALBASE}/lib&," \ | ||||
| ${WRKSRC}/configure | ${WRKSRC}/configure | ||||
| . if ${PORTNAME} != "qmake" | . if ${PORTNAME} != "qmake" | ||||
| _QMAKE= ${CONFIGURE_WRKSRC}/bin/qmake | _QMAKE= ${CONFIGURE_WRKSRC}/bin/qmake | ||||
| post-configure: qmake-configure | post-configure: qmake-configure | ||||
| . endif | . endif | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||
i think there is a level of indentation missing here in all but the first line.