summaryrefslogtreecommitdiff
path: root/fonts/arphicttf/Makefile
blob: ba7b1efe7b83aef5555a0ad9a0dd0d90abcd815b (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
# $NetBSD: Makefile,v 1.4 2002/02/18 11:23:54 rxg Exp $
#

DISTNAME=	arphicttf-2.11
CATEGORIES=	chinese fonts
MASTER_SITES=	ftp://linux.cis.nctu.edu.tw/chinese/fonts/arphic/font/ \
		ftp://linux.cis.nctu.edu.tw/chinese/fonts/arphic/license/ENGLISH/ \
		ftp://linux.cis.nctu.edu.tw/chinese/fonts/arphic/
DISTFILES=	${FONT_SETS} ${MISC_FILES}

MAINTAINER=	rxg@ms25.url.com.tw
COMMENT=	Chinese Big5/GB TrueType fonts made by Arphic Technology

DEPENDS+=	mkttfdir>=1.2:../../fonts/mkttfdir

FONT_SETS=	bkai00mp.ttf.gz \
		bsmi00lp.ttf.gz \
		gbsn00lp.ttf.gz \
		gkai00mp.ttf.gz

MISC_FILES=	ARPHICPL.TXT logo.gif release.txt

DIST_SUBDIR=	${PKGNAME}

EXTRACT_ONLY=	# empty
WRKSRC=		${WRKDIR}
NO_PATCH=	yes
NO_CONFIGURE=	yes
NO_BUILD=	yes

USE_X11BASE=	yes
FONTDIR=	${PREFIX}/lib/X11/fonts/TrueType

.include "../../mk/bsd.prefs.mk"

do-install:
	${INSTALL_DATA_DIR} ${FONTDIR}
	for f in ${FONT_SETS}; do \
		${INSTALL_DATA} ${_DISTDIR}/$$f ${FONTDIR}; \
		${GUNZIP_CMD} ${FONTDIR}/$$f; \
	done

post-install:
.if defined(TTF_TYPE) && (${TTF_TYPE} == "freetype")
	${SH} ${LOCALBASE}/bin/mkttfdir --freetype ${FONTDIR}
.else
	${SH} ${LOCALBASE}/bin/mkttfdir ${FONTDIR}
.endif

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