summaryrefslogtreecommitdiff
path: root/editors/texstudio/Makefile
blob: 9990359d079ba6c33ea8bb941d05f4f247b5a728 (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
PORTNAME=	texstudio
DISTVERSION=	4.6.3
CATEGORIES=	editors

MAINTAINER=	rigoletto@FreeBSD.org
COMMENT=	Integrated writing environment for LaTeX documents
WWW=		http://texstudio.sourceforge.net/

LICENSE=	GPLv2

BROKEN_armv6=	fails to compile: error: no member named mc_eip in __mcontext

LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell \
		libpoppler.so:graphics/poppler \
		libpoppler-qt5.so:graphics/poppler-qt5 \
		libquazip1-qt5.so:archivers/quazip@qt5

USES=		compiler:c++11-lang desktop-file-utils dos2unix \
		ghostscript:run gl pkgconfig qmake qt:5 tex xorg

USE_GITHUB=	yes
GH_ACCOUNT=	${PORTNAME}-org

USE_QT	=	concurrent core declarative gui linguisttools network \
		printsupport script svg uitools widgets xml \
		buildtools:build
QTVER_SUFFIX=	5

USE_XORG=	x11
USE_GL=		gl
USE_TEX=	latex dvipsk

DOS2UNIX_FILES=	${PORTNAME}.pro \
		src/manhattanstyle.cpp \
		src/pdfviewer/PDFDocument.h \
		src/qcodeedit/lib/widgets/qfoldpanel.cpp

QMAKE_ARGS+=	USE_SYSTEM_HUNSPELL=true USE_SYSTEM_QUAZIP=true

post-patch:
	@${REINPLACE_CMD} -e 's,^\(utilities.path =\).*,\1 ${DATADIR},' \
		-e 's,/usr/include,${LOCALBASE}/include,g' \
		-e 's,/usr/lib,${LOCALBASE}/lib,g' \
		-e '/appdata.path/s,\/usr,${PREFIX},' \
		${WRKSRC}/${PORTNAME}.pro

.include <bsd.port.mk>