0f92912af4
- Convert few ports to USE_LHA [1] - Revert r303619 since CONFIGURE_ENV already sets CPPFLAGS and LDFLAGS by default. [2] PR: 176187 [1] 174790 [2] Submitted by: Christoph Mallon <christoph.mallon@gmx.de> [1] Gerald Pfeifer <gerald@pfeifer.com> [2]
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# New ports collection makefile for: today
|
|
# Date created: 24 June 1996
|
|
# Whom: ABURAYER Rewsirow <pcs51674@asciinet.or.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= today
|
|
PORTVERSION= 2.12
|
|
CATEGORIES= japanese games
|
|
MASTER_SITES= http://ftp.vector.co.jp/pack/dos/personal/calendar/today/
|
|
DISTNAME= ja-${PORTNAME}-${PORTVERSION}
|
|
DISTFILES= td${PORTVERSION:S/.//}s.lzh \
|
|
td${PORTVERSION:S/.//}m.lzh
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tells you what day today is
|
|
|
|
EXTRACT_DEPENDS=nkf:${PORTSDIR}/japanese/nkf
|
|
|
|
NO_WRKSUBDIR= yes
|
|
USE_LHA= yes
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
|
|
|
post-extract:
|
|
@(cd ${WRKSRC}; lha xiqf utility.lzh src/dayinfo.c )
|
|
@${ECHO_MSG} "===> Extracting tbl file for ${DISTNAME}"
|
|
@(cd ${WRKSRC}; lha xqf tbl.lzh )
|
|
@${ECHO_MSG} "===> Converting Kanji code for ${DISTNAME}"
|
|
@(cd ${WRKSRC}; \
|
|
for i in *.c *.h *.doc *.cnf birthday.tbl event*.tbl flower.tbl \
|
|
gengo.tbl hist??.tbl history.tbl holiday.tbl magazine.tbl \
|
|
monthly.tbl schedule.tbl suffix.tbl week.tbl; \
|
|
do \
|
|
${SED} 's/.$$//' $$i | nkf -Se > $$i.tmp ;\
|
|
${MV} -f $$i.tmp $$i ; \
|
|
done)
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/*.cnf
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/today.doc ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|