1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/archivers/pigz/Makefile

40 lines
922 B
Makefile
Raw Normal View History

# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= pigz
2015-01-26 03:48:23 +00:00
PORTVERSION= 2.3.3
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://www.zlib.net/pigz/ \
http://freebsd.unixfreunde.de/sources/
2014-06-30 15:54:02 +00:00
MAINTAINER= delphij@FreeBSD.org
COMMENT= Parallel GZIP
LICENSE= ZLIB
LIB_DEPENDS= libzopfli.so:${PORTSDIR}/archivers/zopfli
USES= cpe gmake localbase
CPE_VENDOR= zlib
ALL_TARGET= dev
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
LDFLAGS+= -lz -lzopfli
PLIST_FILES= bin/pigz bin/pigzn bin/pigzt bin/unpigz
PLIST_FILES+= man/man1/pigz.1.gz
post-patch:
${REINPLACE_CMD} -e 's/$${ZOPFLI}.*//' \
${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's,zopfli/src/,,' \
${WRKSRC}/pigz.c
do-install:
.for FILE in pigz pigzn pigzt unpigz
${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/bin
.endfor
${INSTALL_MAN} ${WRKSRC}/pigz.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
.include <bsd.port.mk>