openbsd-ports/print/pkfonts/Makefile
pvalchev 7172dff8eb These do not have licenses, so we cannot distribute distfiles/packages.
Set PERMIT_* to "no license" for now.  Authors will be contacted so that
they are aware of the situation, but we cannot break the copyright law.
2001-06-27 20:56:24 +00:00

67 lines
1.8 KiB
Makefile

# OpenBSD makefile for: English PK fonts
# Date created: May 17 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.15 2001/06/27 20:56:27 pvalchev Exp $
#
COMMENT= "English PK fonts, for ghostscript, xdvi and so on"
DISTNAME= pkfonts
PKGNAME= pkfonts${RESOLUTION}-1.0
CATEGORIES= print
NEED_VERSION= 1.402
FAKE=No
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=
MAINTAINER= Angelos D. Keromytis <angelos@openbsd.org>
# License: NONE
PERMIT_PACKAGE_CDROM= "no license"
PERMIT_PACKAGE_FTP= "no license"
PERMIT_DISTFILES_CDROM= "no license"
PERMIT_DISTFILES_FTP= "no license"
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)
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
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/fonts
tar -C ${PREFIX}/lib/fonts -xzf ${FULLDISTDIR}/${DISTFILES}
@cp ${PKGDIR}/${RESOLUTION}.list ${PKGDIR}/PLIST
pre-clean:
@rm -f ${PKGDIR}/PLIST # created by do-install above
.include <bsd.port.mk>