Changeset View
Changeset View
Standalone View
Standalone View
head/devel/qtcreator/Makefile
# Created by: Kris Moore <kris@pcbsd.org> | # Created by: Kris Moore <kris@pcbsd.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= qtcreator | PORTNAME= qtcreator | ||||
DISTVERSION= 4.0.3 | DISTVERSION= 4.1.0 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= QT/official_releases/qtcreator/${DISTVERSION:R}/${DISTVERSION} | MASTER_SITES= QT/official_releases/qtcreator/${DISTVERSION:R}/${DISTVERSION} | ||||
DISTNAME= qt-creator-opensource-src-${DISTVERSION} | DISTNAME= qt-creator-opensource-src-${DISTVERSION} | ||||
DIST_SUBDIR= KDE/Qt/qtcreator | DIST_SUBDIR= KDE/Qt/qtcreator | ||||
MAINTAINER= kde@FreeBSD.org | MAINTAINER= kde@FreeBSD.org | ||||
COMMENT= C++ and QML IDE for Qt development | COMMENT= C++ and QML IDE for Qt development | ||||
# depend on the split out qbs | # depend on the split out qbs | ||||
BUILD_DEPENDS= qbs:devel/qbs | LIB_DEPENDS= libqbscore.so:devel/qbs | ||||
RUN_DEPENDS= qbs:devel/qbs | |||||
USE_LDCONFIG= ${LOCALBASE}/lib/${PORTNAME} | USE_LDCONFIG= ${LOCALBASE}/lib/${PORTNAME} | ||||
USES= qmake compiler:c++11-lib | USES= qmake compiler:c++11-lib | ||||
USE_GL= gl | USE_GL= gl | ||||
USE_QT5= buildtools concurrent core declarative designer gui help \ | USE_QT5= buildtools concurrent core declarative designer gui help \ | ||||
linguist network printsupport qdoc qml quick quickcontrols \ | linguist network printsupport qdoc qml quick quickcontrols \ | ||||
script script sql svg webkit widgets xml xmlpatterns | script script sql svg webkit widgets xml xmlpatterns | ||||
Show All 27 Lines | |||||
DOCS_INSTALL_TARGET= install_docs | DOCS_INSTALL_TARGET= install_docs | ||||
# 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: | |||||
# 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 | |||||
# 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 | |||||
# 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 | |||||
# occurrences of ${WRKSRC}/lib from .pc and .prl files when installing them. | |||||
# See QTBUG-40825 and ports bugs 194088, 195105 and 198720. | |||||
${ECHO_CMD} 'QMAKE_LIBDIR_FLAGS = -L${WRKSRC}/lib' >> ${WRKSRC}/.qmake.cache | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |