aboutsummaryrefslogtreecommitdiff
path: root/sysutils/wmhm
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2007-03-24 13:39:18 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2007-03-24 13:39:18 +0000
commit134d97e1fd2201b9a28717e8ed461675a246e1cc (patch)
tree7c785af0c047c8a61bfb549a1823f3813bc2e6e2 /sysutils/wmhm
parent1fe8b089ca8d859be2b940219ef8e8eb52074f82 (diff)
downloadports-134d97e1fd2201b9a28717e8ed461675a246e1cc.tar.gz
ports-134d97e1fd2201b9a28717e8ed461675a246e1cc.zip
Notes
Diffstat (limited to 'sysutils/wmhm')
-rw-r--r--sysutils/wmhm/Makefile4
-rw-r--r--sysutils/wmhm/files/patch-ac10
2 files changed, 11 insertions, 3 deletions
diff --git a/sysutils/wmhm/Makefile b/sysutils/wmhm/Makefile
index df3f9e7189d2..56b91bc7afab 100644
--- a/sysutils/wmhm/Makefile
+++ b/sysutils/wmhm/Makefile
@@ -30,6 +30,10 @@ CONFIGURE_ARGS+=--with-xpm-includes=${X11BASE}/include \
.include <bsd.port.pre.mk>
+.if (${OSVERSION} < 601000) && (${ARCH} == "amd64")
+IGNORE= 5.x does not support speaker(4)
+.endif
+
post-install:
${STRIP_CMD} ${PREFIX}/bin/wmhm
diff --git a/sysutils/wmhm/files/patch-ac b/sysutils/wmhm/files/patch-ac
index 44a782adaacd..c7f2b816ee52 100644
--- a/sysutils/wmhm/files/patch-ac
+++ b/sysutils/wmhm/files/patch-ac
@@ -1,11 +1,15 @@
--- operations.c.orig Sun Jul 22 07:00:55 2001
-+++ operations.c Sat Mar 17 17:43:22 2007
-@@ -39,12 +39,11 @@
++++ operations.c Sat Mar 24 14:29:26 2007
+@@ -39,12 +39,16 @@
#include <unistd.h>
#include <math.h>
#include <machine/cpufunc.h>
--#include <machine/speaker.h>
++#include <osreldate.h>
++#if __FreeBSD_version >= 601000
+#include <dev/speaker/speaker.h>
++#else
+ #include <machine/speaker.h>
++#endif
#ifdef HAVE_SMBUS
-#include <machine/smb.h>