1995-04-15 00:34:11 -04:00
|
|
|
# New ports collection makefile for: latex
|
|
|
|
# Version required: ?
|
|
|
|
# Date created: 29 September 1994
|
|
|
|
# Whom: jmz
|
|
|
|
#
|
1999-06-08 19:10:52 -04:00
|
|
|
# $Id: Makefile,v 1.35 1998/02/09 21:29:17 jmz Exp $
|
1995-04-15 00:34:11 -04:00
|
|
|
#
|
1997-11-10 06:23:41 -05:00
|
|
|
|
1999-06-08 19:10:52 -04:00
|
|
|
VERSION= 99.06
|
1995-04-15 00:34:11 -04:00
|
|
|
DISTNAME= latex
|
1995-06-27 08:56:00 -04:00
|
|
|
PKGNAME= latex2e-${VERSION}
|
1997-12-14 21:19:23 -05:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ftp://ftp.cdrom.com/pub/tex/package/
|
1995-06-27 08:56:00 -04:00
|
|
|
DISTFILES= latex_mf-${VERSION}.tar.gz latex_tfm-${VERSION}.tar.gz \
|
1999-06-08 19:10:52 -04:00
|
|
|
latex_base-${VERSION}.tar.gz latex_tools-${VERSION}.tar.gz \
|
|
|
|
latex_graphics-${VERSION}.tar.gz latex_psnfss-${VERSION}.tar.gz
|
1995-04-15 00:34:11 -04:00
|
|
|
|
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
|
|
|
|
1995-09-23 16:24:13 -04:00
|
|
|
BUILD_DEPENDS= tex:${PORTSDIR}/print/tex
|
|
|
|
RUN_DEPENDS= tex:${PORTSDIR}/print/tex
|
1995-04-15 00:34:11 -04:00
|
|
|
|
1999-06-08 19:10:52 -04:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
1997-11-10 06:23:41 -05:00
|
|
|
MANUAL_PACKAGE_BUILD= has to be built with tex port
|
1995-10-03 17:19:24 -04:00
|
|
|
|
1995-04-20 20:21:41 -04:00
|
|
|
do-build:
|
1999-06-08 19:10:52 -04:00
|
|
|
@(cd ${WRKSRC}/base; tex --ini unpack.ins)
|
|
|
|
@(cd ${WRKSRC}/base; TEXFONTS=${WRKSRC}/tfm:; export TEXFONTS; \
|
1997-02-09 21:08:55 -05:00
|
|
|
tex --ini latex.ltx </dev/null)
|
1999-06-08 19:10:52 -04:00
|
|
|
@(cd ${WRKSRC}/tools; TEXFORMATS=${WRKSRC}/base:; \
|
1994-12-25 19:23:32 -05:00
|
|
|
TEXINPUTS=${WRKSRC}/base: export TEXFORMATS TEXINPUTS;\
|
1998-02-09 16:29:17 -05:00
|
|
|
ln -sf ${PREFIX}/bin/tex latex; ./latex tools.ins)
|
1999-06-08 19:10:52 -04:00
|
|
|
@(cd ${WRKSRC}/graphics; TEXFORMATS=${WRKSRC}/base:; \
|
|
|
|
TEXINPUTS=${WRKSRC}/base: export TEXFORMATS TEXINPUTS;\
|
|
|
|
ln -sf ${PREFIX}/bin/tex latex; ./latex graphics.ins)
|
|
|
|
@(cd ${WRKSRC}/psnfss; TEXFORMATS=${WRKSRC}/base:; \
|
|
|
|
TEXINPUTS=${WRKSRC}/base: export TEXFORMATS TEXINPUTS;\
|
|
|
|
chmod u+w mh2scr.enc;\
|
|
|
|
ln -sf ${PREFIX}/bin/tex latex; for f in adobe charter\
|
|
|
|
mathtime psfonts alucida lucidabr nimbus utopia; do \
|
|
|
|
./latex $$f.ins; done)
|
1994-09-29 04:56:50 -04:00
|
|
|
|
1999-06-08 19:10:52 -04:00
|
|
|
do-install:
|
|
|
|
@(${INSTALL_DATA} ${WRKSRC}/base/latex.fmt ${PREFIX}/share/texmf/web2c/)
|
|
|
|
@(cd ${WRKSRC}/tfm; ${INSTALL_DATA} *.tfm ${PREFIX}/share/texmf/fonts/tfm)
|
|
|
|
@(cd ${WRKSRC}/mf; ${INSTALL_DATA} *.mf ${PREFIX}/share/texmf/metafont)
|
1997-02-09 21:08:55 -05:00
|
|
|
@mkdir -p ${PREFIX}/share/texmf/tex/latex
|
1994-10-11 23:00:12 -04:00
|
|
|
@(cd ${WRKSRC}/base; for f in latexbug.tex testpage.tex \
|
1994-09-29 04:56:50 -04:00
|
|
|
lablst.tex idx.tex nfssfont.tex small2e.tex sample2e.tex docstrip.tex \
|
1997-07-26 11:00:43 -04:00
|
|
|
*.cls *.clo *.sty *.fd *.def *.cfg ; do \
|
1999-06-08 19:10:52 -04:00
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/tex/latex; fi; done)
|
1997-02-09 21:08:55 -05:00
|
|
|
@mkdir -p ${PREFIX}/share/texmf/makeindx;
|
1999-06-08 19:10:52 -04:00
|
|
|
@(cd ${WRKSRC}/base; ${INSTALL_DATA} *.ist ${PREFIX}/share/texmf/makeindx)
|
|
|
|
@(cd ${WRKSRC}/tools; for f in *.sty *.tex; do \
|
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/tex/latex; fi; done)
|
|
|
|
@(cd ${WRKSRC}/graphics; for f in *.sty *.tex; do \
|
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/tex/latex; fi; done)
|
|
|
|
@(cd ${WRKSRC}/psnfss; for f in *.sty *.tex; do \
|
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/tex/latex; fi; done)
|
|
|
|
@(cd ${PREFIX}/bin; ${RM} -f latex; ln -s tex latex)
|
1997-02-09 21:08:55 -05:00
|
|
|
@(mkdir -p ${PREFIX}/share/texmf/documentation)
|
1995-06-24 12:35:58 -04:00
|
|
|
@(cd ${WRKSRC}/base; for f in *.dtx ltx3info.tex source2e.tex *.fdd ltnews*.tex *guide.tex; do \
|
1999-06-08 19:10:52 -04:00
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/documentation; fi; done)
|
|
|
|
@(cd ${WRKSRC}/tools; for f in *.dtx; do \
|
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/documentation; fi; done)
|
|
|
|
@(cd ${WRKSRC}/graphics; for f in *.dtx; do \
|
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/documentation; fi; done)
|
|
|
|
@(cd ${WRKSRC}/psnfss; for f in *.dtx; do \
|
|
|
|
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/documentation; fi; done)
|
|
|
|
@(cd ${PREFIX}/bin; ${RM} -f latex; ln -s tex latex)
|
1994-12-25 19:23:32 -05:00
|
|
|
|
1994-09-29 04:56:50 -04:00
|
|
|
.include <bsd.port.mk>
|