aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/motoya-ttfonts/Makefile
blob: d6bb5b3f1dcebfef04f87144e274982d6b58b73f (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:    Motoya TrueType fonts
# Date created:             2004-01-16
# Whom:                 nork@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   motoya-ttfonts
PORTVERSION=    0.20060201
PORTREVISION=   0
CATEGORIES= japanese x11-fonts
MASTER_SITES=   #
#       You must accept following MOTOYA freefont LICENSE[1], and regist
#       free member for download.  You can get a Japanese mail which
#       contains download URL.
#       http://www.motoyafont.jp/use_consent.htm [1]
#       http://www.motoyafont.jp/toroku.html [2]
DISTFILES=  nfa1.exe nfc1.exe nfbc1.exe
DIST_SUBDIR=    motoya

MAINTAINER= nork@FreeBSD.org
COMMENT=    Free Japanese TrueType fonts named 'MOTOYA'

EXTRACT_DEPENDS+=   lha:${PORTSDIR}/archivers/lha

RESTRICTED= Personal, non-profit, and evaluation purpose only.  Redistribution not permitted in any form

USE_X_PREFIX=   yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

FONTSDIR=   lib/X11/fonts/TrueType
MAKE_ENV=   FONTSDIR=${FONTSDIR}
PLIST_SUB=  FONTSDIR=${FONTSDIR}

pre-fetch:
    @[ -f ${DISTDIR}/${DIST_SUBDIR}/nfa1.exe \
    -a -f ${DISTDIR}/${DIST_SUBDIR}/nfc1.exe \
    -a -f ${DISTDIR}/${DIST_SUBDIR}/nfbc1.exe \
    ] || (  \
    ${ECHO} "****************************************************"; \
    ${ECHO} "Please get nfa1.exe, nfc1.exe and nfbc1.exe from";     \
    ${ECHO} "       http://www.motoyafont.jp/toroku.html";      \
    ${ECHO} "And, you must accept following MOTOYA freefont LICENSE."; \
    ${ECHO} "   http://www.motoyafont.jp/use_consent.htm";  \
    ${ECHO} "Then, put in ${DISTDIR}/${DIST_SUBDIR}/nf{a|c}1.exe."; \
    ${ECHO} "****************************************************"; \
    ${FALSE}                            \
    )

do-extract:
.for file in ${DISTFILES}
    @lha xiw=${WRKSRC} ${DISTDIR}/${DIST_SUBDIR}/${file} '*/*.ttc'
.endfor

do-install:
.if !exists(${PREFIX}/${FONTSDIR})
    @${ECHO} "***************************************************"
    @${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
    @${ECHO} "and load 'xtt' module in /etc/XF86Config."
    @${ECHO} "***************************************************"
    ${MKDIR} ${PREFIX}/${FONTSDIR}
.endif
    ${INSTALL_DATA} ${WRKSRC}/*.ttc \
            ${FILESDIR}/fonts.dir.motoya \
            ${FILESDIR}/fonts.alias.motoya \
            ${PREFIX}/${FONTSDIR}
    ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>