|
Lines 26-51
Link Here
|
| 26 |
MAINTAINER= yokota@res.otaru-uc.ac.jp |
26 |
MAINTAINER= yokota@res.otaru-uc.ac.jp |
| 27 |
COMMENT= Document processor interfaced with LaTeX (nearly WYSIWYG) |
27 |
COMMENT= Document processor interfaced with LaTeX (nearly WYSIWYG) |
| 28 |
|
28 |
|
| 29 |
LIB_DEPENDS= qt-mt:${PORTSDIR}/x11-toolkits/qt33 |
29 |
LIB_DEPENDS= boost_regex:${PORTSDIR}/devel/boost \ |
|
|
30 |
qt-mt:${PORTSDIR}/x11-toolkits/qt33 |
| 30 |
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/texcm-ttf/cmex10.ttf:${PORTSDIR}/x11-fonts/texcm-ttf |
31 |
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/texcm-ttf/cmex10.ttf:${PORTSDIR}/x11-fonts/texcm-ttf |
| 31 |
|
32 |
|
| 32 |
CONFLICTS= lyx-* |
33 |
CONFLICTS= lyx-* |
| 33 |
OPTIONS= ASPELL "Utilize ASPELL library" on \ |
34 |
OPTIONS= ASPELL "Utilize ASPELL library" on \ |
| 34 |
ISPELL "Depend on ISPELL as well" off |
35 |
ISPELL "Depend on ISPELL as well" off |
| 35 |
.if defined(LANG) && ${LANG:C/_.*//} == "ja" |
36 |
.if defined(LANG) && ${LANG:C/_.*//} == "ja" |
| 36 |
OPTIONS+= JA_TETEX "Use pLaTeX (Japanese LaTeX)" ON |
37 |
OPTIONS+= JATETEX "Use pLaTeX (Japanese LaTeX)" ON |
| 37 |
.else |
38 |
.else |
| 38 |
OPTIONS+= JA_TETEX "Use pLaTeX (Japanese LaTeX)" OFF |
39 |
OPTIONS+= JATETEX "Use pLaTeX (Japanese LaTeX)" OFF |
| 39 |
.endif |
40 |
.endif |
| 40 |
|
41 |
|
|
|
42 |
ALL_TARGET= all check |
| 41 |
USE_GNOME= gnometarget lthack |
43 |
USE_GNOME= gnometarget lthack |
| 42 |
USE_PERL5= yes |
44 |
USE_PERL5= yes |
| 43 |
USE_PYTHON= yes |
45 |
USE_PYTHON= yes |
| 44 |
USE_GETTEXT= yes |
46 |
USE_GETTEXT= yes |
| 45 |
USE_GMAKE= yes |
47 |
USE_GMAKE= yes |
| 46 |
GNU_CONFIGURE= yes |
48 |
GNU_CONFIGURE= yes |
| 47 |
#EXTRACT_AFTER_ARGS=| ${TAR} -xf - --exclude ${PORTNAME}-${PORTVERSION}/intl/*.[ch] |
49 |
EXTRACT_AFTER_ARGS=| ${TAR} -xf - --exclude ${PORTNAME}-${PORTVERSION}/intl/*.[ch] --exclude ${PORTNAME}-${PORTVERSION}/boost |
| 48 |
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \ |
50 |
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \ |
|
|
51 |
--without-included-boost \ |
| 49 |
--with-extra-inc="${LOCALBASE}/include" \ |
52 |
--with-extra-inc="${LOCALBASE}/include" \ |
| 50 |
--with-frontend=qt |
53 |
--with-frontend=qt |
| 51 |
CONFIGURE_ENV+= LDFLAGS=${PTHREAD_LIBS} |
54 |
CONFIGURE_ENV+= LDFLAGS=${PTHREAD_LIBS} |
|
Lines 57-62
Link Here
|
| 57 |
# Make uic stay off the lawn |
60 |
# Make uic stay off the lawn |
| 58 |
MAKE_ENV= TMPDIR=/tmp |
61 |
MAKE_ENV= TMPDIR=/tmp |
| 59 |
|
62 |
|
|
|
63 |
post-patch: |
| 64 |
# Removing mention of the bundled boost |
| 65 |
${REINPLACE_CMD} -e 's, boost/[^ ]*Makefile,,g' ${WRKSRC}/configure |
| 66 |
${REINPLACE_CMD} -e 's,detail/nullstream,utils/nullstream,' \ |
| 67 |
${WRKSRC}/src/pch.h ${WRKSRC}/src/support/pch.h \ |
| 68 |
${WRKSRC}/src/support/debugstream.h |
| 69 |
${REINPLACE_CMD} -e 's,boost/regex\.hpp,boost/cregex.hpp,' \ |
| 70 |
${WRKSRC}/src/support/filetools.C |
| 71 |
${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \ |
| 72 |
${WRKSRC}/src/support/tests/test_* |
| 73 |
|
| 60 |
post-configure: |
74 |
post-configure: |
| 61 |
# Removing explicit linking with -lc |
75 |
# Removing explicit linking with -lc |
| 62 |
${REINPLACE_CMD} -e 's,-lc ,,' ${WRKSRC}/*/Makefile |
76 |
${REINPLACE_CMD} -e 's,-lc ,,' ${WRKSRC}/*/Makefile |
|
Lines 87-101
Link Here
|
| 87 |
.endif |
101 |
.endif |
| 88 |
|
102 |
|
| 89 |
# Choose appropriate settings for each LaTeX |
103 |
# Choose appropriate settings for each LaTeX |
| 90 |
.if defined(WITH_JA_TETEX) |
104 |
.if defined(WITH_JATETEX) |
|
|
105 |
BUILD_DEPENDS+= latex:${PORTSDIR}/japanese/teTeX |
| 91 |
RUN_DEPENDS+= latex:${PORTSDIR}/japanese/teTeX |
106 |
RUN_DEPENDS+= latex:${PORTSDIR}/japanese/teTeX |
| 92 |
#PATCHFILES+= patch-platex-jpnonly-${PORTVERSION}.diff |
|
|
| 93 |
.else |
107 |
.else |
|
|
108 |
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX |
| 94 |
RUN_DEPENDS+= latex:${PORTSDIR}/print/teTeX |
109 |
RUN_DEPENDS+= latex:${PORTSDIR}/print/teTeX |
| 95 |
.endif |
110 |
.endif |
| 96 |
|
111 |
|
| 97 |
.if ${OSVERSION} < 500035 |
112 |
.if ${OSVERSION} < 500035 |
| 98 |
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30 |
113 |
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30 |
|
|
114 |
.elif ${OSVERSION} >= 700007 && ${ARCH} == i386 && ${CXX} == c++ |
| 115 |
BROKEN= C++ compiler seg-faults, try using a different one and report to ${MAINTAINER} |
| 99 |
.endif |
116 |
.endif |
| 100 |
|
117 |
|
| 101 |
.include <bsd.port.post.mk> |
118 |
.include <bsd.port.post.mk> |