aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/mikachan-ttfonts/Makefile
blob: f8bf156215c428eabeeca2b49c3cd0e72f36dab5 (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
# New ports collection makefile for:    TrueTypeFont Mika-chan
# Date created:     12 October 2002
# Whom:         sada
# Based on:     KANOU Hiroki's kochi-ttfonts
#
# $FreeBSD$
#

PORTNAME=   mikachan-ttfonts
PORTVERSION=    8.7
CATEGORIES= japanese x11-fonts
MASTER_SITES=   http://members.tripod.co.jp/mikachan_font/ \
        ${MASTER_SITE_PORTS_JP}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ver${PORTVERSION}
EXTRACT_SUFX=   .lzh

MAINTAINER= ports@FreeBSD.org
COMMENT=    Handwritten Japanese TrueType fonts by Mika-chan

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

NO_CDROM=   "Don't sell distfile"
EXTRACT_CMD=    lha
EXTRACT_BEFORE_ARGS=    pq
EXTRACT_AFTER_ARGS= > ${WRKSRC}/mika.ttf
DIST_SUBDIR=    ${PORTNAME}
USE_X_PREFIX=   yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes
MAKE_ENV=   FONTSDIR=${FONTSDIR}
PLIST_SUB=  FONTSDIR=${FONTSDIR}

FONTSDIR=   lib/X11/fonts/TrueType

do-install:
    ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
    ${INSTALL_DATA} \
        ${WRKDIR}/mika.ttf ${FILESDIR}/fonts.dir.mika \
        ${PREFIX}/${FONTSDIR}
    ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>