From 19954bc0f868cb0e10a019f28b91e69e6e68633d Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Mon, 24 Feb 2014 15:00:15 +0000 Subject: [PATCH] - Support staging - Respect CC - Respect CFLAGS - This port does not build with clang, use gcc --- net/shaperprobe/Makefile | 5 +++-- net/shaperprobe/files/patch-Makefile.osx | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 net/shaperprobe/files/patch-Makefile.osx diff --git a/net/shaperprobe/Makefile b/net/shaperprobe/Makefile index be6d7bb0ca61..c9c7a456d08f 100644 --- a/net/shaperprobe/Makefile +++ b/net/shaperprobe/Makefile @@ -13,11 +13,12 @@ COMMENT= Utility to check for traffic shapers LICENSE= GPLv2 +USE_GCC= yes + MAKEFILE= Makefile.osx PLIST_FILES= bin/prober -NO_STAGE= yes do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/prober ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/prober ${STAGEDIR}${PREFIX}/bin .include diff --git a/net/shaperprobe/files/patch-Makefile.osx b/net/shaperprobe/files/patch-Makefile.osx new file mode 100644 index 000000000000..617fe99b9e10 --- /dev/null +++ b/net/shaperprobe/files/patch-Makefile.osx @@ -0,0 +1,12 @@ +--- Makefile.osx.orig 2012-01-24 21:33:22.000000000 +0100 ++++ Makefile.osx 2014-02-24 15:57:22.575172070 +0100 +@@ -1,7 +1,7 @@ + +-CC=gcc ++CC?=gcc + +-CFLAGS=-c -Wall -O3 -fno-strict-aliasing -DOSX ++CFLAGS+=-c -DOSX + LDFLAGS=-lm + + SOURCES=prober.c tcp_client.c tcpserver.c wrappers.c tbdetect.c measflow.c