blob: 78c5bc52820111e20ba157a6e878017b5b5b42ca (
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
|
# New ports collection makefile for: ja-zipcodes
# Date created: 5 Nov 1997
# Whom: Jun-ichiro itojun Itoh <itojun@itojun.org>
#
# $FreeBSD$
#
PORTNAME= zipcodes
PORTVERSION= 20040430
CATEGORIES= japanese misc
MASTER_SITES= http://dist.bsdlab.org/
DISTFILES= ken_all-${PORTVERSION}.lzh jigyosyo-20040506.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
NO_WRKSUBDIR= yes
USE_PERL5_BUILD=yes
MAKE_ENV= INSTALL_DATA="${INSTALL_DATA}" SCRIPTDIR=${SCRIPTDIR} PERL=${PERL}
post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKDIR}
# for maintainance.
fetch1:
fetch http://post.ah-tech.co.jp/zipcode/dl/kogaki/lzh/ken_all.lzh
fetch http://post.ah-tech.co.jp/zipcode/dl/jigyosyo/lzh/jigyosyo.lzh
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>
|