mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
70141f1a3a
The work was done by tcberner and myself, with thanks to antoine for the exp-run. Not a lot to report compared to other Qt5 updates: * net/qt5-network is still broken with LibreSSL. I said this in a commit message ages ago but it bears repeating: upstream is open to adding support for LibreSSL, but someone needs to step up to maintain it upstream, otherwise things will continue to be broken all the time. * www/qt5-webengine is a huge monster that is terrible to update, just like www/chromium itself is. We (kde@) have decided to keep using the 5.9 series for the time being, as it should be compatible with the rest of Qt anyway. It was updated to 5.9.5, the latest 5.9 release at the time of writing. PR: 228213
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= core
|
|
DISTVERSION= ${QT5_VERSION}
|
|
CATEGORIES= devel
|
|
PKGNAMEPREFIX= qt5-
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Qt core non-graphical module
|
|
|
|
LIB_DEPENDS= libicui18n.so:devel/icu \
|
|
libpcre2-posix.so:devel/pcre2
|
|
|
|
USE_GNOME= glib20
|
|
USE_QT5= qmake_build buildtools_build
|
|
QT_DIST= base
|
|
HAS_CONFIGURE= yes
|
|
# Disable (almost) everything to install minimal qconfig.h.
|
|
# -no-feature-* adds QT_NO_* (for features which have no switch or
|
|
# that need to be detected).
|
|
CONFIGURE_ARGS= -no-accessibility -no-gif -no-libpng -no-libjpeg \
|
|
-no-openssl -no-gui -no-widgets -no-cups \
|
|
-no-iconv -no-dbus -no-opengl \
|
|
-no-egl -no-evdev \
|
|
-no-fontconfig -no-freetype -no-gtk -no-harfbuzz \
|
|
-no-libudev -no-xcb -no-xinput2 -no-xkb -no-xcb-xlib \
|
|
-no-xkbcommon -no-libinput
|
|
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/corelib
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
QT_DEFINES= GLIB
|
|
QT_CONFIG= glib icu
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-configure:
|
|
.for d in src/tools/bootstrap src/tools/qfloat16-tables src/corelib
|
|
${MKDIR} ${WRKSRC}/${d}
|
|
cd ${WRKSRC}/${d} && ${SETENV} ${QMAKE_ENV} ${_QMAKE} ${QMAKE_ARGS} ${WRKSRC}/${d}
|
|
.endfor
|
|
|
|
pre-build:
|
|
.for d in src/tools/bootstrap src/tools/qfloat16-tables src/corelib
|
|
${MKDIR} ${WRKSRC}/${d}
|
|
cd ${WRKSRC}/${d} && \
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
|
|
.endfor
|
|
|
|
post-install:
|
|
# Allow qconfig.h to be customized by single ports.
|
|
${AWK} 'BEGIN{print "#include <QtCore/qconfig-modules.h>"}{print}' \
|
|
${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig.h > ${WRKDIR}/qconfig.h
|
|
# Cleanup qconfig.h and remove stray '#define QT_NO_FOO'
|
|
${REINPLACE_CMD} "/#define QT_NO_/d" ${WRKDIR}/qconfig.h
|
|
${MV} ${WRKDIR}/qconfig.h ${STAGEDIR}${PREFIX}/${QT_INCDIR_REL}/QtCore/qconfig.h
|
|
|
|
.include <bsd.port.post.mk>
|