aboutsummaryrefslogtreecommitdiff
path: root/print/dvi2xx/Makefile
blob: 3d970f112647fe6fae8d0b005236ea02c0ac2746 (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
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    dvi2xx
# Version required:     0.51alpha9
# Date created:         14 October 1994
# Whom:                 jmz
#
# $Id: Makefile,v 1.10 1996/07/04 21:59:26 gpalmer Exp $
#

DISTNAME=	dvi2xx
PKGNAME=	dvi2xx-0.51a9
DISTFILES=	dvi2xx.tar.gz
CATEGORIES=	print

MAINTAINER=	jmz@FreeBSD.ORG

#other equivalent sites: ftp.shsu.edu ftp.dante.de
CTAN?=		ftp.tex.ac.uk

do-fetch:
	@if [ ! -d ${DISTDIR} ]; then ${MKDIR} -p ${DISTDIR}; fi
	@(cd ${DISTDIR}; \
	 if [ ! -f ${DISTFILES} -a ! -f `${BASENAME} ${DISTFILES}` ]; then \
	   if [ -h ${DISTFILES} -o -h `${BASENAME} ${DISTFILES}` ]; then \
	     ${ECHO_MSG} ">> ${DISTDIR}/${DISTFILES} is a broken symlink."; \
	     ${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \
	     ${ECHO_MSG} ">> Please correct this problem and try again."; \
	     exit 1; \
	   fi ; \
	   ${ECHO_MSG} ">> ${DISTFILES} doesn't seem to exist on this system."; \
	   ${ECHO_MSG} ">> Attempting to fetch from ${CTAN}."; \
	   if ${FETCH_CMD} -h ${CTAN} -c /tex-archive/dviware -f ${DISTFILES}; then \
	     exit 0; \
	   fi; \
	   ${ECHO_MSG} ">> Couldn't fetch it - please try to retreive this";\
	   ${ECHO_MSG} ">> port manually into ${DISTDIR} and try again."; \
	   exit 1; \
	 fi)


pre-install:
	@${MKDIR} ${PREFIX}/lib/dvi2xx
	@(cd ${WRKSRC}; install -m 755 -c MakeTeXPK ${PREFIX}/bin)
	@(cd ${WRKSRC}; install -c -m 644 2up.sty  graybox.sty lj3-filter \
	  printcap.sample sample2.tex testpage.tex ${PREFIX}/lib/dvi2xx/)

.include <bsd.port.mk>