Changeset View
Changeset View
Standalone View
Standalone View
devel/qtcreator/Makefile
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
ALL_TARGET= all | ALL_TARGET= all | ||||
INSTALL_TARGET= install | INSTALL_TARGET= install | ||||
DOCS_ALL_TARGET= docs | DOCS_ALL_TARGET= docs | ||||
DOCS_INSTALL_TARGET= install_docs | DOCS_INSTALL_TARGET= install_docs | ||||
PLIST_SUB= SHLIB_VER="${PORTVERSION}" | PLIST_SUB= SHLIB_VER="${PORTVERSION}" | ||||
.include <bsd.port.pre.mk> | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 | |||||
# The detection of is_trivially_destructible fails with clang-3.4 from 10.3. | |||||
QMAKE_ARGS+= DEFINES+=TR2_OPTIONAL_DISABLE_EMULATION_OF_TYPE_TRAITS | |||||
.endif | |||||
# Fix paths for gnuplot and ant. | # Fix paths for gnuplot and ant. | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|/usr/bin/gnuplot|${LOCALBASE}/bin/gnuplot|' \ | ${REINPLACE_CMD} -e 's|/usr/bin/gnuplot|${LOCALBASE}/bin/gnuplot|' \ | ||||
${WRKSRC}/share/qtcreator/debugger/dumper.py | ${WRKSRC}/share/qtcreator/debugger/dumper.py | ||||
${REINPLACE_CMD} -e 's|/usr/bin/ant|${LOCALBASE}/bin/ant|' \ | ${REINPLACE_CMD} -e 's|/usr/bin/ant|${LOCALBASE}/bin/ant|' \ | ||||
${WRKSRC}/src/plugins/android/androidsettingswidget.cpp | ${WRKSRC}/src/plugins/android/androidsettingswidget.cpp | ||||
pre-configure: | pre-configure: | ||||
# We piggyback on QMAKE_LIBDIR_FLAGS to make sure -L${WRKSRC}/lib is passed to | # We piggyback on QMAKE_LIBDIR_FLAGS to make sure -L${WRKSRC}/lib is passed to | ||||
# the linker before -L/usr/local/lib. By default, the opposite happens, which | # the linker before -L/usr/local/lib. By default, the opposite happens, which | ||||
# is a problem when a Qt port is being upgraded, since an existing library | # is a problem when a Qt port is being upgraded, since an existing library | ||||
# would end up being picked up instead of those built in ${WRKSRC}/lib. Since | # would end up being picked up instead of those built in ${WRKSRC}/lib. Since | ||||
# qmake appends the value of QMAKE_LIBDIR to QMAKE_LIBDIR_FLAGS, we can use the | # qmake appends the value of QMAKE_LIBDIR to QMAKE_LIBDIR_FLAGS, we can use the | ||||
# latter to get the linker path order right. qmake is smart enough to strip | # latter to get the linker path order right. qmake is smart enough to strip | ||||
# occurrences of ${WRKSRC}/lib from .pc and .prl files when installing them. | # occurrences of ${WRKSRC}/lib from .pc and .prl files when installing them. | ||||
# See QTBUG-40825 and ports bugs 194088, 195105 and 198720. | # See QTBUG-40825 and ports bugs 194088, 195105 and 198720. | ||||
${ECHO_CMD} 'QMAKE_LIBDIR_FLAGS = -L${WRKSRC}/lib' >> ${WRKSRC}/.qmake.cache | ${ECHO_CMD} 'QMAKE_LIBDIR_FLAGS = -L${WRKSRC}/lib' >> ${WRKSRC}/.qmake.cache | ||||
.include <bsd.port.post.mk> | .include <bsd.port.mk> |