diff options
Diffstat (limited to 'x11/randrext/Makefile')
-rw-r--r-- | x11/randrext/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/x11/randrext/Makefile b/x11/randrext/Makefile index c2a96cce40c..a1f43f61b8b 100644 --- a/x11/randrext/Makefile +++ b/x11/randrext/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2004/02/16 21:37:49 jlam Exp $ +# $NetBSD: Makefile,v 1.4 2004/03/15 17:30:18 recht Exp $ DISTNAME= randrext-1.0 CATEGORIES= x11 devel @@ -14,4 +14,14 @@ GNU_CONFIGURE= yes PKGCONFIG_OVERRIDE+= randr.pc.in +.include "../../mk/bsd.prefs.mk" + +# Xrandr won't build without the X Extension library which is only present +# in XFree86>=4.3. For this reason we don't need the header files. +.if !exists(${X11BASE}/include/X11/extensions/extutil.h) +PKG_SKIP_REASON= "Xrandr won't build without the X Extension" +PKG_SKIP_REASON+= "library which is only present in XFree86>=4.3." +PKG_SKIP_REASON+= "For this reason we don't need the header files." +.endif + .include "../../mk/bsd.pkg.mk" |