blob: f99ea34a075aa882e36549e79513fa4d27dabf5a (
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
38
39
|
PORTNAME= pigz
PORTVERSION= 2.7
CATEGORIES= archivers
MASTER_SITES= http://www.zlib.net/pigz/ \
http://freebsd.unixfreunde.de/sources/
MAINTAINER= delphij@FreeBSD.org
COMMENT= Parallel GZIP
WWW= https://www.zlib.net/pigz/
LICENSE= ZLIB
LIB_DEPENDS= libzopfli.so:archivers/zopfli
USES= cpe gmake localbase:ldflags
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+= share/man/man1/pigz.1.gz
post-patch:
${REINPLACE_CMD} -e 's/$$(ZOPFLI).*//' \
-e 's/$$(ZOP).*//' \
${WRKSRC}/Makefile
${REINPLACE_CMD} -E -e 's/-o pigz(t?) /-pthread -o pigz\1 /' \
${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}${PREFIX}/share/man/man1/
.include <bsd.port.mk>
|