Changeset View
Changeset View
Standalone View
Standalone View
devel/qt5-qmake/Makefile
| # $FreeBSD$ | # $FreeBSD$ | ||||
| PORTNAME= qmake | PORTNAME= qmake | ||||
| DISTVERSION= ${QT5_VERSION} | DISTVERSION= ${QT5_VERSION} | ||||
| PORTREVISION= 1 | |||||
| CATEGORIES= devel | CATEGORIES= devel | ||||
| PKGNAMEPREFIX= qt5- | PKGNAMEPREFIX= qt5- | ||||
| MAINTAINER= kde@FreeBSD.org | MAINTAINER= kde@FreeBSD.org | ||||
| COMMENT= Qt Makefile generator | COMMENT= Qt Makefile generator | ||||
| RUN_DEPENDS= qtchooser:misc/qtchooser | |||||
| USE_QT5= # empty | USE_QT5= # empty | ||||
| USES= pkgconfig shebangfix | USES= compiler:c++11-lib pkgconfig shebangfix | ||||
| SHEBANG_FILES= util/harfbuzz/update-harfbuzz \ | SHEBANG_FILES= util/harfbuzz/update-harfbuzz \ | ||||
| util/unicode/x11/makeencodings \ | util/unicode/x11/makeencodings \ | ||||
| src/3rdparty/freetype/src/tools/afblue.pl | src/3rdparty/freetype/src/tools/afblue.pl | ||||
| QT_DIST= base | QT_DIST= base | ||||
| REINPLACE_ARGS= -i "" | REINPLACE_ARGS= -i "" | ||||
| HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
| # Disable everything to install minimal qconfig.pri. | # Disable everything to install minimal qconfig.pri. | ||||
| CONFIGURE_ARGS= -no-accessibility -no-openssl -no-gui -no-cups \ | CONFIGURE_ARGS= -no-accessibility -no-openssl -no-gui -no-cups \ | ||||
| -no-iconv -no-icu -no-dbus -no-xcb -no-opengl \ | -no-iconv -no-icu -no-dbus -no-xcb -no-opengl \ | ||||
| -no-glib -no-audio-backend -no-fontconfig \ | -no-glib -no-audio-backend -no-fontconfig \ | ||||
| -no-gtkstyle -no-xinput2 -no-xrender \ | -no-gtk -no-xinput2 -no-xrender \ | ||||
| -no-evdev -no-xkbcommon -no-alsa \ | -no-evdev -no-xkbcommon -no-alsa \ | ||||
| -no-freetype -no-gif -no-harfbuzz -no-libjpeg \ | -no-freetype -no-gif -no-harfbuzz -no-libjpeg \ | ||||
| -no-libpng -no-pulseaudio -no-widgets | -no-libpng -no-pulseaudio -no-widgets | ||||
| # Features yet to be removed from qconfig.pri. | # Features yet to be removed from qconfig.pri. | ||||
| TBR_CONFIG= concurrent|inotify|xlib | TBR_CONFIG= concurrent|inotify|xlib | ||||
| QMAKESPEC= ${WRKSRC}/mkspecs/freebsd-${QMAKE_COMPILER} | QMAKESPEC= ${WRKSRC}/mkspecs/freebsd-${QMAKE_COMPILER} | ||||
| INSTALL_TARGET= install_qmake install_mkspecs | INSTALL_TARGET= sub-qmake-qmake-aux-pro-install_subtargets install_mkspecs | ||||
| BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} | BUILD_WRKSRC= ${WRKSRC}/${PORTNAME} | ||||
| post-patch: | post-patch: | ||||
| # Prevent qconfig.pri from being module dependent. | # Prevent qconfig.pri from being module dependent. | ||||
| @${REINPLACE_CMD} -E -e '/"\$$QT_CONFIG +(${TBR_CONFIG})"/ d' \ | @${REINPLACE_CMD} -E -e '/"\$$QT_CONFIG +(${TBR_CONFIG})"/ d' \ | ||||
| ${WRKSRC}/configure | ${WRKSRC}/configure | ||||
| # Clean up files created by patching | |||||
| @${RM} ${WRKSRC}/mkspecs/*/*.orig | @${RM} ${WRKSRC}/mkspecs/*/*.orig | ||||
| post-build: | post-build: | ||||
| # Complete configure stage to generate *.pri files. | # Complete configure stage to generate *.pri files. | ||||
| @cd ${WRKSRC} && \ | @cd ${WRKSRC} && \ | ||||
| ${SETENV} CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \ | ${SETENV} CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \ | ||||
| CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \ | CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \ | ||||
| ${CONFIGURE_ENV} ${CONFIGURE_CMD} ${CONFIGURE_ARGS} | ${CONFIGURE_ENV} ${CONFIGURE_CMD} ${CONFIGURE_ARGS} | ||||
| # Cleanup qmodule.pri to make it module agnostic. | # Cleanup qmodule.pri to make it module agnostic. | ||||
| @${REINPLACE_CMD} -En -e '/^(CONFIG|QT_BUILD_PARTS|.*_DIR) / p' \ | @${REINPLACE_CMD} -En -e '/^(CONFIG|QT_BUILD_PARTS|.*_DIR) / p' \ | ||||
| ${WRKSRC}/mkspecs/qmodule.pri | ${WRKSRC}/mkspecs/qmodule.pri | ||||
| .include <bsd.port.mk> | .include <bsd.port.mk> | ||||