openbsd-ports/print/pkfonts/Makefile

65 lines
1.7 KiB
Makefile
Raw Normal View History

1998-05-17 01:38:48 -04:00
# OpenBSD makefile for: English PK fonts
# Date created: May 17 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.12 2001/03/22 22:06:40 brad Exp $
1998-05-17 01:38:48 -04:00
#
DISTNAME= pkfonts
PKGNAME= pkfonts${RESOLUTION}-1.0
CATEGORIES= print
NEED_VERSION= 1.116
FAKE=No
1998-05-17 01:38:48 -04:00
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
EXTRACT_ONLY=
1998-05-17 01:38:48 -04:00
2000-10-22 10:02:46 -04:00
MAINTAINER= Angelos D. Keromytis <angelos@openbsd.org>
1998-05-17 01:38:48 -04:00
2000-02-12 03:41:07 -05:00
LICENSE_TYPE= NONE
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 03:41:07 -05:00
1998-05-17 01:38:48 -04:00
MANUAL_PACKAGE_BUILD= RESOLUTION has to be set to 118 240 300 360 400 600
DIST_SUBDIR= pkfonts
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
.if !defined(NO_WARNINGS)
1998-05-17 01:38:48 -04:00
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
.endif
1998-05-17 01:38:48 -04:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/fonts
1999-09-22 06:44:21 -04:00
tar -C ${PREFIX}/lib/fonts -xzf ${FULLDISTDIR}/${DISTFILES}
@cp ${PKGDIR}/${RESOLUTION}.list ${PKGDIR}/PLIST
1998-05-17 01:38:48 -04:00
pre-clean:
@rm -f ${PKGDIR}/PLIST # created by do-install above
.include <bsd.port.mk>