Date: Sat, 5 Sep 2015 14:35:22 +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: r396176 - head/net-mgmt/spectools Message-ID: <201509051435.t85EZMWZ093583@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509051435.t85EZMWZ093583>