mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
Unbreak the build on Tier-2 architectures.
Tested on: flame (sparc64), pluto (ia64), local Mac mini G4 (powerpc)
This commit is contained in:
parent
124049d6c3
commit
0f839cd669
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396176
@ -15,10 +15,6 @@ COMMENT= Tools for the Wi-Spy spectrum analyzers from MetaGeek LLC
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user