2005-03-23 15:20:40 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2005/03/23 20:20:40 alek Exp $
|
1998-07-12 03:08:40 -04:00
|
|
|
|
2001-03-28 04:32:31 -05:00
|
|
|
COMMENT= "graphical frontend for LaTeX (nearly WYSIWYG)"
|
|
|
|
|
2004-04-25 11:34:08 -04:00
|
|
|
DISTNAME= lyx-1.3.4
|
2005-01-09 02:49:05 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
1998-07-12 03:08:40 -04:00
|
|
|
CATEGORIES= print
|
|
|
|
|
2001-05-21 01:54:39 -04:00
|
|
|
HOMEPAGE= http://www.lyx.org/
|
|
|
|
|
2003-01-05 19:13:22 -05:00
|
|
|
MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/ \
|
|
|
|
ftp://ftp.sdsc.edu/pub/other/lyx/stable/ \
|
|
|
|
ftp://ftp.lip6.fr/pub/lyx/stable/ \
|
|
|
|
ftp://ftp.chg.ru/pub/TeX/lyx/stable/
|
2001-11-10 09:36:58 -05:00
|
|
|
|
2004-04-25 11:34:08 -04:00
|
|
|
MAINTAINER= Zvezdan Petkovic <zvezdan@cs.wm.edu>
|
1998-07-12 03:08:40 -04:00
|
|
|
|
2004-04-25 11:34:08 -04:00
|
|
|
# In XForms flavor: quasi-GPL (linked to closed source library)
|
|
|
|
# In Qt flavor: GPL (this should be preferred for CD distribution)
|
2001-05-21 01:54:39 -04:00
|
|
|
# see http://www.lyx.org/about/license.php3 for additional info
|
2000-03-05 13:30:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2004-08-10 05:26:13 -04:00
|
|
|
MODULES= devel/gettext
|
2003-01-05 19:13:22 -05:00
|
|
|
|
2004-04-25 11:34:08 -04:00
|
|
|
BUILD_DEPENDS+= :teTeX_base-*:print/teTeX/base
|
|
|
|
RUN_DEPENDS+= :teTeX_base-*:print/teTeX/base \
|
|
|
|
:ispell-*:textproc/ispell
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
FLAVORS= qt xforms
|
|
|
|
FLAVOR?= qt
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "qt"
|
|
|
|
MODULES+= qt3
|
|
|
|
MODQT_MT= Yes
|
|
|
|
CONFIGURE_ARGS= --with-frontend=qt ${MODQT_CONFIGURE_ARGS}
|
|
|
|
CONFIGURE_ENV= LIBS=-pthread
|
|
|
|
# A hack until LyX developers apply the patch to qt.m4 to respect $MOC and $UIC
|
|
|
|
CONFIGURE_ENV+= ac_moc1=${MODQT_MOC} ac_uic=${MODQT_UIC}
|
2005-03-23 15:20:40 -05:00
|
|
|
WANTLIB= ICE stdc++ c X11 m SM pthread
|
2004-04-25 11:34:08 -04:00
|
|
|
.elif ${FLAVOR:L} == "xforms"
|
|
|
|
LIB_DEPENDS+= forms.1::x11/xforms
|
|
|
|
.else
|
|
|
|
ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}"
|
|
|
|
.endif
|
1998-07-12 03:08:40 -04:00
|
|
|
|
2003-01-05 19:13:22 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/config
|
2003-01-05 19:13:22 -05:00
|
|
|
|
2004-04-25 11:34:08 -04:00
|
|
|
CONFIGURE_ARGS+=--with-extra-lib=${LOCALBASE}/lib \
|
|
|
|
--with-extra-inc="${LOCALBASE}/include \
|
|
|
|
${LOCALBASE}/include/X11" \
|
|
|
|
--without-latex-config
|
|
|
|
|
|
|
|
# Necessary because of compilation error. See:
|
|
|
|
# http://www.boost.org/libs/graph/doc/trouble_shooting.html
|
|
|
|
CXXFLAGS+= -ftemplate-depth-30
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
1998-07-12 03:08:40 -04:00
|
|
|
|
2004-04-25 11:34:08 -04:00
|
|
|
INSTALL_TARGET= install-strip
|
1998-07-12 03:08:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|