summaryrefslogtreecommitdiff
path: root/editors/texmaker/Makefile
blob: 3302bb57f9c6c3cd3b39e2699078e5f9075a457a (plain)
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
39
40
41
42
43
44
45
46
47
# Created by: ijliao
# $FreeBSD$

PORTNAME=	texmaker
PORTVERSION=	4.5
PORTREVISION=	13
PORTEPOCH=	3
CATEGORIES=	editors
MASTER_SITES=	http://www.xm1math.net/texmaker/

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	LaTeX Development Environment

LICENSE=	GPLv2+

LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell \
		libpoppler.so:graphics/poppler

USES=		desktop-file-utils ghostscript:x11,run pkgconfig qmake tar:bzip2
_USE_QT4=	gui network xml webkit \
		moc_build rcc_build uic_build
_USE_QT5=	concurrent network printsupport script webkit widgets \
		xml buildtools_build
USE_TEX=	latex dvipsk
EXTRACT_AFTER_ARGS=	--exclude hunspell
QMAKE_ARGS=	ICONDIR=${PREFIX}/share/pixmaps \
		DESKTOPDIR=${DESKTOPDIR}

OPTIONS_SINGLE=	TOOLKIT
OPTIONS_SINGLE_TOOLKIT=	QT4 QT5
OPTIONS_DEFAULT=	QT5

TOOLKIT_DESC=	Qt toolkit
QT4_USES=	qt:4
QT4_USE=	${_USE_QT4:S/^/QT=/}
QT5_USES=	qt:5
QT5_USE=	${_USE_QT5:S/^/QT=/}
QT5_LIB_DEPENDS=	libpoppler-qt5.so:graphics/poppler-qt5

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MQT4}
DEPRECATED=		Qt4 has been EOL since december 2015
EXPIRATION_DATE=	2019-03-15
.endif

.include <bsd.port.mk>