svn commit: r396176 - head/net-mgmt/spectools

Alexey Dokuchaev danfe at FreeBSD.org
Sat Sep 5 14:35:22 UTC 2015


Author: danfe
Date: Sat Sep  5 14:35:21 2015
New Revision: 396176
URL: https://svnweb.freebsd.org/changeset/ports/396176

Log:
  Unbreak the build on Tier-2 architectures.
  
  Tested on:	flame (sparc64), pluto (ia64), local Mac mini G4 (powerpc)

Modified:
  head/net-mgmt/spectools/Makefile

Modified: head/net-mgmt/spectools/Makefile
==============================================================================
--- head/net-mgmt/spectools/Makefile	Sat Sep  5 14:34:18 2015	(r396175)
+++ head/net-mgmt/spectools/Makefile	Sat Sep  5 14:35:21 2015	(r396176)
@@ -15,10 +15,6 @@ COMMENT=	Tools for the Wi-Spy spectrum a
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/GPL
 
-BROKEN_ia64=	does not build: duplicate definition of malloc
-BROKEN_powerpc=	does not build: duplicate definition of malloc
-BROKEN_sparc64=	does not build: duplicate definition of malloc
-
 USES=		gmake pkgconfig
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
@@ -35,6 +31,15 @@ GTK2_ALL_TARGET=	spectool_gtk
 GTK2_USE=		GNOME=gtk20
 NCURSES_ALL_TARGET=	spectool_curses
 
+post-patch:
+# Provide the prototype for malloc(3)
+	@${REINPLACE_CMD} -e '/<pthread\.h>/ \
+		{ x; s/.*/#include <stdlib.h>/; G; }' \
+			${WRKSRC}/ubertooth_hw_u1.c \
+			${WRKSRC}/wispy_hw_24x.c \
+			${WRKSRC}/wispy_hw_dbx.c \
+			${WRKSRC}/wispy_hw_gen1.c
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/spectool_net ${STAGEDIR}/${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/spectool_raw ${STAGEDIR}/${PREFIX}/bin


More information about the svn-ports-head mailing list