Changeset View
Changeset View
Standalone View
Standalone View
devel/qt5-core/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= core | PORTNAME= core | ||||
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 core non-graphical module | COMMENT= Qt core non-graphical module | ||||
LIB_DEPENDS= libicui18n.so:devel/icu \ | LIB_DEPENDS= libicui18n.so:devel/icu \ | ||||
libpcre.so:devel/pcre | libpcre.so:devel/pcre | ||||
USES= execinfo | USES= execinfo | ||||
USE_GNOME= glib20 | USE_GNOME= glib20 | ||||
USE_QT5= qmake_build buildtools_build | USE_QT5= qmake_build buildtools_build | ||||
QT_DIST= base | QT_DIST= base | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
# Disable (almost) everything to install minimal qconfig.h. | # Disable (almost) everything to install minimal qconfig.h. | ||||
# -no-feature-* adds QT_NO_* (for features which have no switch or | # -no-feature-* adds QT_NO_* (for features which have no switch or | ||||
# that need to be detected). | # that need to be detected). | ||||
CONFIGURE_ARGS= -no-accessibility -no-gif -no-libpng -no-libjpeg \ | CONFIGURE_ARGS= -no-accessibility -no-gif -no-libpng -no-libjpeg \ | ||||
-no-openssl -no-gui -no-widgets -no-cups \ | -no-openssl -no-gui -no-widgets -no-cups \ | ||||
-no-iconv -no-dbus -no-xcb -no-opengl \ | -no-iconv -no-dbus -no-opengl \ | ||||
rakuco: `--no-opengl` (with a double dash) looks like a typo. | |||||
-no-alsa -no-egl -no-evdev -no-feature-concurrent \ | -no-alsa -no-egl -no-evdev -no-feature-concurrent \ | ||||
-no-fontconfig -no-freetype -no-gtkstyle -no-harfbuzz \ | -no-fontconfig -no-freetype -no-gtk -no-harfbuzz \ | ||||
-no-libudev -no-pulseaudio -no-xcb -no-xinput -no-xkb \ | -no-libudev -no-pulseaudio -no-xcb -no-xinput2 -no-xkb -no-xcb-xlib \ | ||||
-no-xkbcommon -no-xrender -no-xshape -no-xsync -no-xvideo | -no-xkbcommon -no-xrender -no-xshape -no-xsync -no-libinput | ||||
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL} | USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL} | ||||
BUILD_WRKSRC= ${WRKSRC}/src/corelib | BUILD_WRKSRC= ${WRKSRC}/src/corelib | ||||
INSTALL_WRKSRC= ${BUILD_WRKSRC} | INSTALL_WRKSRC= ${BUILD_WRKSRC} | ||||
QT_DEFINES= GLIB | QT_DEFINES= GLIB | ||||
QT_CONFIG= glib icu | QT_CONFIG= glib icu | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
post-install: | post-install: | ||||
Done Inline ActionsThis change looks important enough to be put in a separate patch file with some context. rakuco: This change looks important enough to be put in a separate patch file with some context. | |||||
Done Inline ActionsIs there much to gain from a separate patch? We still need to run REINPLACE_CMD over it anyway to push in the value of ${PREFIX}. tcberner: Is there much to gain from a separate patch? We still need to run `REINPLACE_CMD` over it… | |||||
Done Inline ActionsIn this specific case, I think it's quite important to be clear about what's happening, just like you've done with devel/qt5/files/extrapatch-mkspecs_features_create__cmake.prf. As for still having to use REINPLACE_CMD, why don't you use the same approach from that patch file I mentioned and go with $$[QT_INSTALL_PREFIX]/lib instead? rakuco: In this specific case, I think it's quite important to be clear about what's happening, just… | |||||
Not Done Inline ActionsRight... use brain. ^^ tcberner: Right... use brain. ^^ | |||||
# Allow qconfig.h to be customized by single ports. | # Allow qconfig.h to be customized by single ports. | ||||
${AWK} 'BEGIN{print "#include <QtCore/qconfig-modules.h>"}{print}' \ | ${AWK} 'BEGIN{print "#include <QtCore/qconfig-modules.h>"}{print}' \ | ||||
${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig.h > ${WRKDIR}/qconfig.h | ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig.h > ${WRKDIR}/qconfig.h | ||||
${MV} ${WRKDIR}/qconfig.h ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig.h | ${MV} ${WRKDIR}/qconfig.h ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig.h | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |
--no-opengl (with a double dash) looks like a typo.