freebsd-ports/japanese/zipcodes/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ja-zipcodes
# Date created: 5 Nov 1997
# Whom: Jun-ichiro itojun Itoh <itojun@itojun.org>
#
1999-08-25 07:28:01 +02:00
# $FreeBSD$
#
PORTNAME= zipcodes
2005-07-13 04:38:45 +02:00
PORTVERSION= 20050630
CATEGORIES= japanese misc
2004-05-06 17:50:55 +02:00
MASTER_SITES= http://dist.bsdlab.org/
2004-10-13 13:48:06 +02:00
DISTFILES= ken_all-${PORTVERSION_K}.lzh jigyosyo-${PORTVERSION_J}.lzh
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Japanese zipcode tables. includes both 3/5 and 7 digits form
EXTRACT_DEPENDS=lha:${PORTSDIR}/archivers/lha
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
EXTRACT_CMD= lha
EXTRACT_BEFORE_ARGS= x
EXTRACT_AFTER_ARGS=
NO_WRKSUBDIR= yes
USE_PERL5_BUILD=yes
MAKE_ENV= INSTALL_DATA="${INSTALL_DATA}" SCRIPTDIR=${SCRIPTDIR} PERL=${PERL}
2005-07-13 04:38:45 +02:00
PORTVERSION_K?= 20050630
2004-10-13 13:48:06 +02:00
PORTVERSION_J?= ${PORTVERSION}
2001-01-21 19:54:32 +01:00
post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKDIR}
# for maintainance.
fetch1:
2005-07-13 04:38:45 +02:00
fetch http://www.post.japanpost.jp/zipcode/dl/kogaki/lzh/ken_all.lzh
fetch http://www.post.japanpost.jp/zipcode/dl/jigyosyo/lzh/jigyosyo.lzh
2004-05-06 17:50:55 +02:00
chmod og+r *.lzh
fetch2:
m=`stat -f %m ken_all.lzh`; \
mv ken_all.lzh `date -r $${m} +ken_all-%Y%m%d.lzh`
m=`stat -f %m jigyosyo.lzh`; \
mv jigyosyo.lzh `date -r $${m} +jigyosyo-%Y%m%d.lzh`
.include <bsd.port.mk>