summaryrefslogtreecommitdiff
path: root/editors/lyx-qt/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'editors/lyx-qt/Makefile.common')
-rw-r--r--editors/lyx-qt/Makefile.common38
1 files changed, 30 insertions, 8 deletions
diff --git a/editors/lyx-qt/Makefile.common b/editors/lyx-qt/Makefile.common
index 00cf1906d7f..8fd0b7808af 100644
--- a/editors/lyx-qt/Makefile.common
+++ b/editors/lyx-qt/Makefile.common
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile.common,v 1.6 2003/07/17 21:34:37 grant Exp $
+# $NetBSD: Makefile.common,v 1.7 2003/09/26 20:04:37 recht Exp $
#
-DISTNAME= lyx-1.3.2
+DISTNAME= lyx-1.3.3
CATEGORIES= editors
MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/ \
ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/ \
@@ -12,7 +12,6 @@ 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
@@ -29,19 +28,42 @@ USE_LIBTOOL= YES
USE_PERL5= YES
USE_PKGLOCALEDIR= YES
USE_X11= YES
+GCC_REQD= 2.95
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
+
+# XXX these values are taken from the LyX configure script
+.if defined(CC_VERSION)
+. if !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*)
+# no op
+. 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 \