aboutsummaryrefslogtreecommitdiff
path: root/print/hyperlatex/Makefile
blob: 1d18b35537894bb348d36f6bcdbbfe1172d5c29c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# New ports collection makefile for:	Hyperlatex
# Date created:				2 August 1994
# Whom:					Robert Withrow <witr@rwwa.com>
#
# $FreeBSD$
#

PORTNAME=	Hyperlatex
PORTVERSION=	2.5
PORTREVISION=	1
CATEGORIES=	print
MASTER_SITES=	ftp://ftp.cs.uni-magdeburg.de/pub/ipe/

MAINTAINER=	witr@rwwa.com
COMMENT=	Produce HTML and printed documents from LaTeX source

BUILD_DEPENDS=	emacs:${PORTSDIR}/editors/emacs20
RUN_DEPENDS=	emacs:${PORTSDIR}/editors/emacs20 \
		latex:${PORTSDIR}/print/latex

LATEX_DIR=	${PREFIX}/share/texmf/tex/latex
HYPERLATEX_DIR=	${PREFIX}/share/texmf/tex/latex/hyperlatex

do-build:
	cd ${WRKSRC}; emacs -batch -q -no-site-file -l hyperlatex.el -f hyperlatex-compile

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/hyperlatex ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/ps2gif ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/hyperlatex.sty ${LATEX_DIR}
	${MKDIR} ${HYPERLATEX_DIR}
	cd ${WRKSRC}; for f in *.el *.elc *.hlx *.xbm *.awk ; do \
	    if [ -f $$f ]; then ${INSTALL_DATA} $$f ${HYPERLATEX_DIR}; fi; done

.include <bsd.port.mk>