summaryrefslogtreecommitdiff
path: root/japanese/gawk/Makefile
blob: e6518f1af0c26f33cd73f7a7f97a3dde765a6953 (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
43
44
45
46
# New ports collection makefile for:	gawk+mb
# Version required:	2.15.6+mb1.04
# Date created:		5 April 1995
# Whom:			Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
#
# $Id: Makefile,v 1.5 1995/05/09 05:41:41 asami Exp $
#

DISTNAME=	gawk-2.15.6
PKGNAME=	jp-gawk-2.15.6
CATEGORIES+=	japanese
MASTER_SITES=	ftp://gatekeeper.dec.com/pub/GNU/

MAINTAINER=	asami@FreeBSD.ORG

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	bsd44
PATCH_STRIP=	-p1

PATCH_SITES=	ftp://ftp.iij.ad.jp/pub/NetNews/fj.sources/volume95/May/
PATCHFILES=	gawk-2.15.6-mb1.04.diff.gz
DISTPATCHES=	950503.01.Z 950503.02.Z 950503.03.Z 950503.04.Z
# Try this if you can't get into ftp.iij.ad.jp
# PATCH_SITES=	ftp://isfs.kuis.kyoto-u.ac.jp/News.Archives/fj.sources/1995/
# DISTPATCHES=	372.gz 373.gz 374.gz 375.gz
PATCH_DIST_STRIP=	-p1

.if !defined(MASTER_SITE_OVERRIDE)
pre-fetch: 
	@(cd ${DISTDIR}; \
	 if [ ! -f ${PATCHFILES} ]; then \
	    ${ECHO_MSG} ">> ${PATCHFILES} doesn't seem to exist on this system."; \
	    for file in ${DISTPATCHES} ; do \
		for site in ${PATCH_SITES} ; do \
		    if ${NCFTP} ${NCFTPFLAGS} $${site}$${file}; then \
			break; \
		    fi \
		done; \
	    done; \
	    for file in ${DISTPATCHES} ; do zcat $${file}; done | \
		sed -e '1,/-----8</d' -e '/-----8</,/-----8</d' | uudecode; \
	    rm -f ${DISTPATCHES};\
	 fi)
.endif

.include <bsd.port.mk>