1999-05-03 04:04:20 +00:00
|
|
|
# New ports collection makefile for: ja-latex2html
|
|
|
|
# Date created: 3 Apr 1999
|
|
|
|
# Whom: Sugimoto Sadahiro <ixtl@utmc.or.jp>
|
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1999-05-03 04:04:20 +00:00
|
|
|
#
|
2000-05-29 03:11:35 +00:00
|
|
|
# Default image format is PNG.
|
|
|
|
# If you prefer GIF to PNG, define WITH_GIF (`make -DWITH_GIF`).
|
1999-05-03 04:04:20 +00:00
|
|
|
|
2000-04-11 14:15:53 +00:00
|
|
|
PORTNAME= latex2html
|
|
|
|
PORTVERSION= ${VERSION}j${JP_VERSION}
|
1999-05-03 04:04:20 +00:00
|
|
|
CATEGORIES= japanese textproc
|
2000-05-29 03:11:35 +00:00
|
|
|
MASTER_SITES= http://www.topstudio.co.jp/~kmuto/debian/private/dists/unstable/contrib/source/
|
|
|
|
DISTNAME= jlatex2html_${VERSION}+${JP_VERSION}.orig
|
|
|
|
|
|
|
|
PATCH_SITES= http://www.topstudio.co.jp/~kmuto/software/latex2html/patch/99-1/
|
|
|
|
PATCHFILES= jlatex2html-${VERSION}+${JP_VERSION}.dif.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
1999-05-03 04:04:20 +00:00
|
|
|
|
|
|
|
MAINTAINER= ixtl@utmc.or.jp
|
|
|
|
|
2000-05-29 03:11:35 +00:00
|
|
|
RUN_DEPENDS= platex:${PORTSDIR}/japanese/platex-euc \
|
|
|
|
dvips:${PORTSDIR}/japanese/dvipsk-vflib \
|
|
|
|
gs:${PORTSDIR}/japanese/vfghostscript55 \
|
|
|
|
anytopnm:${PORTSDIR}/graphics/netpbm
|
1999-05-03 04:04:20 +00:00
|
|
|
|
2000-05-29 03:11:35 +00:00
|
|
|
.ifndef WITH_GIF
|
|
|
|
RUN_DEPENDS+= ${X11BASE}/bin/pnmtopng:${PORTSDIR}/graphics/pnmtopng
|
1999-05-03 04:04:20 +00:00
|
|
|
.endif
|
|
|
|
|
2000-05-29 03:11:35 +00:00
|
|
|
VERSION= 99.1
|
|
|
|
JP_VERSION= 3.01
|
2000-04-11 14:15:53 +00:00
|
|
|
|
2000-05-29 03:11:35 +00:00
|
|
|
WRKSRC= ${WRKDIR}/latex2html
|
1999-05-03 04:04:20 +00:00
|
|
|
USE_PERL5= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2000-05-29 03:11:35 +00:00
|
|
|
L2HDIR= ${PREFIX}/share/latex2html
|
1999-07-05 16:32:44 +00:00
|
|
|
|
1999-05-03 04:04:20 +00:00
|
|
|
post-patch:
|
2000-05-29 03:11:35 +00:00
|
|
|
.for f in configure-pstoimg latex2html latex2html.config \
|
|
|
|
ps2img-n pstoimg pstoimg_nopipes
|
|
|
|
${PERL} -e "s:\\\$$ENV{'L2HMODULE'}/user:${L2HDIR}:" \
|
|
|
|
-pi ${WRKSRC}/$f
|
|
|
|
.endfor
|
|
|
|
.for f in configure-pstoimg install-test latex2html makemap \
|
|
|
|
ps2img-n pstoimg pstoimg_nopipes texexpand
|
|
|
|
${PERL} -e "s:^\#!/usr/local/bin/perl:\#!${PERL}:" \
|
|
|
|
-pi ${WRKSRC}/$f
|
|
|
|
.endfor
|
|
|
|
${PERL} -e "s:^use lib \"/usr/local/share/latex2html\":use lib \'${L2HDIR}\':" \
|
|
|
|
${PERL} -e "s:/usr/local/share/latex2html:${L2HDIR}:" \
|
|
|
|
-pi ${WRKSRC}/texexpand
|
|
|
|
.ifdef WITH_GIF
|
|
|
|
${PERL} -pi -e "s|IMAGE_TYPE=.*;|IMAGE_TYPE='gif';|" \
|
|
|
|
${WRKSRC}/latex2html.config
|
1999-05-03 04:04:20 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2000-05-29 03:11:35 +00:00
|
|
|
${MKDIR} ${L2HDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/local.pm ${FILESDIR}/DBM.tst.db \
|
|
|
|
${FILESDIR}/TEST2.TMP ${L2HDIR}
|
|
|
|
.for dir in IndicTeX-HTML XyMTeX-HTML cweb2html docs/changebar \
|
|
|
|
docs/hthtml docs/psfiles docs example foilhtml icon-dos icons.gif \
|
|
|
|
icons.png makeseg styles tests texinputs versions
|
|
|
|
${CP} -R ${WRKSRC}/${dir} ${L2HDIR}
|
|
|
|
.endfor
|
|
|
|
.for prog in Override.pm configure-pstoimg install-test latex2html \
|
|
|
|
makemap ps2img-n pstoimg pstoimg_nopipes texexpand
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${prog} ${L2HDIR}
|
|
|
|
.endfor
|
|
|
|
.for file in .dvipsrc Changes FAQ MANIFEST README README.dvips \
|
|
|
|
README.patch TODO dot.latex2html-init latex2html.config readme.hthtml
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${L2HDIR}
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${PREFIX}/share/texmf/tex/latex/latex2html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/texinputs/* ${PREFIX}/share/texmf/tex/latex/latex2html
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/latex2html ${PREFIX}/bin
|
1999-05-03 04:04:20 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|