2013-06-26 19:15:45 +02:00
|
|
|
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
2008-06-18 20:47:28 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pigz
|
2015-01-26 04:48:23 +01:00
|
|
|
PORTVERSION= 2.3.3
|
2015-08-16 05:03:39 +02:00
|
|
|
PORTREVISION= 1
|
2008-06-18 20:47:28 +02:00
|
|
|
CATEGORIES= archivers
|
2012-08-01 10:52:37 +02:00
|
|
|
MASTER_SITES= http://www.zlib.net/pigz/ \
|
|
|
|
http://freebsd.unixfreunde.de/sources/
|
2008-06-18 20:47:28 +02:00
|
|
|
|
2014-06-30 17:54:02 +02:00
|
|
|
MAINTAINER= delphij@FreeBSD.org
|
2008-06-18 20:47:28 +02:00
|
|
|
COMMENT= Parallel GZIP
|
|
|
|
|
2015-08-16 05:03:39 +02:00
|
|
|
LICENSE= ZLIB
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libzopfli.so:archivers/zopfli
|
2015-08-16 05:03:39 +02:00
|
|
|
|
2016-09-30 21:24:30 +02:00
|
|
|
USES= cpe gmake localbase:ldflags
|
2015-04-18 03:54:30 +02:00
|
|
|
CPE_VENDOR= zlib
|
2015-08-16 05:03:39 +02:00
|
|
|
ALL_TARGET= dev
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
LDFLAGS+= -lz -lzopfli
|
2013-06-26 19:15:45 +02:00
|
|
|
|
2013-12-02 05:34:58 +01:00
|
|
|
PLIST_FILES= bin/pigz bin/pigzn bin/pigzt bin/unpigz
|
|
|
|
PLIST_FILES+= man/man1/pigz.1.gz
|
2010-04-19 21:27:47 +02:00
|
|
|
|
2013-06-26 19:15:45 +02:00
|
|
|
post-patch:
|
2015-08-16 05:03:39 +02:00
|
|
|
${REINPLACE_CMD} -e 's/$${ZOPFLI}.*//' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
${REINPLACE_CMD} -e 's,zopfli/src/,,' \
|
|
|
|
${WRKSRC}/pigz.c
|
2013-06-26 19:15:45 +02:00
|
|
|
|
2008-06-18 20:47:28 +02:00
|
|
|
do-install:
|
2009-08-13 17:07:53 +02:00
|
|
|
.for FILE in pigz pigzn pigzt unpigz
|
2013-12-02 05:34:58 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/bin
|
2009-02-08 11:36:49 +01:00
|
|
|
.endfor
|
2013-12-02 05:34:58 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pigz.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
2010-04-19 21:27:47 +02:00
|
|
|
|
2008-06-18 20:47:28 +02:00
|
|
|
.include <bsd.port.mk>
|