1997-11-12 06:12:18 +01:00
|
|
|
# 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$
|
1997-11-12 06:12:18 +01:00
|
|
|
#
|
|
|
|
|
2000-04-13 10:34:11 +02:00
|
|
|
PORTNAME= zipcodes
|
2012-03-04 08:39:36 +01:00
|
|
|
PORTVERSION= 20120224
|
2005-11-10 04:48:30 +01:00
|
|
|
CATEGORIES= japanese
|
2009-08-04 16:39:01 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= kuriyama
|
2004-10-13 13:48:06 +02:00
|
|
|
DISTFILES= ken_all-${PORTVERSION_K}.lzh jigyosyo-${PORTVERSION_J}.lzh
|
1997-11-12 06:12:18 +01:00
|
|
|
|
2003-12-16 02:30:19 +01:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2003-02-19 18:16:44 +01:00
|
|
|
COMMENT= Japanese zipcode tables. includes both 3/5 and 7 digits form
|
1997-11-12 06:12:18 +01:00
|
|
|
|
2003-04-04 08:34:29 +02:00
|
|
|
EXTRACT_DEPENDS=lha:${PORTSDIR}/archivers/lha
|
|
|
|
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
|
1997-11-12 06:12:18 +01:00
|
|
|
|
|
|
|
EXTRACT_CMD= lha
|
2003-12-16 02:30:19 +01:00
|
|
|
EXTRACT_BEFORE_ARGS= x
|
2004-06-09 12:09:27 +02:00
|
|
|
EXTRACT_AFTER_ARGS=
|
1997-11-12 06:12:18 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2003-04-04 08:34:29 +02:00
|
|
|
USE_PERL5_BUILD=yes
|
2002-07-28 07:59:05 +02:00
|
|
|
MAKE_ENV= INSTALL_DATA="${INSTALL_DATA}" SCRIPTDIR=${SCRIPTDIR} PERL=${PERL}
|
2009-05-20 17:02:56 +02:00
|
|
|
PORTVERSION_K?= ${PORTVERSION}
|
2009-04-05 05:22:32 +02:00
|
|
|
PORTVERSION_J?= ${PORTVERSION}
|
1997-11-12 06:12:18 +01:00
|
|
|
|
2001-01-21 19:54:32 +01:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/Makefile ${WRKDIR}
|
|
|
|
|
2010-08-01 15:59:38 +02:00
|
|
|
# for maintenance.
|
2003-12-16 02:30:19 +01:00
|
|
|
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
|
2008-12-31 00:50:37 +01:00
|
|
|
${CHMOD} og+r *.lzh
|
2003-12-16 02:30:19 +01:00
|
|
|
|
|
|
|
fetch2:
|
|
|
|
m=`stat -f %m ken_all.lzh`; \
|
2008-12-31 00:50:37 +01:00
|
|
|
${MV} ken_all.lzh `date -r $${m} +ken_all-%Y%m%d.lzh`
|
2003-12-16 02:30:19 +01:00
|
|
|
m=`stat -f %m jigyosyo.lzh`; \
|
2008-12-31 00:50:37 +01:00
|
|
|
${MV} jigyosyo.lzh `date -r $${m} +jigyosyo-%Y%m%d.lzh`
|
2004-03-18 01:31:48 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|