summaryrefslogtreecommitdiff
path: root/misc/kdeutils2/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-07-29 05:51:50 +0000
committertron <tron@pkgsrc.org>2001-07-29 05:51:50 +0000
commitd934b370cbbbae5dff72fd2e3f54f404706ecddd (patch)
tree65420cadd3d739177055043617662c69f6dfb475 /misc/kdeutils2/Makefile
parent953186801e9929ab1bafbb5246c1476449562072 (diff)
downloadpkgsrc-d934b370cbbbae5dff72fd2e3f54f404706ecddd.tar.gz
Only enable APM support on NetBSD ports which support it. Fixes
PR pkg/13585 by Jim Bernard.
Diffstat (limited to 'misc/kdeutils2/Makefile')
-rw-r--r--misc/kdeutils2/Makefile8
1 files changed, 7 insertions, 1 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"