blob: 6c5c15784115a19772c486ddd7ea40560c1f4a16 (
plain)
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
47
48
49
50
51
52
53
54
|
# 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.8 1998/02/07 16:33:22 max Exp $
#
DISTNAME= pkfonts
PKGNAME= pkfonts${RESOLUTION}-1.0
CATEGORIES= print
MASTER_SITES= ftp://ftp.univ-evry.fr/.04/system/OpenBSD/distfiles/pkfonts/ \
ftp://ftp.eos.hokudai.ac.jp/pub/TeX/fonts/ \
ftp://ftp.wg.omron.co.jp/pub/tex/
DISTFILES= pk${RESOLUTION}.tar.gz
# see below for RESOLUTION definition
MANUAL_PACKAGE_BUILD= RESOLUTION has to be set to 118 240 300 360 400 600
DIST_SUBDIR= pkfonts
EXTRACT_CMD= /usr/bin/true # extracted directly in install target
NO_BUILD= yes
.if !defined(RESOLUTION)
RESOLUTION= 300
RESOLUTION_UNSPECIFIED= yes
.else
.if ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
${RESOLUTION} != 400 && ${RESOLUTION} != 600
RESOLUTION_INVALID= yes
.endif
.endif
pre-fetch:
.if defined(RESOLUTION_UNSPECIFIED)
@echo "Using ${RESOLUTION}dpi English PK fonts."
@echo "Set the environment variable RESOLUTION if you want"
@echo "it to use other resolutions."
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
.elif defined(RESOLUTION_INVALID)
@echo "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
@/usr/bin/false
.endif
do-install:
${MKDIR} ${PREFIX}/lib/fonts
tar -C ${PREFIX}/lib/fonts -xzf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
@${CP} ${PKGDIR}/${RESOLUTION}.list ${PKGDIR}/PLIST
pre-clean:
@rm -f ${PKGDIR}/PLIST # created by do-install above
.include <bsd.port.mk>
|