1ee4da6dd1
USES=localbase:ldflags can be used to set LDFLAGS. Normally LDFLAGS appears too early on the command line causing some ports to link with their own libraries in LOCALBASE (if installed) instead of WRKSRC. Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as possible after anything a port Makefile might set. Use _USES_POST instead of .include in libedit.mk and libarchive.mk so things like 'USES=libedit localbase:ldflags' work correctly. Fix some issues with LIBS in some ports. Switch ports that don't support LIBS to localbase:ldflags. PR: 212987 Exp-run by: antoine Approved by: portmgr (antoine)
39 lines
918 B
Makefile
39 lines
918 B
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pigz
|
|
PORTVERSION= 2.3.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= http://www.zlib.net/pigz/ \
|
|
http://freebsd.unixfreunde.de/sources/
|
|
|
|
MAINTAINER= delphij@FreeBSD.org
|
|
COMMENT= Parallel GZIP
|
|
|
|
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+= 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>
|