1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/print/hyperlatex/Makefile

43 lines
1.3 KiB
Makefile

# Created by: Robert Withrow <witr@rwwa.com>
# $FreeBSD$
PORTNAME= Hyperlatex
DISTVERSION= 2.9a
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= SF/${PORTNAME:L}/${PORTNAME:L}/2.9a
MAINTAINER= ports@FreeBSD.org
COMMENT= Produce HTML and printed documents from LaTeX source
RUN_DEPENDS= ppmtogif:${PORTSDIR}/graphics/netpbm
USE_TEX= latex
USE_EMACS= yes
EMACS_PORT_NAME?= emacs21
LATEX_DIR= ${PREFIX}/share/texmf/tex/latex/hyperlatex
HYPERLATEX_DIR= ${PREFIX}/share/hyperlatex
NO_STAGE= yes
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>