summaryrefslogtreecommitdiff
path: root/editors/texworks/Makefile
blob: f8ad85474c44b40733ba3c1cf7483e4e21911d1e (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
48
49
50
51
52
53
54
# Created by: Diego Depaoli <trebestie@gmail.com>
# $FreeBSD$

PORTNAME=	texworks
DISTVERSIONPREFIX=	release-
DISTVERSION=	0.6.2
PORTREVISION=	27
CATEGORIES=	editors

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Simple TeX front-end program

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

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

USES=		compiler:c++11-lang cmake desktop-file-utils pkgconfig \
		qt:5
USE_GITHUB=	yes
GH_ACCOUNT=	TeXworks
USE_QT=		buildtools_build designer_build qmake_build \
		core concurrent dbus gui linguisttools script \
		scripttools uitools widgets xml

USE_TEX=	synctex
USE_LDCONFIG=	yes

CMAKE_ARGS=	-DTeXworks_DIC_DIR:PATH=${LOCALBASE}/share/hunspell \
		-DTeXworks_DOCS_DIR:PATH=${DOCSDIR_REL} \
		-DTeXworks_HELP_DIR:PATH=${DOCSDIR_REL} \
		-DTeXworks_MAN_DIR:PATH=man/man1

PORTDOCS=	*
PLIST_FILES=	bin/texworks \
		man/man1/texworks.1.gz \
		share/appdata/texworks.appdata.xml \
		share/applications/texworks.desktop \
		share/pixmaps/TeXworks.png

OPTIONS_DEFINE=	DOCS LUA PYTHON

LUA_USES=		lua
LUA_CMAKE_BOOL=		WITH_LUA
LUA_PLIST_FILES=	lib/texworks/libTWLuaPlugin.so

PYTHON_USES=		python:3.4+
PYTHON_CMAKE_BOOL=	WITH_PYTHON
PYTHON_PLIST_FILES=	lib/texworks/libTWPythonPlugin.so

.include <bsd.port.mk>