svn commit: r348316 - head/net/shaperprobe

Alexey Dokuchaev danfe at FreeBSD.org
Sat Mar 15 12:06:50 UTC 2014


Author: danfe
Date: Sat Mar 15 12:06:49 2014
New Revision: 348316
URL: http://svnweb.freebsd.org/changeset/ports/348316
QAT: https://qat.redports.org/buildarchive/r348316/

Log:
  - Fix the build (linking) against Clang by uninlining couple of functions
  - While here, convert EXTRACT_SUFX to USES=tar:tgz and define ALL_TARGET,
    since upstream `all' target is racy

Modified:
  head/net/shaperprobe/Makefile

Modified: head/net/shaperprobe/Makefile
==============================================================================
--- head/net/shaperprobe/Makefile	Sat Mar 15 11:59:30 2014	(r348315)
+++ head/net/shaperprobe/Makefile	Sat Mar 15 12:06:49 2014	(r348316)
@@ -7,18 +7,24 @@ PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://www.cc.gatech.edu/~partha/diffprobe/
 DISTNAME=	${PORTNAME}
-EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	josh.carroll at gmail.com
 COMMENT=	Utility to check for traffic shapers
 
 LICENSE=	GPLv2
 
-USE_GCC=	yes
+USES=		tar:tgz
 
 MAKEFILE=	Makefile.osx
+ALL_TARGET=	prober
+
 PLIST_FILES=	bin/prober
 
+post-patch:
+# Unbreak the build against Clang
+	@${REINPLACE_CMD} -E '/getLevelShift|smoothFilterRate/s,^inline ,,' \
+		${WRKSRC}/tbdetect.c
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/prober ${STAGEDIR}${PREFIX}/bin
 


More information about the svn-ports-all mailing list