aboutsummaryrefslogtreecommitdiff
path: root/devel/qtcreator/Makefile
blob: d8393c7ec9089c5a8ea02c79266dd62ddfabea2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Kris Moore <kris@pcbsd.org>
# $FreeBSD$

PORTNAME=	qtcreator
DISTVERSION=	3.3.1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_QT} 
MASTER_SITE_SUBDIR=official_releases/qtcreator/${DISTVERSION:R}/${DISTVERSION}/
DISTNAME=	qt-creator-opensource-src-${DISTVERSION}
DIST_SUBDIR=	KDE

MAINTAINER=	kde@FreeBSD.org
COMMENT=	C++ and QML IDE for Qt development

USE_LDCONFIG=	${LOCALBASE}/lib/${PORTNAME}
USES=		qmake:outsource compiler:c++11-lib shebangfix
USE_QT5=	buildtools concurrent core declarative designer gui linguist network\
		qml quick quickcontrols script script sql svg webkit widgets xml\
		xmlpatterns

# Enforce installation to ${PREFIX}.
QMAKE_ARGS+=	QTC_PREFIX=${PREFIX}

DESKTOP_ENTRIES="Qt Creator" "" "QtProject-qtcreator" \
		"${PREFIX}/bin/${PORTNAME}" "Development;Qt;" true

# There seems to be only one file needing a shebangfix (all the others
# do not get installed).
SHEBANG_FILES= share/qtcreator/templates/wizards/scriptgeneratedproject/generate.pl

# Fix paths for gnuplot and ant.
post-patch:
	${REINPLACE_CMD} -e 's|/usr/bin/gnuplot|${LOCALBASE}/bin/gnuplot|' \
				${WRKSRC}/share/qtcreator/debugger/dumper.py
	${REINPLACE_CMD} -e 's|/usr/bin/ant|${LOCALBASE}/bin/ant|' \
				${WRKSRC}/src/plugins/android/androidsettingswidget.cpp

.include <bsd.port.mk>