1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/print/latex/Makefile
Jordan K. Hubbard 29342fc00f Jean-Marc Zucconi's updates to these ports.
Submitted by:	jmz
1994-10-12 03:00:12 +00:00

70 lines
2.2 KiB
Makefile

DISTFILES= latex_mf.tar.gz latex_tfm.tar.gz latex_base.tar.gz
DISTNAME= latex
FTPGET= ${WRKDIR}/ftpget
TEXDIR= ${.CURDIR}
#other equivalent sites: ftp.shsu.edu dtp.dante.de
CTAN= ftp.tex.ac.uk
pre-fetch:
@if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi
@mkdir -p ${WRKDIR}
@${SCRIPTDIR}/ftpget magic ${WRKDIR}
fetch: pre-fetch ${DISTFILES}
fetch-file:
@echo ">> ${file_out} doesn't seem to exist on this system.";
@echo ">> Attempting to fetch it from a master site.";
@${FTPGET} ${CTAN} ${ftp_dir} ${file_in} ${file_out}
@if [ ! -f ${file_out} ]; then \
echo ">> Couldn't fetch it - please try to retreive this";\
echo ">> port manually into ${DISTDIR} and try again."; \
exit 1; \
else \
echo ">> ${file_out} Fetched!" ; \
fi;
latex_base.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/macros file_in=latex/base.tar.gz file_out=$@; \
fi;)
latex_mf.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/fonts file_in=latex/mf.tar.gz file_out=$@; \
fi;)
latex_tfm.tar.gz:
@(cd ${DISTDIR}; if [ ! -f $@ ]; then \
make -f ${TEXDIR}/Makefile fetch-file FTPGET=${FTPGET} \
ftp_dir=/tex-archive/fonts file_in=latex/tfm.tar.gz file_out=$@; \
fi;)
CONFIGURE_COOKIE= ${.CURDIR}/.configure_done
build: configure
@echo "===> Building for ${DISTNAME}"
@(cd ${WRKSRC}/base; initex unpack.ins)
@(cd ${WRKSRC}/base; TEXFONTS=${WRKSRC}/tfm:; export TEXFONTS; \
initex latex.ltx)
install:
@echo "===> Installing for ${DISTNAME}"
@(/usr/bin/install -c -m 644 ${WRKSRC}/base/latex.fmt \
${PREFIX}/lib/texmf/ini/)
@(cd ${WRKSRC}/tfm; install -c -m 644 *.tfm ${PREFIX}/lib/texmf/fonts/tfm)
@(cd ${WRKSRC}/mf; install -c -m 644 *.mf ${PREFIX}/lib/texmf/mf)
@(cd ${WRKSRC}/base; for f in latexbug.tex testpage.tex \
lablst.tex idx.tex nfssfont.tex small2e.tex sample2e.tex docstrip.tex \
*.cls *.clo *.sty *.fd *.def *.cfg ; do \
if [ -f $$f ]; then install -c -m 644 $$f ${PREFIX}/lib/texmf/tex; fi; done)
@mkdir -p ${PREFIX}/lib/texmf/makeindx;
@(cd ${WRKSRC}/base; install -c -m 644 *.ist ${PREFIX}/lib/texmf/makeindx)
.include <bsd.port.mk>