aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/jargon-fpw/Makefile
blob: 185b88009f33bfbb1e5469862afd258f129e34d7 (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
# New ports collection makefile for:    The Jargon File - JIS X 4081 format version
# Date created:         00/06/19
# Whom:         Satoshi Taoka <taoka@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jargon-fpw
PORTVERSION=    ${JG_VER}.${JGFPW_VER}
CATEGORIES= japanese
MASTER_SITES=   http://plaza27.mbn.or.jp/~satomii/soft/archive/ \
        http://www.tuxedo.org/~esr/jargon/
DISTNAME=   jarg-fpw${JGFPW_VER}-src
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        jargon-${JG_VER}.tar.gz
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=     taoka@FreeBSD.org

BUILD_DEPENDS=  fpwmake:${PORTSDIR}/japanese/freepwing \
        catdump:${PORTSDIR}/japanese/epwutil \
        nkf:${PORTSDIR}/japanese/nkf

WRKSRC=     ${WRKDIR}/jarg-fpw${JGFPW_VER}
USE_GMAKE=  yes
JGFPW_VER=  1.1
JG_VER=     4.2.0
FJG_VER=    420

post-extract:
    cd ${WRKSRC}; \
    ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
        ${_DISTDIR}/jargon-${JG_VER}.tar.gz \
        ${EXTRACT_AFTER_ARGS}
    ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
        ${WRKSRC}/jargon-${JG_VER}/jarg${FJG_VER}.gz \
        > ${WRKSRC}/jarg${FJG_VER}

post-patch:
    ${MV} ${WRKSRC}/catalogs.txt ${WRKSRC}/catalogs.txt.org
    nkf -ed ${WRKSRC}/catalogs.txt.org > ${WRKSRC}/catalogs.txt
    ${MV} ${WRKSRC}/gaiji/halfchar.txt ${WRKSRC}/gaiji/halfchar.txt.org
    nkf -ed ${WRKSRC}/gaiji/halfchar.txt.org > ${WRKSRC}/gaiji/halfchar.txt

do-build:
    cd ${WRKSRC}; \
    fpwmake -f ${MAKEFILE}; \
    fpwmake -f ${MAKEFILE} catalogs

do-install:
    ${MKDIR} ${PREFIX}/share/dict/jargon-fpw/jargon/data
    ${INSTALL_DATA} ${WRKSRC}/honmon ${PREFIX}/share/dict/jargon-fpw/jargon/data
    ${MKDIR} ${PREFIX}/share/dict/jargon-fpw/jargon/gaiji
    ${INSTALL_DATA} ${WRKSRC}/gai16h ${PREFIX}/share/dict/jargon-fpw/jargon/gaiji
    ${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/jargon-fpw
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/jargon-fpw
    ${INSTALL_DATA} ${WRKSRC}/readme.1st ${PREFIX}/share/doc/jargon-fpw
    ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/jargon-fpw
.endif

.include <bsd.port.mk>