2013-01-31 14:38:42 +01:00
|
|
|
# Created by: Andreas Klemm <andreas@klemm.gtn.com>
|
2000-07-05 16:58:12 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lyx
|
2007-02-27 16:56:11 +01:00
|
|
|
PORTVERSION= 1.4.4
|
2013-01-31 14:38:42 +01:00
|
|
|
PORTREVISION= 10
|
2005-12-27 22:38:56 +01:00
|
|
|
CATEGORIES= print chinese japanese korean
|
2006-10-07 23:45:29 +02:00
|
|
|
MASTER_SITES= ftp://cellular.phys.pusan.ac.kr/CJK-LyX/qt/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/tex/cjk-lyx/qt/ \
|
|
|
|
http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/:JPN
|
2000-07-05 16:58:12 +02:00
|
|
|
PKGNAMEPREFIX= cjk-
|
2006-10-07 23:45:29 +02:00
|
|
|
DISTNAME= CJK-LyX-qt-${PORTVERSION}
|
|
|
|
DISTFILES= ${DISTNAME}-1.src${EXTRACT_SUFX} \
|
2007-02-27 16:56:11 +01:00
|
|
|
lyx-platex-${PORTVERSION}.tar.gz:JPN
|
2005-12-27 22:38:56 +01:00
|
|
|
DIST_SUBDIR= CJK-LyX
|
2006-10-07 23:45:29 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}-1.src${EXTRACT_SUFX} \
|
|
|
|
lyx-platex-${PORTVERSION}.tar.gz
|
|
|
|
|
|
|
|
PATCH_SITES= http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/
|
|
|
|
PATCHFILES= patch-platex-${PORTVERSION}.diff
|
|
|
|
|
|
|
|
MAINTAINER= yokota@res.otaru-uc.ac.jp
|
|
|
|
COMMENT= Document processor interfaced with LaTeX (nearly WYSIWYG)
|
|
|
|
|
2009-07-28 13:45:08 +02:00
|
|
|
LIB_DEPENDS= boost_regex:${PORTSDIR}/devel/boost-libs \
|
2006-11-08 01:59:33 +01:00
|
|
|
qt-mt:${PORTSDIR}/x11-toolkits/qt33
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/texcm-ttf/cmex10.ttf:${PORTSDIR}/x11-fonts/texcm-ttf
|
2006-10-07 23:45:29 +02:00
|
|
|
|
2013-03-22 13:40:32 +01:00
|
|
|
OPTIONS_DEFINE= ASPELL ISPELL JATETEX
|
|
|
|
OPTIONS_DEFAULT= ASPELL
|
|
|
|
OPTIONS_DEFAULT+= JATETEX
|
|
|
|
JATETEX_DESC= pLaTeX (Japanese LaTeX)
|
2004-05-28 03:17:40 +02:00
|
|
|
|
2006-11-08 01:59:33 +01:00
|
|
|
ALL_TARGET= all check
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= lthack
|
2000-07-05 16:58:12 +02:00
|
|
|
USE_PERL5= yes
|
2004-05-28 03:17:40 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_GETTEXT= yes
|
2002-07-12 09:25:42 +02:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-27 22:38:56 +01:00
|
|
|
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
|
2006-10-07 23:45:29 +02:00
|
|
|
--with-extra-inc="${LOCALBASE}/include" \
|
2007-02-27 16:56:11 +01:00
|
|
|
--with-frontend=qt \
|
|
|
|
--program-prefix="${PKGNAMEPREFIX}"
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
2007-02-27 16:56:11 +01:00
|
|
|
MAN1= ${PKGNAMEPREFIX}lyx.1 ${PKGNAMEPREFIX}tex2lyx.1 ${PKGNAMEPREFIX}lyxclient.1
|
|
|
|
|
2007-08-04 13:41:30 +02:00
|
|
|
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
|
2002-03-23 10:11:48 +01:00
|
|
|
|
2006-10-07 23:45:29 +02:00
|
|
|
# Make uic stay off the lawn
|
|
|
|
MAKE_ENV= TMPDIR=/tmp
|
|
|
|
|
2007-02-27 16:56:11 +01:00
|
|
|
post-extract:
|
|
|
|
${MV} ${WRKSRC}/po/lyx.pot ${WRKSRC}/po/${PKGNAMEPREFIX}lyx.pot
|
|
|
|
|
2006-10-07 23:45:29 +02:00
|
|
|
post-configure:
|
|
|
|
# Removing explicit linking with -lc
|
|
|
|
${REINPLACE_CMD} -e 's,-lc ,,' ${WRKSRC}/*/Makefile
|
|
|
|
|
2007-02-27 16:56:11 +01:00
|
|
|
post-install:
|
2006-10-07 23:45:29 +02:00
|
|
|
@${ECHO_MSG}
|
2007-02-27 16:56:11 +01:00
|
|
|
@${ECHO_MSG} "Type \"${PKGNAMEPREFIX}lyx\" to execute the program."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "User setting folder will be created under ~/.${PKGNAMEPREFIX}lyx when ${PKGNAMEPREFIX}lyx is run for the first time."
|
2006-10-07 23:45:29 +02:00
|
|
|
@${ECHO_MSG}
|
2013-03-22 13:40:32 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2004-05-28 03:17:40 +02:00
|
|
|
|
2007-02-27 16:56:11 +01:00
|
|
|
PLIST_SUB= PKGNAMEPREFIX=${PKGNAMEPREFIX}
|
2004-05-28 03:17:40 +02:00
|
|
|
|
2013-03-22 13:40:32 +01:00
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
2006-10-07 23:45:29 +02:00
|
|
|
LIB_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
|
2002-11-17 03:20:06 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pspell \
|
|
|
|
--with-pspell-lib="${LOCALBASE}/lib" \
|
2004-05-28 03:17:40 +02:00
|
|
|
--with-pspell-include="${LOCALBASE}/include"
|
2002-07-12 09:25:42 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-22 13:40:32 +01:00
|
|
|
.if ${PORT_OPTIONS:MISPELL}
|
2004-05-28 03:17:40 +02:00
|
|
|
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
.endif
|
|
|
|
|
2006-10-07 23:45:29 +02:00
|
|
|
# Choose appropriate settings for each LaTeX
|
2013-03-22 13:40:32 +01:00
|
|
|
.if ${PORT_OPTIONS:MJATETEX}
|
2006-11-08 01:59:33 +01:00
|
|
|
BUILD_DEPENDS+= latex:${PORTSDIR}/japanese/teTeX
|
2006-10-07 23:45:29 +02:00
|
|
|
RUN_DEPENDS+= latex:${PORTSDIR}/japanese/teTeX
|
|
|
|
.else
|
2006-11-08 01:59:33 +01:00
|
|
|
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX
|
2006-10-07 23:45:29 +02:00
|
|
|
RUN_DEPENDS+= latex:${PORTSDIR}/print/teTeX
|
2002-07-12 09:25:42 +02:00
|
|
|
.endif
|
2000-07-05 16:58:12 +02:00
|
|
|
|
2013-03-22 13:40:32 +01:00
|
|
|
.include <bsd.port.mk>
|