summaryrefslogtreecommitdiff
path: root/archivers/gzip-base/Makefile
blob: 313fbcd26313c0457fb10f9f000b00f812e9348b (plain)
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
# $NetBSD: Makefile,v 1.7 2001/02/16 13:15:30 wiz Exp $

DISTNAME=	gzip-1.2.4a
PKGNAME=	gzip-base-1.2.4a
CATEGORIES=	archivers
MASTER_SITES=   ${MASTER_SITE_GNU:=gzip/}
EXTRACT_SUFX=	.shar

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.gnu.org/software/gzip/gzip.html
COMMENT=	Compress or expand files

EXTRACT_CMD=	${SH} ${DOWNLOADED_DISTFILE}

GNU_CONFIGURE=	yes
BUILD_TARGET=	all manlinks=so
INSTALL_TARGET=	install manlinks=so

.if exists(/usr/bin/gzip)
IGNORE=		"${PKGNAME} is part of your ${OPSYS} distribution"
.endif

# We avoid using a patch for disabling the install of the info
# file.  The easu part is that "install-info" is not called so
# we can simply remove the single installed info file.

do-patch:
	f=${WRKSRC}/Makefile.in ; \
	[ -f $$f.orig ] || ${CP} $$f $$f.orig ; \
	${SED} \
		'/scriptdir/s/INSTALL_PROGRAM/INSTALL_DATA/' \
		< $$f.orig >$$f

post-install:
	-${RM} -f ${PREFIX}/info/gzip.info

.include "../../mk/bsd.pkg.mk"