1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/print/pkfonts300/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: English PK fonts
# Version required: ?
# Date created: 16 Mar 1996
1996-10-15 23:31:45 +00:00
# Whom: Hideaki Ohmon <ohmon@tom.sfc.keio.ac.jp>
#
# $Id: Makefile,v 1.4 1996/11/09 11:29:43 asami Exp $
#
DISTNAME= pkfonts
PKGNAME= pkfonts${RESOLUTION}-1.0
CATEGORIES= print
MASTER_SITES= 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
1996-10-15 23:31:45 +00:00
MAINTAINER= ohmon@tom.sfc.keio.ac.jp
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}/${DISTFILES}
@${CP} ${PKGDIR}/${RESOLUTION}.list ${PKGDIR}/PLIST
pre-clean:
@rm -f ${PKGDIR}/PLIST # created by do-install above
.include <bsd.port.mk>