2012-10-07 15:59:39 +02:00
|
|
|
# Created by: Klemm <andreas@klemm.gtn.com>
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1996-10-15 22:49:27 +02:00
|
|
|
|
2000-04-09 19:50:59 +02:00
|
|
|
PORTNAME= lyx
|
2011-07-05 00:01:48 +02:00
|
|
|
PORTVERSION= ${MAJOR_VERSION}.${MINOR_VERSION}
|
2010-06-14 20:11:27 +02:00
|
|
|
CATEGORIES= print editors
|
|
|
|
MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/${MAJOR_VERSION}.x/ \
|
|
|
|
http://www-ftp.lip6.fr/ftp/pub/lyx/stable/${MAJOR_VERSION}.x/ \
|
|
|
|
ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/${MAJOR_VERSION}.x/ \
|
|
|
|
ftp://ftp.ntua.gr/pub/X11/LyX/stable/${MAJOR_VERSION}.x/ \
|
|
|
|
http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/${MAJOR_VERSION}.x/ \
|
|
|
|
ftp://ftp.chg.ru/pub/X11/lyx/stable/${MAJOR_VERSION}.x/
|
1996-10-15 22:49:27 +02:00
|
|
|
|
2011-08-28 20:04:48 +02:00
|
|
|
MAINTAINER= rakuco@FreeBSD.org
|
2011-07-05 00:01:48 +02:00
|
|
|
COMMENT= Document processor interfaced with LaTeX (nearly WYSIWYG)
|
2002-09-20 05:25:03 +02:00
|
|
|
|
2010-09-25 04:17:08 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-01-31 14:38:42 +01:00
|
|
|
LIB_DEPENDS= boost_regex:${PORTSDIR}/devel/boost-libs \
|
2011-09-09 16:44:32 +02:00
|
|
|
mythes-1.2.0:${PORTSDIR}/textproc/mythes
|
2011-07-05 00:01:48 +02:00
|
|
|
|
|
|
|
CONFLICTS= lyx-1.[0-9]*
|
|
|
|
MAJOR_VERSION= 2.0
|
2013-05-09 22:27:24 +02:00
|
|
|
MINOR_VERSION= 6
|
2010-06-14 20:11:27 +02:00
|
|
|
|
2011-07-05 00:01:48 +02:00
|
|
|
USE_XZ= yes
|
2002-09-20 05:25:03 +02:00
|
|
|
USE_GMAKE= yes
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= corelib gui moc_build uic_build rcc_build
|
2012-01-29 01:03:17 +01:00
|
|
|
USE_GNOME= desktopfileutils
|
2010-06-14 20:11:27 +02:00
|
|
|
USE_PYTHON= yes
|
2012-02-07 14:29:00 +01:00
|
|
|
USE_PERL5= yes
|
2005-09-13 07:53:16 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2011-09-09 16:44:32 +02:00
|
|
|
CONFIGURE_ARGS= --without-included-boost \
|
|
|
|
--without-included-mythes \
|
2010-06-14 20:11:27 +02:00
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
|
|
|
--with-extra-prefix=${LOCALBASE}
|
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-09-13 07:53:16 +02:00
|
|
|
|
2010-06-14 20:11:27 +02:00
|
|
|
MAN1= lyx.1 lyxclient.1 tex2lyx.1
|
2006-04-17 06:25:54 +02:00
|
|
|
|
2012-12-25 17:28:34 +01:00
|
|
|
OPTIONS_DEFINE= ASPELL ENCHANT HUNSPELL NLS
|
|
|
|
OPTIONS_DEFAULT= HUNSPELL NLS
|
|
|
|
ENCHANT_DESC= Spell checking using Enchant
|
2007-07-06 22:29:55 +02:00
|
|
|
|
2010-06-14 20:11:27 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-01-20 20:01:04 +01:00
|
|
|
|
2012-12-25 17:28:34 +01:00
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
2011-09-09 16:44:32 +02:00
|
|
|
LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
|
2007-05-28 23:05:34 +02:00
|
|
|
.else
|
2011-09-09 16:44:32 +02:00
|
|
|
CONFIGURE_ARGS+= --without-aspell
|
2007-05-28 23:05:34 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-25 17:28:34 +01:00
|
|
|
.if ${PORT_OPTIONS:MENCHANT}
|
2011-09-09 16:44:32 +02:00
|
|
|
LIB_DEPENDS+= enchant.1:${PORTSDIR}/textproc/enchant
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-enchant
|
|
|
|
.endif
|
|
|
|
|
2012-12-25 17:28:34 +01:00
|
|
|
.if ${PORT_OPTIONS:MHUNSPELL}
|
2011-09-09 16:44:32 +02:00
|
|
|
LIB_DEPENDS+= hunspell-1.3.0:${PORTSDIR}/textproc/hunspell
|
2007-05-28 23:05:34 +02:00
|
|
|
.else
|
2011-09-09 16:44:32 +02:00
|
|
|
CONFIGURE_ARGS+= --without-hunspell
|
1998-08-01 11:07:02 +02:00
|
|
|
.endif
|
2002-08-01 16:24:58 +02:00
|
|
|
|
2012-12-25 17:28:34 +01:00
|
|
|
.if empty(PORT_OPTIONS:MNLS)
|
2010-06-14 20:11:27 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2005-09-13 07:53:16 +02:00
|
|
|
.else
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2010-06-14 20:11:27 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
2005-09-13 07:53:16 +02:00
|
|
|
.endif
|
2003-02-18 20:22:06 +01:00
|
|
|
|
2010-06-14 20:11:27 +02:00
|
|
|
post-install:
|
2012-01-29 01:03:17 +01:00
|
|
|
# Manually install the 48x48 icon and .desktop file.
|
|
|
|
# Will not be needed in the 2.1 series, see LyX tickets 2820 and 7919.
|
2012-12-25 17:28:34 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/icons/hicolor/48x48/apps
|
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/images/lyx.png ${PREFIX}/share/icons/hicolor/48x48/apps
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/lyx.desktop ${PREFIX}/share/applications
|
2012-01-29 01:03:17 +01:00
|
|
|
${LOCALBASE}/bin/update-desktop-database --quiet
|
|
|
|
|
2010-06-14 20:11:27 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-02-18 20:22:06 +01:00
|
|
|
|
2010-06-14 20:11:27 +02:00
|
|
|
.include <bsd.port.mk>
|