1996-10-18 15:04:50 +00:00
|
|
|
# New ports collection makefile for: today
|
|
|
|
# Date created: 24 June 1996
|
|
|
|
# Whom: ABURAYER Rewsirow <pcs51674@asciinet.or.jp>
|
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1996-10-18 15:04:50 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 14:38:12 +00:00
|
|
|
PORTNAME= today
|
|
|
|
PORTVERSION= 2.11a
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= japanese games
|
2000-02-21 17:05:58 +00:00
|
|
|
MASTER_SITES= ftp://ftp.vector.co.jp/pack/dos/personal/calendar/today/
|
2000-04-12 14:38:12 +00:00
|
|
|
DISTNAME= ja-${PORTNAME}-${PORTVERSION}
|
|
|
|
DISTFILES= td${PORTVERSION:S/.//}s.lzh \
|
|
|
|
td${PORTVERSION:S/.//}m.lzh
|
1996-10-18 15:04:50 +00:00
|
|
|
|
2008-02-28 15:54:01 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:35:09 +00:00
|
|
|
COMMENT= Tells you what day today is
|
1996-10-18 15:04:50 +00:00
|
|
|
|
2004-04-05 22:18:38 +00:00
|
|
|
EXTRACT_DEPENDS=lha:${PORTSDIR}/archivers/lha \
|
1997-09-14 17:47:20 +00:00
|
|
|
nkf:${PORTSDIR}/japanese/nkf
|
1996-10-18 15:04:50 +00:00
|
|
|
|
|
|
|
EXTRACT_CMD= lha
|
1997-09-14 17:47:20 +00:00
|
|
|
EXTRACT_BEFORE_ARGS= xfqw=${WRKDIR}
|
1999-02-03 11:12:01 +00:00
|
|
|
EXTRACT_AFTER_ARGS= # empty
|
2000-02-21 17:05:58 +00:00
|
|
|
|
1996-10-18 15:04:50 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
|
|
|
post-extract:
|
1997-09-14 17:47:20 +00:00
|
|
|
@${ECHO_MSG} "===> Extracting tbl file for ${DISTNAME}"
|
2000-02-21 17:05:58 +00:00
|
|
|
@(cd ${WRKSRC}; lha xqf tbl.lzh )
|
1997-09-14 17:47:20 +00:00
|
|
|
@${ECHO_MSG} "===> Converting Kanji code for ${DISTNAME}"
|
2000-02-21 17:05:58 +00:00
|
|
|
@(cd ${WRKSRC}; \
|
1996-10-18 15:04:50 +00:00
|
|
|
for i in *.c *.h *.doc *.cnf birthday.tbl event*.tbl flower.tbl \
|
2000-02-21 17:05:58 +00:00
|
|
|
gengo.tbl hist??.tbl history.tbl holiday.tbl magazine.tbl \
|
|
|
|
monthly.tbl schedule.tbl suffix.tbl week.tbl; \
|
1996-10-18 15:04:50 +00:00
|
|
|
do \
|
2000-02-21 17:05:58 +00:00
|
|
|
${SED} 's/.$$//' $$i | nkf -Se > $$i.tmp ;\
|
1997-09-14 17:47:20 +00:00
|
|
|
${MV} -f $$i.tmp $$i ; \
|
1996-10-18 15:04:50 +00:00
|
|
|
done)
|
2000-02-21 17:05:58 +00:00
|
|
|
@(cd ${WRKSRC}; lha xiqf utility.lzh src/dayinfo.c )
|
1996-10-18 15:04:50 +00:00
|
|
|
|
|
|
|
pre-patch:
|
1997-09-14 17:47:20 +00:00
|
|
|
@${ECHO_MSG} "===> Installing custom Makefile for ${DISTNAME}"
|
1996-12-03 13:08:20 +00:00
|
|
|
@(${CP} ${FILESDIR}/Makefile ${WRKSRC})
|
1996-10-18 15:04:50 +00:00
|
|
|
|
2000-02-21 17:05:58 +00:00
|
|
|
post-patch:
|
2002-11-04 05:46:38 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/*.cnf
|
2000-02-21 17:05:58 +00:00
|
|
|
|
1996-10-18 15:04:50 +00:00
|
|
|
.include <bsd.port.mk>
|