svn commit: r438656 - head/archivers/pbzip2
Alexey Dokuchaev
danfe at FreeBSD.org
Sun Apr 16 12:03:07 UTC 2017
Author: danfe
Date: Sun Apr 16 12:03:05 2017
New Revision: 438656
URL: https://svnweb.freebsd.org/changeset/ports/438656
Log:
Remove dependency on GNU make(1).
It turns out that GNU make(1) is only required because their make(1) spells
target dependencies as $^ while ours use $>. This change makes the pbzip2's
Makefile both GNU and BSD make(1) friendly at the same time.
This is required to be able to use `archivers/pbzip2' port as a PKG_DEPEND.
Approved by: farrokhi (maintainer)
Modified:
head/archivers/pbzip2/Makefile
Modified: head/archivers/pbzip2/Makefile
==============================================================================
--- head/archivers/pbzip2/Makefile Sun Apr 16 12:00:13 2017 (r438655)
+++ head/archivers/pbzip2/Makefile Sun Apr 16 12:03:05 2017 (r438656)
@@ -11,12 +11,15 @@ COMMENT= Parallel BZIP2
LICENSE= BSD4CLAUSE
-USES= gmake
MAKE_ARGS= CFLAGS="${CXXFLAGS}" CC="${CXX}"
PLIST_FILES= bin/pbzip2 bin/pbunzip2 \
man/man1/pbzip2.1.gz man/man1/pbunzip2.1.gz
+post-patch:
+# Spell target sources to be understood by both BSD and GNU make(1)
+ @${REINPLACE_CMD} -e 's,$$^,$$>&,' ${WRKSRC}/Makefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/pbunzip2
More information about the svn-ports-head
mailing list