freebsd-ports/print/hyperlatex/Makefile

46 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: Hyperlatex
# Date created: 2 August 1994
# Whom: Robert Withrow <witr@rwwa.com>
#
# $FreeBSD$
#
2000-04-09 19:50:59 +02:00
PORTNAME= Hyperlatex
PORTVERSION= 2.7
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=hyperlatex
MAINTAINER= ports@FreeBSD.org
2003-02-21 14:28:59 +01:00
COMMENT= Produce HTML and printed documents from LaTeX source
BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs
RUN_DEPENDS= emacs:${PORTSDIR}/editors/emacs \
latex:${PORTSDIR}/print/teTeX \
ppmtogif:${PORTSDIR}/graphics/netpbm
USE_REINPLACE= yes
LATEX_DIR= ${PREFIX}/share/texmf/tex/latex/hyperlatex
HYPERLATEX_DIR= ${PREFIX}/share/hyperlatex
do-configure:
@(cd ${WRKSRC} && \
${REINPLACE_CMD} -e 's|http://www.cs.uu.nl/\\~{}otfried/img/||' hlx/siteinit.hlx && \
${REINPLACE_CMD} -e 's|$$HOME/Hyperlatex/Hlx|${HYPERLATEX_DIR}|' bin/hyperlatex && \
${REINPLACE_CMD} -e '1s|^#$$|#\!/usr/bin/awk|' bin/normalize-eps.awk)
do-build:
cd ${WRKSRC}/hlx; emacs -batch -q -no-site-file -l hyperlatex.el -f hyperlatex-compile
do-install:
${MKDIR} ${HYPERLATEX_DIR}
${MKDIR} ${LATEX_DIR}
${INSTALL_SCRIPT} ${WRKSRC}/bin/hyperlatex ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/ps2image ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/normalize-eps.awk ${PREFIX}/bin/normalize-eps
${INSTALL_DATA} ${WRKSRC}/etc/hyperlatex.sty ${LATEX_DIR}
cd ${WRKSRC}/hlx; for f in *.el *.elc *.hlx *.xbm *.awk ; do \
if [ -f $$f ]; then ${INSTALL_DATA} $$f ${HYPERLATEX_DIR}; fi; done
.include <bsd.port.mk>