summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authortron <tron>2001-07-29 05:51:50 +0000
committertron <tron>2001-07-29 05:51:50 +0000
commit234d6e73c3d6cb1206450c01da696d3869c45960 (patch)
tree65420cadd3d739177055043617662c69f6dfb475 /misc
parentdec71f42ef81fd5d59746b17505f190731e3564a (diff)
downloadpkgsrc-234d6e73c3d6cb1206450c01da696d3869c45960.tar.gz
Only enable APM support on NetBSD ports which support it. Fixes
PR pkg/13585 by Jim Bernard.
Diffstat (limited to 'misc')
-rw-r--r--misc/kdeutils2/Makefile8
-rw-r--r--misc/kdeutils2/distinfo4
-rw-r--r--misc/kdeutils2/patches/patch-ai4
3 files changed, 11 insertions, 5 deletions
diff --git a/misc/kdeutils2/Makefile b/misc/kdeutils2/Makefile
index 9dfe4116502..c5af3bb80e4 100644
--- a/misc/kdeutils2/Makefile
+++ b/misc/kdeutils2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2001/06/12 20:33:05 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2001/07/29 05:51:50 tron Exp $
#
DISTNAME= kdeutils-2.1
@@ -12,4 +12,10 @@ DEPENDS+= kdebase-2.1:../../x11/kdebase2
LIBS= -Wl,--export-dynamic
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "NetBSD") && exists(/usr/include/machine/apmvar.h)
+CPPFLAGS+= -D__NetBSD_APM__
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/kdeutils2/distinfo b/misc/kdeutils2/distinfo
index b6ef7b2b5bd..19b208a6af6 100644
--- a/misc/kdeutils2/distinfo
+++ b/misc/kdeutils2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2001/07/22 14:08:31 skrll Exp $
+$NetBSD: distinfo,v 1.4 2001/07/29 05:51:50 tron Exp $
SHA1 (kdeutils-2.1.tar.bz2) = 99b9fec70c619c41a3878391ca277ab2a9e88275
Size (kdeutils-2.1.tar.bz2) = 1210641 bytes
@@ -10,4 +10,4 @@ SHA1 (patch-ae) = 0176cdb16b8933e5c3ca713242c4c432d636e38d
SHA1 (patch-af) = 99d187f91a773aa85a99ff9b0778ff701626a45e
SHA1 (patch-ag) = af3aa6f6e0eed4dc321d1ac4de3a868209ce1336
SHA1 (patch-ah) = 148525fad0faee112a925f0bb5b2b1c812acc473
-SHA1 (patch-ai) = de789743f069270c8f95248c83e51150ce7a47a9
+SHA1 (patch-ai) = a0845618f0657043aa466105d70f6277b69ecfd9
diff --git a/misc/kdeutils2/patches/patch-ai b/misc/kdeutils2/patches/patch-ai
index 1cb3127e784..afbafa5394d 100644
--- a/misc/kdeutils2/patches/patch-ai
+++ b/misc/kdeutils2/patches/patch-ai
@@ -1,4 +1,4 @@
-$NetBSD: patch-ai,v 1.1 2001/07/22 14:08:32 skrll Exp $
+$NetBSD: patch-ai,v 1.2 2001/07/29 05:51:51 tron Exp $
--- klaptopdaemon/portable.cpp.orig Sun Feb 18 15:31:14 2001
+++ klaptopdaemon/portable.cpp
@@ -7,7 +7,7 @@ $NetBSD: patch-ai,v 1.1 2001/07/22 14:08:32 skrll Exp $
return(1);
}
+
-+#elif __NetBSD__
++#elif __NetBSD_APM__
+
+#include <errno.h>
+#include <fcntl.h>