# New ports collection makefile for: latex # Date created: 29 September 1994 # Whom: jmz # # $FreeBSD$ # PORTNAME= latex2e PORTVERSION= 2003.12 PORTREVISION= 1 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= jmz DISTFILES= latex_mf-${PORTVERSION}.tar.gz latex_tfm-${PORTVERSION}.tar.gz \ latex_base-${PORTVERSION}.tar.gz latex_tools-${PORTVERSION}.tar.gz \ latex_graphics-${PORTVERSION}.tar.gz latex_psnfss-${PORTVERSION}.tar.gz MAINTAINER= jmz@FreeBSD.org COMMENT= TeX macro package BUILD_DEPENDS= tex:${PORTSDIR}/print/tex RUN_DEPENDS= tex:${PORTSDIR}/print/tex DIST_SUBDIR= tex CONFLICTS= teTeX* NO_WRKSUBDIR= yes do-build: @${RM} ${WRKSRC}/tfm/dummy.tfm ${WRKSRC}/mf/cmex9.mf @(cd ${WRKSRC}/base; TEXINPUTS=${WRKSRC}/base: export TEXINPUT; tex --ini unpack.ins) @(cd ${WRKSRC}/base; TEXINPUTS=${WRKSRC}/base: TEXFONTS=${WRKSRC}/tfm:; export TEXFONTS TEXINPUT; \ tex --ini latex.ltx ${PREFIX}/share/texmf/tex/latex/graphics.cfg;\ ${ECHO_CMD} '\ExecuteOptions{dvips}' >${PREFIX}/share/texmf/tex/latex/color.cfg) @(cd ${WRKSRC}/psnfss; for f in *.sty *.tex; do \ if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/tex/latex; fi; done;\ tar cf - tex fonts | tar -C ${PREFIX}/share/texmf/ -xf -) @(cd ${PREFIX}/bin; ${RM} -f latex; ${LN} -s tex latex) @(${MKDIR} ${PREFIX}/share/texmf/documentation) @(cd ${WRKSRC}/base; for f in *.dtx ltx3info.tex source2e.tex *.fdd ltnews*.tex *guide.tex; do \ 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 *pfd; do \ if [ -f $$f ]; then ${INSTALL_DATA} $$f ${PREFIX}/share/texmf/documentation; fi; done) @(cd ${PREFIX}/bin; ${RM} -f latex; ${LN} -s tex latex) .include