summaryrefslogtreecommitdiffstats
path: root/print/gsfonts/Makefile
blob: 20bdfd041f2ba2512a183b3af271ef5a43703307 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# New ports collection makefile for:	gsfonts
# Date created:		11 September 1997
# Whom:			giffunip
#
# $FreeBSD$
#

PORTNAME=	gsfonts
PORTVERSION=	8.11
PORTREVISION=	2
CATEGORIES=	print x11-fonts
MASTER_SITES=	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ \
		${MASTER_SITE_TEX_CTAN:S/$/:CTAN/}
MASTER_SITE_SUBDIR=	support/ghostscript/fonts/:CTAN
DISTFILES=	${GS_FONTS_STD:S/$/:DEFAULT,CTAN/} ${GS_FONTS_OTHER:S/$/:DEFAULT,CTAN/}
DIST_SUBDIR=	ghostscript

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Fonts used by GNU Ghostscript (or X)

NO_WRKSUBDIR=	yes
NO_BUILD=	yes

PLIST_SUB=	FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"

SUB_FILES=	pkg-message
SUB_LIST=	FONTSDIR="${FONTSDIR}"

#
# Local variables
#

FONTSDIR?=	${PREFIX}/share/ghostscript/fonts
GS_FONTS_STD=	ghostscript-fonts-std-8.11.tar.gz
GS_FONTS_OTHER=	ghostscript-fonts-other-6.0.tar.gz

.SILENT:

post-patch:
	${CP} ${WRKSRC}/fonts/fonts.scale ${WRKSRC}/fonts/fonts.scale.urw
	${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.scale
	${CP} ${FILESDIR}/fonts.scale ${WRKSRC}/fonts/fonts.dir
	${CP} ${FILESDIR}/Fontmap ${WRKSRC}/fonts/Fontmap

#
# Install
#

do-install: install-fonts install-docs display-message

install-fonts:
	${MKDIR} ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/COPYING ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/*.afm ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/*.gsf ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/*.pfa ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/*.pfb ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/*.pfm ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/fonts.dir ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/fonts.scale ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/fonts.scale.urw ${FONTSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/Fontmap ${FONTSDIR}

install-docs:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/ChangeLog ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/README ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/README.tweaks ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/fonts/TODO ${DOCSDIR}
.endif

display-message:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud