aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/today/Makefile
blob: 4edbab1f44f3d04ab86c924e9d80b1c462b83229 (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
# New ports collection makefile for:    today
# Version required: 2.10b
# Date created:     24 June 1996
# Whom:         ABURAYER Rewsirow <pcs51674@asciinet.or.jp>
#
# $Id: Makefile,v 1.4 1997/09/14 17:47:20 max Exp $
#

DISTNAME=   td210bs
PKGNAME=    ja-today-2.10b
CATEGORIES= japanese games
MASTER_SITES=   ftp://ftp.waseda.ac.jp/pub/archive/fj.binaries.msdos/
EXTRACT_SUFX=   .lzh
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} td210bm.lzh

MAINTAINER= rewsirow@ff.iij4u.or.jp

BUILD_DEPENDS=  lha:${PORTSDIR}/archivers/lha \
        nkf:${PORTSDIR}/japanese/nkf

EXTRACT_CMD=    lha
EXTRACT_BEFORE_ARGS=    xfqw=${WRKDIR}
NO_WRKSUBDIR=   yes
PATCH_STRIP=    -p1

post-extract:
    @${ECHO_MSG} "===>  Extracting tbl file for ${DISTNAME}"
    @(cd ${WRKDIR}; lha xqf tbl.lzh )
    @${ECHO_MSG} "===>  Renaming file for ${DISTNAME}"
    @(cd ${WRKDIR}; \
    ${MV} rdcalend.c rdcalendar.c ; \
    ${MV} rdcalend.h rdcalendar.h )
    @${ECHO_MSG} "===>  Converting Kanji code for ${DISTNAME}"
    @(cd ${WRKDIR}; \
    for i in *.c *.h *.doc *.cnf birthday.tbl event*.tbl flower.tbl \
         gengo.tbl hist??.tbl history.tbl holiday.tbl magazin.tbl \
         monthly.tbl week.tbl; \
    do \
        echo $$i ; \
        ${SED} 's/.$$//' $$i | nkf -e > $$i.tmp ;\
        ${MV} -f $$i.tmp $$i ; \
    done)

pre-patch:
    @${ECHO_MSG} "===>  Installing custom Makefile for ${DISTNAME}"
    @(${CP} ${FILESDIR}/Makefile ${WRKSRC})

.include <bsd.port.mk>