aboutsummaryrefslogtreecommitdiff
path: root/print/lyx/Makefile
blob: d6604f6738500ee639c6b1e401f34ecf21a1209a (plain) (blame)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
# Created by: Klemm <andreas@klemm.gtn.com>
# $FreeBSD$

PORTNAME=	lyx
PORTVERSION=	${MAJOR_VERSION}.${MINOR_VERSION}
PORTREVISION=	1
CATEGORIES=	print editors
MASTER_SITES=	ftp://ftp.lyx.org/pub/lyx/stable/${MAJOR_VERSION}.x/ \
		http://www-ftp.lip6.fr/ftp/pub/lyx/stable/${MAJOR_VERSION}.x/ \
		ftp://ftp.ntua.gr/pub/X11/LyX/stable/${MAJOR_VERSION}.x/ \
		http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/${MAJOR_VERSION}.x/

MAINTAINER=	rakuco@FreeBSD.org
COMMENT=	Document processor interfaced with LaTeX (nearly WYSIWYG)

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libboost_regex.so:devel/boost-libs \
		libmythes-1.2.so:textproc/mythes

MAJOR_VERSION=	2.3
MINOR_VERSION=	4.2

USES=		autoreconf compiler:c++11-lang desktop-file-utils gmake iconv \
		pkgconfig perl5 python qt:5 shebangfix tar:xz xorg
USE_QT=		core concurrent gui svg widgets x11extras buildtools_build qmake_build
USE_XORG=	xcb
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-included-boost \
		--without-included-mythes \
		--enable-qt5 \
		--with-qt-dir=${LOCALBASE}/lib/qt5 \
		${ICONV_CONFIGURE_ARG} \
		--with-extra-prefix=${LOCALBASE}
EXTRACT_AFTER_ARGS=	--no-same-owner --no-same-permissions	\
		--exclude 3rdparty	\
		--exclude cygwin	\
		--exclude MacOSX	\
		--exclude Win32
SHEBANG_FILES=	lib/configure.py \
		lib/lyx2lyx/lyx2lyx \
		lib/scripts/listerrors \
		lib/scripts/gnuplot2pdf.py \
		lib/scripts/svg2pdftex.py \
		lib/scripts/svg2pstex.py

LIBS+=		-lexecinfo

OPTIONS_DEFINE=		ASPELL ENCHANT HUNSPELL NLS
OPTIONS_DEFAULT=	HUNSPELL
OPTIONS_SUB=		yes
ENCHANT_DESC=		Spell checking using Enchant

ASPELL_CONFIGURE_OFF=	--without-aspell
ASPELL_LIB_DEPENDS=	libaspell.so:textproc/aspell
ENCHANT_CONFIGURE_OFF=	--without-enchant
ENCHANT_LIB_DEPENDS=	libenchant.so:textproc/enchant
HUNSPELL_CONFIGURE_OFF=	--without-hunspell
HUNSPELL_LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell
NLS_CONFIGURE_OFF=	--disable-nls
NLS_USES=		gettext

post-patch:
	@${GREP} -rl "python -tt" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -i '' 's|python -tt|${PYTHON_CMD} -tt|'

.include <bsd.port.mk>