Update editors/texstudio to version 2.10.4_2
[dports.git] / editors / texstudio / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       texstudio
4 PORTVERSION=    2.10.4
5 PORTREVISION=   2
6 CATEGORIES=     editors
7 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/TeXstudio%20${PORTVERSION}
8
9 MAINTAINER=     abiliojr@gmail.com
10 COMMENT=        Integrated writing environment for LaTeX documents
11
12 LIB_DEPENDS=    libpoppler.so:graphics/poppler
13
14 USES=           desktop-file-utils dos2unix execinfo ghostscript:run \
15                 pkgconfig qmake
16 DOS2UNIX_FILES= ${PORTNAME}.pro
17
18 _USE_QT4=       gui network script svg xml \
19                 iconengines_run designer_build moc_build rcc_build uic_build
20 _USE_QT5=       gui network script svg xml \
21                 printsupport concurrent uitools buildtools_build
22
23 USE_TEX=        latex dvipsk
24
25 WRKSRC=         ${WRKDIR}/${PORTNAME}${PORTVERSION}
26
27 OPTIONS_SINGLE=         TOOLKIT
28 OPTIONS_SINGLE_TOOLKIT= QT4 QT5
29 OPTIONS_DEFAULT=        QT5
30
31 TOOLKIT_DESC=   Qt toolkit
32 QT4_USE=        ${_USE_QT4:S/^/QT4=/}
33 QT4_LIB_DEPENDS=libpoppler-qt4.so:graphics/poppler-qt4
34 QT5_USE=        ${_USE_QT5:S/^/QT5=/}
35 QT5_LIB_DEPENDS=libpoppler-qt5.so:graphics/poppler-qt5
36
37 post-patch:
38         @${REINPLACE_CMD} -e 's,^\(utilities.path =\).*,\1 ${DATADIR},' \
39                 -e 's,/usr/include,${LOCALBASE}/include,g' \
40                 -e 's,/usr/lib,${LOCALBASE}/lib,g' \
41                 -e '/appdata.path/s,\/usr,${PREFIX},' \
42                 ${WRKSRC}/${PORTNAME}.pro
43
44 .include <bsd.port.mk>