summaryrefslogtreecommitdiff
path: root/print/pkfonts300/Makefile
blob: 9be86bbada25647dcf9b2e4333fc565b44f3775f (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
# New ports collection makefile for: English PK fonts
# Version required:	?
# Date created:		16 Mar 1996
# Whom:			Hideaki Ohmon <ohmon@tom.sfc.keio.ac.jp>
#
# $Id: Makefile,v 1.13 1998/11/19 19:56:39 asami Exp $
#

DISTNAME=	pkfonts
PKGNAME=	pkfonts${RESOLUTION}-1.0
CATEGORIES=	print
MASTER_SITES=	ftp://ftp.tut.ac.jp/TeX/fonts/ \
		ftp://ftp.nihon-u.ac.jp/pub/.OldStockPlace/TeX/WS/font/ \
		ftp://ftp.univ-evry.fr/.04/system/OpenBSD/distfiles/pkfonts/ \
		ftp://ftp.wg.omron.co.jp/pub/tex/
DISTFILES=	pk${RESOLUTION}.tar.gz
# see below for RESOLUTION definition

DIST_SUBDIR=	pkfonts
EXTRACT_ONLY=	# extracted directly in install target
NO_BUILD=	yes
PLIST=		${PKGDIR}/${RESOLUTION}.list

.if !defined(RESOLUTION)
RESOLUTION=	300
.else
.if ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
	${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
	${RESOLUTION} != 400 && ${RESOLUTION} != 600
.BEGIN:
	@${ECHO} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
	@${ECHO} "Possible values are: 118, 240, 300, 360, 400 and 600."
	@${FALSE}
.endif
.endif

do-install:
	${MKDIR} ${PREFIX}/lib/fonts
	tar -C ${PREFIX}/lib/fonts -xzf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}

.include <bsd.port.mk>