blob: 3be1cc0c59fcfd0b9749c2df4faba48a206a2854 (
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
|
# Created by: Hideaki Ohmon <ohmon@tom.sfc.keio.ac.jp>
# $FreeBSD$
PORTNAME= pkfonts${RESOLUTION}
PORTVERSION= 1.0
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
MASTER_SITE_SUBDIR= pkfonts
DISTFILES= pk${RESOLUTION}.tar.gz
# see below for RESOLUTION definition
MAINTAINER= ports@FreeBSD.org
COMMENT= English PK fonts, for ghostscripts, xdvi, and so on
DIST_SUBDIR= pkfonts
EXTRACT_ONLY= # extracted directly in install target
NO_BUILD= yes
NO_STAGE= yes
PLIST= ${PKGDIR}/pkg-plist.${RESOLUTION}
.if !defined(RESOLUTION)
RESOLUTION= 300
.else
.if ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
${RESOLUTION} != 400 && ${RESOLUTION} != 600
.BEGIN:
@${ECHO_MSG} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
@${ECHO_MSG} "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>
|