summaryrefslogtreecommitdiff
path: root/print/pkfonts300/Makefile
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1998-11-07 10:50:04 +0000
committerSatoshi Asami <asami@FreeBSD.org>1998-11-07 10:50:04 +0000
commit6ff250ab1118ea8e3814c62b36ea530e334f351e (patch)
tree4ca4cd2f3d67f03eb756edb54ed1d60833b4a80b /print/pkfonts300/Makefile
parentDon't use a variable that conflicts with bsd.port.mk USE_PERL5. (diff)
Split up pkfonts to pkfonts${RESOLUTION} subdirectories, so dependencies
are tracked correctly. pkfonts300 is a repository copy from pkfonts, and other pkfonts* directories only contain PLIST and a Makefile that sets RESOLUTION and includes pkfonts300/Makefile.
Notes
Notes: svn path=/head/; revision=14390
Diffstat (limited to 'print/pkfonts300/Makefile')
-rw-r--r--print/pkfonts300/Makefile30
1 files changed, 7 insertions, 23 deletions
diff --git a/print/pkfonts300/Makefile b/print/pkfonts300/Makefile
index 697a477a935f..430b5f489cb7 100644
--- a/print/pkfonts300/Makefile
+++ b/print/pkfonts300/Makefile
@@ -3,7 +3,7 @@
# Date created: 16 Mar 1996
# Whom: Hideaki Ohmon <ohmon@tom.sfc.keio.ac.jp>
#
-# $Id: Makefile,v 1.9 1998/08/10 12:14:50 steve Exp $
+# $Id: Makefile,v 1.10 1998/10/30 08:35:38 asami Exp $
#
DISTNAME= pkfonts
@@ -15,41 +15,25 @@ MASTER_SITES= ftp://ftp.univ-evry.fr/.04/system/OpenBSD/distfiles/pkfonts/ \
DISTFILES= pk${RESOLUTION}.tar.gz
# see below for RESOLUTION definition
-LOOP_VAR= RESOLUTION
-LOOP_OPTIONS= 118 240 300 360 400 600
DIST_SUBDIR= pkfonts
-EXTRACT_CMD= /usr/bin/true # extracted directly in install target
+EXTRACT_ONLY= # extracted directly in install target
NO_BUILD= yes
.if !defined(RESOLUTION)
-RESOLUTION= 300
-RESOLUTION_UNSPECIFIED= yes
+RESOLUTION= 300
.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
+ @${ECHO} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
+ @${ECHO} "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
+ @${FALSE}
+.endif
.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>