summaryrefslogtreecommitdiff
path: root/archivers/pigz/Makefile
blob: 021fe9deb270323000b79e2755a825436249e521 (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
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=	pigz
PORTVERSION=	2.3
CATEGORIES=	archivers
MASTER_SITES=	http://www.zlib.net/pigz/ \
		http://freebsd.unixfreunde.de/sources/

MAINTAINER=	gslin@gslin.org
COMMENT=	Parallel GZIP

USES=		gmake

.if !defined(NO_INSTALL_MANPAGES)
MAN1=	pigz.1
.endif

post-patch:
	${REINPLACE_CMD} -e 's/ -lz/ -lm -lz/g' ${WRKSRC}/Makefile

do-install:
.for FILE in pigz pigzn pigzt unpigz
	${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${PREFIX}/bin
.endfor
.if !defined(NO_INSTALL_MANPAGES)
	${INSTALL_MAN} ${WRKSRC}/pigz.1 ${MAN1PREFIX}/man/man1/
.endif

.include <bsd.port.mk>