Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2018 08:33:24 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r460675 - head/archivers/pbzip2
Message-ID:  <201802020833.w128XOS6022184@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Fri Feb  2 08:33:24 2018
New Revision: 460675
URL: https://svnweb.freebsd.org/changeset/ports/460675

Log:
  Unbreak the build against Clang 6.0.0 and respect CXXFLAGS.
  
  PR:	225555

Modified:
  head/archivers/pbzip2/Makefile

Modified: head/archivers/pbzip2/Makefile
==============================================================================
--- head/archivers/pbzip2/Makefile	Fri Feb  2 07:13:35 2018	(r460674)
+++ head/archivers/pbzip2/Makefile	Fri Feb  2 08:33:24 2018	(r460675)
@@ -17,8 +17,11 @@ PLIST_FILES=	bin/pbzip2 bin/pbunzip2 \
 		man/man1/pbzip2.1.gz man/man1/pbunzip2.1.gz
 
 post-patch:
+	@${REINPLACE_CMD} -e 's,PRI[iu]MAX, & ,g' ${WRKSRC}/pbzip2.cpp \
+		${WRKSRC}/BZ2StreamScanner.cpp
 # Spell target sources to be understood by both BSD and GNU make(1)
-	@${REINPLACE_CMD} -e 's,$$^,$$>&,' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e '/-O2/s,^,#, ; s,$$^,$$>&,' \
+		${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802020833.w128XOS6022184>