Changeset View
Changeset View
Standalone View
Standalone View
devel/qmake5/Makefile
Show All 31 Lines | |||||
BROKEN_sparc64= Fails to build: internal compiler error | BROKEN_sparc64= Fails to build: internal compiler error | ||||
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 | ||||
# Write the file location paths into mkspecs/common/freebsd.conf | |||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ | |||||
${WRKSRC}/mkspecs/common/freebsd.conf | |||||
@${REINPLACE_CMD} -e 's|unix.conf|freebsd.conf|' \ | |||||
${WRKSRC}/mkspecs/freebsd-icc/qmake.conf | |||||
# Add mkspec for g++. The clang is now the officially supported compiler for | |||||
# Qt>=5.6.0 on FreeBSD. | |||||
@${MV} ${WRKSRC}/mkspecs/unsupported/freebsd-g++ \ | |||||
${WRKSRC}/mkspecs/freebsd-g++ | |||||
@${REINPLACE_CMD} -e 's|(../|(|g' \ | |||||
${WRKSRC}/mkspecs/freebsd-g++/qmake.conf | |||||
@${REINPLACE_CMD} -e 's|"../|"|g' \ | |||||
${WRKSRC}/mkspecs/freebsd-g++/qplatformdefs.h | |||||
# Clean up files created by patching | |||||
@${RM} ${WRKSRC}/mkspecs/*/*.orig | @${RM} ${WRKSRC}/mkspecs/*/*.orig | ||||
@${RM} -Rf ${WRKSRC}/mkspecs/unsupported/freebsd-g++46 | |||||
tcberner: I think this is no longer needed. `mkspecs/unsupported/freebsd-g++46` no longer exists. | |||||
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> |
I think this is no longer needed. mkspecs/unsupported/freebsd-g++46 no longer exists.