summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>2002-06-04 06:50:13 +0000
committertron <tron>2002-06-04 06:50:13 +0000
commit136a4a3ffa1572e898cd6d045c9370156bdb422a (patch)
tree342ae93e570c3e5aff25e1b48cbbb237cdf97259
parentc78b050b2ef8f93e66f86fbe861e474492cb51f2 (diff)
downloadpkgsrc-136a4a3ffa1572e898cd6d045c9370156bdb422a.tar.gz
Fix build problem on post Mach VM systems where the UVM transition glue
has been removed.
-rw-r--r--sysutils/xosview/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysutils/xosview/Makefile b/sysutils/xosview/Makefile
index 9f47e06dd0e..cfcc317e1ee 100644
--- a/sysutils/xosview/Makefile
+++ b/sysutils/xosview/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2001/10/24 22:11:07 jlam Exp $
-#
+# $NetBSD: Makefile,v 1.39 2002/06/04 06:50:13 tron Exp $
DISTNAME= xosview-1.7.0.b
PKGNAME= xosview-1.7.0b
@@ -23,6 +22,11 @@ USE_BUILDLINK_ONLY= YES
.if ${OPSYS} == "NetBSD"
BUILD_DEFS= UVM
+
+.if !defined(UVM) && exists(/usr/include/uvm/uvm.h)
+UVM= # defined
+CFLAGS+= -DUVM
+.endif
.elif ${OPSYS} == "SunOS"
BUILD_DEPENDS+= egcs-1.1.2:../../lang/egcs
CONFIGURE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++