aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/kappa20/Makefile
blob: 16c3aa924860974a54802de8076a67bf61433c63 (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
# New ports collection makefile for:    kappafont
# Date created:     8 Oct 1998
# Whom: Kawaguti Ginga <ginga@athena.club.ne.jp>
#
# $FreeBSD$
#

PORTNAME=   k20fonts
PORTVERSION=    0.395
CATEGORIES= japanese x11-fonts
MASTER_SITES=   http://khdd.net/20dot.fonts/:kappa20 \
        http://downloads.sourceforge.jp/x-tt/5194/:ayu20
DISTNAME=   Kappa20-${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:kappa20 \
        ${AYUDISTNAME}${AYU_SUFFIX}:ayu20

MAINTAINER= ginga-freebsd@ginganet.org
COMMENT=    X11 20-dot kanji font 'Kappa20dot + ayu font'

USE_X_PREFIX=   yes
USE_BZIP2=  yes
AYUDISTNAME=    ayu20gothic-1.4
AYU_SUFFIX= .tar.gz

BUILD_DEPENDS=  mkitalic:${PORTSDIR}/x11-fonts/mkitalic

.include <bsd.port.pre.mk>

.if ${XFREE86_VERSION} == 4
BUILD_DEPENDS+= bdftopcf:${PORTSDIR}/x11/XFree86-4-clients
RUN_DEPENDS=    mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
.endif

FONTSDIR=   lib/X11/fonts/local
MAKE_ENV=   INSTALL_DATA="${INSTALL_DATA}"
MAKE_ARGS=  FONTSDIR="${FONTSDIR}"
PLIST_SUB=  FONTSDIR=${FONTSDIR}

post-extract:
    (cd ${WRKSRC} ; ${TAR} xpzf ${DISTDIR}/${AYUDISTNAME}${AYU_SUFFIX})
    (cd ${WRKSRC} ; ${MV} Makefile Makefile.dist)
    ${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
    ${CP} ${FILESDIR}/fonts.alias.ayu ${WRKSRC}/

pre-build:
    (cd ${WRKSRC} ; ${SH} makebdf.sh)

post-install:
    @(cd ${PREFIX}/${FONTSDIR} ; mkfontdir)
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/ja/${PORTNAME}
    @${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README ${PREFIX}/share/doc/ja/${PORTNAME}/README.euc-jp
.endif

.include <bsd.port.post.mk>