aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/font-mplus/Makefile
blob: ad05f2cee29b38292b3c902e7753ff61f3fc77be (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:    M+ Fonts
# Date created:     July 17 2002
# Whom:         The 244th namelessness at 2ch.net
#
# $FreeBSD$
#

PORTNAME=   mplusfonts
PORTVERSION=    2.2.4
PORTREVISION=   1
CATEGORIES= japanese x11-fonts
MASTER_SITES=   http://downloads.sourceforge.jp/mplus-fonts/5030/ \
        http://wids.net/archive/mplusfonts/distfiles/
DISTNAME=   mplus_bitmap_fonts-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    12x13 dots X11 kanji fonts with simple and readable design

BUILD_DEPENDS=  bdftopcf:${X_CLIENTS_PORT}
RUN_DEPENDS=    mkfontdir:${X_CLIENTS_PORT}

NO_BUILD=   yes
USE_X_PREFIX=   yes

.include <bsd.port.pre.mk>

DOCS=       INSTALL_E LICENSE_E README_E \
        INSTALL_J LICENSE_J README_J

FONTSDIR=   ${PREFIX}/lib/X11/fonts/local
PLIST_SUB=  FONTSDIR=${FONTSDIR:S/${PREFIX}\///}

pre-install:
    @${MKDIR} ${DOCSDIR}
.for i in e j
    @${INSTALL_DATA} ${WRKSRC}/fonts_${i}/fonts.alias \
        ${DOCSDIR}/fonts.alias.${i}
    @${CAT} ${DOCSDIR}/fonts.alias.${i} >> ${DOCSDIR}/fonts.alias
.endfor
    @${INSTALL_DATA} ${WRKSRC}/fonts_e/euro/fonts.alias \
        ${DOCSDIR}/fonts.alias.euro
    @${CAT} ${DOCSDIR}/fonts.alias.euro >> ${DOCSDIR}/fonts.alias
    @${SETENV} PKG_PREFIX=${PREFIX} \
        ${SH} ${PKGREQ} ${PKGNAME} INSTALL

do-install:
    cd ${WRKSRC} && \
        DESTDIR="${FONTSDIR}" ${WRKSRC}/install_mplus_fonts
.if !defined(NOPORTDOCS)
.for i in ${DOCS}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>