2007-11-04 18:24:43 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.45 2007/11/04 23:24:43 steven Exp $
|
1998-07-12 03:08:40 -04:00
|
|
|
|
2007-09-15 17:36:44 -04:00
|
|
|
COMMENT= graphical frontend for LaTeX (nearly WYSIWYG)
|
2001-03-28 04:32:31 -05:00
|
|
|
|
2006-11-27 12:16:57 -05:00
|
|
|
DISTNAME= lyx-1.4.3
|
2007-11-04 18:24:43 -05:00
|
|
|
PKGNAME= ${DISTNAME}p2
|
1998-07-12 03:08:40 -04:00
|
|
|
CATEGORIES= print
|
|
|
|
|
2001-05-21 01:54:39 -04:00
|
|
|
HOMEPAGE= http://www.lyx.org/
|
|
|
|
|
2006-07-05 15:35:18 -04:00
|
|
|
EXTRACT_SUFX?= .tar.bz2
|
2003-01-05 19:13:22 -05:00
|
|
|
MASTER_SITES= ftp://ftp.lyx.org/pub/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
|
|
|
|
2006-07-05 15:35:18 -04:00
|
|
|
MAINTAINER= Zvezdan Petkovic <zpetkovic@acm.org>
|
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
|
|
|
|
2006-07-05 15:35:18 -04:00
|
|
|
MODULES= devel/gettext lang/python
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2007-10-01 07:42:30 -04:00
|
|
|
RUN_DEPENDS= ::print/texlive/base \
|
2006-07-16 14:02:14 -04:00
|
|
|
::graphics/ImageMagick
|
|
|
|
|
|
|
|
LIB_DEPENDS= aspell::textproc/aspell/core
|
2006-07-05 15:35:18 -04:00
|
|
|
|
|
|
|
WANTLIB= ICE SM X11 c m stdc++ z
|
2003-01-05 19:13:22 -05:00
|
|
|
|
2007-04-06 02:33:03 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2004-04-25 11:34:08 -04:00
|
|
|
USE_GMAKE= Yes
|
2006-11-13 07:51:14 -05:00
|
|
|
USE_X11= Yes
|
2004-04-25 11:34:08 -04:00
|
|
|
|
|
|
|
FLAVORS= qt xforms
|
|
|
|
FLAVOR?= qt
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "qt"
|
|
|
|
MODULES+= qt3
|
|
|
|
MODQT_MT= Yes
|
2006-07-05 15:35:18 -04:00
|
|
|
WANTLIB+= pthread
|
2004-04-25 11:34:08 -04:00
|
|
|
CONFIGURE_ARGS= --with-frontend=qt ${MODQT_CONFIGURE_ARGS}
|
2006-07-05 15:35:18 -04:00
|
|
|
CONFIGURE_ENV+= LIBS=-pthread QTDIR=${MODQT_QTDIR}
|
2004-04-25 11:34:08 -04:00
|
|
|
.elif ${FLAVOR:L} == "xforms"
|
|
|
|
LIB_DEPENDS+= forms.1::x11/xforms
|
2006-07-05 15:35:18 -04:00
|
|
|
WANTLIB+= Xpm flimage jpeg
|
|
|
|
CONFIGURE_ARGS= --with-frontend=xforms
|
2004-04-25 11:34:08 -04:00
|
|
|
.else
|
2007-09-15 19:36:43 -04:00
|
|
|
ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}"
|
2004-04-25 11:34:08 -04:00
|
|
|
.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" \
|
2006-07-05 15:35:18 -04:00
|
|
|
--disable-dependency-tracking
|
|
|
|
CONFIGURE_ENV+= PYTHON=${MODPY_BIN}
|
2004-04-25 11:34:08 -04:00
|
|
|
|
|
|
|
# Necessary because of compilation error. See:
|
|
|
|
# http://www.boost.org/libs/graph/doc/trouble_shooting.html
|
|
|
|
CXXFLAGS+= -ftemplate-depth-30
|
|
|
|
|
|
|
|
INSTALL_TARGET= install-strip
|
1998-07-12 03:08:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|