summaryrefslogtreecommitdiff
path: root/editors/lyx-qt/Makefile.common
blob: 7e7940e9401dbfa3f47e0f83ef25753155978f66 (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
55
56
57
58
59
60
# $NetBSD: Makefile.common,v 1.5 2003/05/29 23:53:13 grant Exp $
#

DISTNAME=		lyx-1.3.2
CATEGORIES=		editors
MASTER_SITES=		ftp://ftp.lyx.org/pub/lyx/stable/ \
			ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/ \
			ftp://ftp.sdsc.edu/pub/other/lyx/stable/

MAINTAINER=		martti@netbsd.org
HOMEPAGE=		http://www.lyx.org/
COMMENT=		Graphical frontend for LaTeX

CONFLICTS=		lyx-[0-9]*
DEPENDS=		ispell-base-[0-9]*:../../textproc/ispell-base
DEPENDS+=		teTeX2>=2.0.1:../../print/teTeX2

DESCR_SRC=		${.CURDIR}/../../editors/lyx-qt/DESCR
DISTINFO_FILE=		${.CURDIR}/../../editors/lyx-qt/distinfo
FILESDIR=		${.CURDIR}/../../editors/lyx-qt/files
PATCHDIR=		${.CURDIR}/../../editors/lyx-qt/patches
PLIST_SRC=		${.CURDIR}/../../editors/lyx-qt/PLIST.common

GNU_CONFIGURE=		YES
USE_BUILDLINK2=		YES
USE_GCC_SHLIB=		YES
USE_GMAKE=		YES
USE_LIBTOOL=		YES
USE_PERL5=		YES
USE_PKGLOCALEDIR=	YES
USE_X11=		YES

LIBTOOL_OVERRIDE=	${WRKSRC}/libtool

CONFIGURE_ARGS+=	--with-pspell-lib=${BUILDLINK_PREFIX.aspell}/lib \
			--with-pspell-include=${BUILDLINK_PREFIX.aspell}/include/pspell \
			--with-pspell
CXXFLAGS+=		-Wno-non-template-friend -ftemplate-depth-30

.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "sparc64"
DBG=	-O -ffixed-g4	#Hack for embedany memory model compatibility
.else
DBG=	-O
.endif

PYTHON_PATCH_SCRIPTS=	lib/lyx2lyx/lyx2lyx \
			development/tools/generate_symbols_list.py \
			lib/scripts/fen2ascii.py \
			lib/scripts/fig2pstex.py \
			lib/scripts/general_command_wrapper.py \
			lib/scripts/listerrors \
			lib/scripts/pic2ascii.py \
			lib/scripts/pic2png_eps.py

.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../lang/python/application.mk"
.include "../../textproc/aiksaurus/buildlink2.mk"
.include "../../textproc/aspell/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"