diff --git a/net/wistumbler2/Makefile b/net/wistumbler2/Makefile index 0f3c9761c1b4..0e93eb3e159f 100644 --- a/net/wistumbler2/Makefile +++ b/net/wistumbler2/Makefile @@ -34,8 +34,8 @@ MAKE_ENV= PREFIX=${LOCALBASE} USE_GTK=0 .include -.if ${ARCH} != "i386" || ${OSVERSION} < 500000 -BROKEN= "Does not compile on !i386 or 4.x" +.if ${OSVERSION} < 500000 +BROKEN= "Does not compile on 4.x" .endif pre-everything:: diff --git a/net/wistumbler2/files/patch-gpscontrol.c b/net/wistumbler2/files/patch-gpscontrol.c new file mode 100644 index 000000000000..5703576d050a --- /dev/null +++ b/net/wistumbler2/files/patch-gpscontrol.c @@ -0,0 +1,12 @@ +--- src/gpscontrol.c.orig Sat Nov 15 22:44:45 2003 ++++ src/gpscontrol.c Sun Mar 14 00:15:19 2004 +@@ -37,6 +37,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #include + #include "gpscontrol.h" + diff --git a/net/wistumbler2/files/patch-speaker.c b/net/wistumbler2/files/patch-speaker.c new file mode 100644 index 000000000000..bd8ec197dc2a --- /dev/null +++ b/net/wistumbler2/files/patch-speaker.c @@ -0,0 +1,42 @@ +--- src/speaker.c.orig Mon Nov 17 21:47:38 2003 ++++ src/speaker.c Sun Mar 14 00:15:30 2004 +@@ -31,16 +31,29 @@ + * $Id: stumbler.c,v 1.5 2003/11/14 15:54:29 pancake Exp $ + */ + ++#ifdef __FreeBSD__ ++#ifdef __i386__ ++#define _HAVE_SPEAKER ++#endif ++#elif __NetBSD__ ++#define _HAVE_SPEAKER ++#endif ++ ++ + #include + #include + #include + #include + #ifdef __FreeBSD__ ++#ifdef _HAVE_SPEAKER + #include ++#endif + #else + #include + #endif + ++#ifdef _HAVE_SPEAKER ++ + #define SPKR_DEV "/dev/speaker" + #define SPKR_SPD "L08" + +@@ -100,4 +113,8 @@ + //} + fclose(fd); + } +- ++#else ++ /* no speaker support */ ++void swap_beep(void) {} ++void do_beep(int pc) {} ++#endif