aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/moefonts-cid/Makefile
blob: a1745363c6de81843350ec92e0eb8779df9d9922 (plain) (blame)
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
# New ports collection makefile for:    MOE CIDFonts
# Date created:     3 Mar 2000
# Whom:         Jing-Tang Keith Jang <keith@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   moefonts-cid
PORTVERSION=    1.0
PORTREVISION=   3
CATEGORIES= chinese print
MASTER_SITES=   ftp://ftp.ora.com/pub/examples/nutshell/cjkv/adobe/samples/
DISTFILES=  MOEKai-Regular MOESung-Regular
EXTRACT_ONLY=   # empty

MAINTAINER= ports@FreeBSD.org
COMMENT=    MOE CIDFonts converted by Adobe

RUN_DEPENDS=    ${ADOBECMAPDIR}/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps

USE_GHOSTSCRIPT_RUN=    yes
NO_BUILD=   YES
SUB_FILES=  pkg-install pkg-deinstall
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL=   ${WRKDIR}/pkg-deinstall

ADOBECMAPDIR=   ${LOCALBASE}/share/fonts/adobe-cmaps

pre-fetch:
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
    @${ECHO} ""
    @${ECHO} "      Define WITH_GHOSTSCRIPT_AFPL=yes to use"
    @${ECHO} "      AFPL Postscript interpreter instead of GNU one"
    @${ECHO} ""
.endif

do-install:
    @${INSTALL_DATA} ${DISTDIR}/MOEKai-Regular \
        ${DISTDIR}/MOESung-Regular \
        ${FILESDIR}/MOEKai-Regular-ETen-B5-H.gsf \
        ${FILESDIR}/MOEKai-Regular-ETen-B5-V.gsf \
        ${FILESDIR}/MOESung-Regular-ETen-B5-H.gsf \
        ${FILESDIR}/MOESung-Regular-ETen-B5-V.gsf \
        ${PREFIX}/share/ghostscript/fonts
    @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>