aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/elisa8x8/Makefile
blob: 427abd8f5568a6d5ebb2d9fc407ba701a850140b (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
# New ports collection makefile for:    elisa8x8
# Date created:     17 Aug. 1998
# Whom: Toshihiko SHIMOKAWA <toshi@tea.forus.or.jp> & ELISA Font Project
#
# $FreeBSD$
#

PORTNAME=   elisa8x8
PORTVERSION=    1.0
CATEGORIES= japanese x11-fonts
MASTER_SITES=   http://www.tea.forus.or.jp/toshi/exhibition/
DISTNAME=   elisat10

MAINTAINER= toshi@tea.forus.or.jp
COMMENT=    X11 8-dot kanji font 'elisa font'

RUN_DEPENDS=    mkfontdir:${X_CLIENTS_PORT}

USE_X_PREFIX=   yes

.include <bsd.port.pre.mk>

NO_WRKSUBDIR=   yes

BDFTOPCF_CMD=   ${PREFIX}/bin/bdftopcf
MKFONTDIR_CMD=  ${PREFIX}/bin/mkfontdir
FONTSDIR=   lib/X11/fonts/local
INSTALLDIR= ${PREFIX}/${FONTSDIR}
DOCDIR=     ${PREFIX}/share/doc/elisa
MYPORTDOCS= elisa100.doc elisat10.doc elisat10.html
PLIST_SUB=  FONTSDIR=${FONTSDIR}

do-build:
    @(cd ${WRKDIR}; \
    ${BDFTOPCF_CMD} elisat10.bdf   | ${GZIP_CMD} -c > elisat10.pcf.gz ;\
    ${BDFTOPCF_CMD} jpnhn4-jis.bdf | ${GZIP_CMD} -c > jpnhn4-jis.pcf.gz ;\
    ${BDFTOPCF_CMD} jpnhn4-iso.bdf | ${GZIP_CMD} -c > jpnhn4-iso.pcf.gz ;\
    )

pre-install:
    @${SETENV} PKG_PREFIX=${PREFIX} \
        ${SH} ${PKGREQ} ${PKGNAME} INSTALL

do-install:
    @${MKDIR} ${INSTALLDIR} ${DOCDIR}
    @(cd ${WRKSRC} ;\
    ${INSTALL_DATA} elisat10.pcf.gz ${INSTALLDIR} ;\
    ${INSTALL_DATA} jpnhn4-jis.pcf.gz ${INSTALLDIR} ;\
    ${INSTALL_DATA} jpnhn4-iso.pcf.gz ${INSTALLDIR} ;\
    )

post-install:
    @(cd ${PREFIX}/${FONTSDIR} ; mkfontdir)
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCDIR}
    @(cd ${WRKSRC} ;\
    ${INSTALL_DATA} ${MYPORTDOCS} ${DOCDIR} ;\
    )
.endif

.include <bsd.port.post.mk>