1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/editors/texstudio/Makefile
Koop Mast cf649469f2 Update poppler to 0.40.0. [1]
Add patches to py-poppler [2] and rubygem-poppler [3] to fix the build
of these ports with poppler 0.39+.

PR:		206293 [1]
Submitted by:	olivierd@ [1]
Obtained from:	ubuntu [2], rubygem-poppler upstream [3]
2016-01-21 19:40:10 +00:00

45 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= texstudio
PORTVERSION= 2.10.4
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/TeXstudio%20${PORTVERSION}
MAINTAINER= abiliojr@gmail.com
COMMENT= Integrated writing environment for LaTeX documents
LIB_DEPENDS= libpoppler.so:${PORTSDIR}/graphics/poppler
USES= desktop-file-utils dos2unix execinfo ghostscript:run \
pkgconfig qmake
DOS2UNIX_FILES= ${PORTNAME}.pro
_USE_QT4= gui network script svg xml \
iconengines_run designer_build moc_build rcc_build uic_build
_USE_QT5= gui network script svg xml \
printsupport concurrent uitools buildtools_build
USE_TEX= latex dvipsk
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
OPTIONS_SINGLE= TOOLKIT
OPTIONS_SINGLE_TOOLKIT= QT4 QT5
OPTIONS_DEFAULT= QT5
TOOLKIT_DESC= Qt toolkit
QT4_USE= ${_USE_QT4:S/^/QT4=/}
QT4_LIB_DEPENDS=libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4
QT5_USE= ${_USE_QT5:S/^/QT5=/}
QT5_LIB_DEPENDS=libpoppler-qt5.so:${PORTSDIR}/graphics/poppler-qt5
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>