summaryrefslogtreecommitdiff
path: root/editors/lyx-qt/Makefile.common
blob: 560332a5dddcf7444d651ab7804c0b04918f17d5 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# $NetBSD: Makefile.common,v 1.24 2005/06/01 18:02:45 jlam Exp $
#

DISTNAME=		lyx-1.3.5
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+=		teTeX-[0-9]*:../../print/teTeX

MESSAGE_SRC=		${.CURDIR}/../../editors/lyx-qt/MESSAGE
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

UNLIMIT_RESOURCES+=	datasize

USE_LANGUAGES=		c c++
GNU_CONFIGURE=		YES
USE_TOOLS+=		gmake
USE_LIBTOOL=		YES
USE_PERL5=		YES
USE_PKGLOCALEDIR=	YES
GCC_REQD+=		2.95

CONFIGURE_ARGS+=	--with-pspell-lib=${BUILDLINK_PREFIX.aspell}/lib \
			--with-pspell-include=${BUILDLINK_PREFIX.aspell}/include/pspell \
			--with-pspell

.include "../../mk/compiler.mk"

# XXX these values are taken from the LyX configure script
.if !empty(CC_VERSION:Mgcc-*)
.  if !empty(CC_VERSION:Mgcc-2.8*)
CXXFLAGS+=	# empty
.  elif !empty(CC_VERSION:Mgcc-2.95.1)
CXXFLAGS+=	-fpermissive -ftemplate-depth-30
.  elif !empty(CC_VERSION:Mgcc-2.95.*)
CXXFLAGS+=	-Wno-non-template-friend -ftemplate-depth-30
.  elif !empty(CC_VERSION:Mgcc-2.96*)
# some Linux distros
CXXFLAGS+=	-fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend
.  elif !empty(CC_VERSION:Mgcc-3.0*)
CXXFLAGS+=	# empty
.  elif !empty(CC_VERSION:Mgcc-3.1*)
CXXFLAGS+=	-finline-limit=500 -fno-exceptions
.  else # >= 3.2
CXXFLAGS+=	-fno-exceptions
.  endif
.endif

# XXX needed for gcc 2.95.* only?
.if ${OPSYS} == "NetBSD"
.  if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc" \
      || ${MACHINE_ARCH} == "m68k")
CXXFLAGS:=      ${CXXFLAGS:C/-O[0-9]*/-O/g}
CFLAGS:=        ${CFLAGS:C/-O[0-9]*/-O/g}
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
.  endif
.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 "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../textproc/aiksaurus/buildlink3.mk"
.include "../../textproc/aspell/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"