2006-10-07 23:45:29 +02:00
|
|
|
# New ports collection makefile for: lyx
|
|
|
|
# Date created: Sa 12 Okt 1996 19:20:51 MET DST
|
|
|
|
# Whom: 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
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
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)
|
|
|
|
|
2006-11-08 01:59:33 +01:00
|
|
|
LIB_DEPENDS= boost_regex:${PORTSDIR}/devel/boost \
|
|
|
|
qt-mt:${PORTSDIR}/x11-toolkits/qt33
|
2006-10-07 23:45:29 +02:00
|
|
|
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/texcm-ttf/cmex10.ttf:${PORTSDIR}/x11-fonts/texcm-ttf
|
|
|
|
|
2007-07-29 00:26:34 +02:00
|
|
|
BROKEN= Does not build
|
|
|
|
|
2006-10-07 23:45:29 +02:00
|
|
|
OPTIONS= ASPELL "Utilize ASPELL library" on \
|
|
|
|
ISPELL "Depend on ISPELL as well" off
|
|
|
|
.if defined(LANG) && ${LANG:C/_.*//} == "ja"
|
2006-11-08 01:59:33 +01:00
|
|
|
OPTIONS+= JATETEX "Use pLaTeX (Japanese LaTeX)" ON
|
2006-10-07 23:45:29 +02:00
|
|
|
.else
|
2006-11-08 01:59:33 +01:00
|
|
|
OPTIONS+= JATETEX "Use pLaTeX (Japanese LaTeX)" OFF
|
2005-12-27 22:38:56 +01:00
|
|
|
.endif
|
2004-05-28 03:17:40 +02:00
|
|
|
|
2006-11-08 01:59:33 +01:00
|
|
|
ALL_TARGET= all check
|
2004-05-28 03:17:40 +02:00
|
|
|
USE_GNOME= gnometarget 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
|
2006-11-08 01:59:33 +01:00
|
|
|
EXTRACT_AFTER_ARGS=| ${TAR} -xf - --exclude ${PORTNAME}-${PORTVERSION}/intl/*.[ch] --exclude ${PORTNAME}-${PORTVERSION}/boost
|
2005-12-27 22:38:56 +01:00
|
|
|
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
|
2006-11-08 01:59:33 +01:00
|
|
|
--without-included-boost \
|
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}"
|
2006-10-07 23:45:29 +02:00
|
|
|
CONFIGURE_ENV+= LDFLAGS=${PTHREAD_LIBS}
|
|
|
|
CFLAGS= ${PTHREAD_CFLAGS}
|
2003-02-19 01:59:16 +01:00
|
|
|
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
|
|
|
|
AUTOHEADER="${TRUE}"
|
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-11-08 01:59:33 +01:00
|
|
|
post-patch:
|
|
|
|
# Removing mention of the bundled boost
|
|
|
|
${REINPLACE_CMD} -e 's, boost/[^ ]*Makefile,,g' ${WRKSRC}/configure
|
|
|
|
${REINPLACE_CMD} -e 's,detail/nullstream,utils/nullstream,' \
|
|
|
|
${WRKSRC}/src/pch.h ${WRKSRC}/src/support/pch.h \
|
|
|
|
${WRKSRC}/src/support/debugstream.h
|
|
|
|
${REINPLACE_CMD} -e 's,boost/regex\.hpp,boost/cregex.hpp,' \
|
|
|
|
${WRKSRC}/src/support/filetools.C
|
|
|
|
${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \
|
|
|
|
${WRKSRC}/src/support/tests/test_*
|
|
|
|
|
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}
|
|
|
|
.include <bsd.port.pre.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
|
|
|
|
2006-10-07 23:45:29 +02:00
|
|
|
.if defined(WITH_ASPELL)
|
|
|
|
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
|
|
|
|
|
|
|
|
.if defined(WITH_ISPELL)
|
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
|
2006-11-08 01:59:33 +01:00
|
|
|
.if defined(WITH_JATETEX)
|
|
|
|
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
|
|
|
|
2006-10-07 23:45:29 +02:00
|
|
|
.if ${OSVERSION} < 500035
|
|
|
|
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30
|
2006-11-08 01:59:33 +01:00
|
|
|
.elif ${OSVERSION} >= 700007 && ${ARCH} == i386 && ${CXX} == c++
|
|
|
|
BROKEN= C++ compiler seg-faults, try using a different one and report to ${MAINTAINER}
|
2006-10-07 23:45:29 +02:00
|
|
|
.endif
|
2000-07-05 16:58:12 +02:00
|
|
|
|
2004-05-28 03:17:40 +02:00
|
|
|
.include <bsd.port.post.mk>
|