summaryrefslogtreecommitdiff
path: root/fonts/adobe-cidfonts/Makefile
blob: 917c34e1914a8193087945e52d11267d33b372d0 (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
# $NetBSD: Makefile,v 1.1.1.1 2002/09/13 22:32:59 jlam Exp $

DISTNAME=	adobe-cidfonts-20000901
CATEGORIES=	fonts
MASTER_SITES=	ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/

MAINTAINER=	jlam@netbsd.org
COMMENT=	Adobe CID-keyed O'Reilly fonts for CJK

DIST_SUBDIR=	${PKGBASE}
DISTFILES=	MOEKai-Regular MOEKai-Regular.afm
DISTFILES+=	MOESung-Regular MOESung-Regular.afm
DISTFILES+=	Munhwa-Bold Munhwa-Bold.afm
DISTFILES+=	Munhwa-Regular Munhwa-Regular.afm
DISTFILES+=	MunhwaGothic-Bold MunhwaGothic-Bold.afm
DISTFILES+=	MunhwaGothic-Regular MunhwaGothic-Regular.afm
DISTFILES+=	MunhwaGungSeo-Bold MunhwaGungSeo-Bold.afm
DISTFILES+=	MunhwaGungSeo-Light MunhwaGungSeo-Light.afm
DISTFILES+=	MunhwaGungSeoHeulim-Bold MunhwaGungSeoHeulim-Bold.afm
DISTFILES+=	MunhwaGungSeoHeulim-Light MunhwaGungSeoHeulim-Light.afm
DISTFILES+=	MunhwaHoonMin-Regular MunhwaHoonMin-Regular.afm
DISTFILES+=	WadaGo-Bold WadaGo-Bold.afm
DISTFILES+=	WadaMaruGo-Regular WadaMaruGo-Regular.afm
DISTFILES+=	WadaMaruGo-RegularH WadaMaruGo-RegularH.afm
DISTFILES+=	WadaMin-Bold WadaMin-Bold.afm
DISTFILES+=	WadaMin-Regular WadaMin-Regular.afm
DISTFILES+=	WadaMin-RegularH WadaMin-RegularH.afm

USE_BUILDLINK2=	# defined
EXTRACT_ONLY=	# empty
NO_CONFIGURE=	# defined
NO_BUILD=	# defined

RESOURCEDIR=	${PREFIX}/share/Adobe/Resource

PLIST_SRC=	${WRKDIR}/.PLIST_SRC

do-install:
	${INSTALL_DATA_DIR} ${RESOURCEDIR}/CIDFont
	for file in ${DISTFILES}; do					\
		${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file}	\
			${RESOURCEDIR}/CIDFont;				\
	done
	${CAT} ${.CURDIR}/PLIST > ${PLIST_SRC}
	( for file in ${DISTFILES}; do					\
		${ECHO} ${RESOURCEDIR:S/^${PREFIX}\///}/CIDFont/$${file}; \
	  done;								\
	) | ${SORT} -u >> ${PLIST_SRC}
	( ${ECHO} "@dirrm ${RESOURCEDIR:S/^${PREFIX}\///}/CIDFont";	\
	  ${ECHO} "@unexec ${RMDIR} -p %D/${RESOURCEDIR:S/^${PREFIX}\///} 2>/dev/null || ${TRUE}";	\
	) >> ${PLIST_SRC}

.include "../../mk/bsd.pkg.mk"