summaryrefslogtreecommitdiff
path: root/wm/waimea
diff options
context:
space:
mode:
authorjoerg <joerg>2007-01-14 09:10:45 +0000
committerjoerg <joerg>2007-01-14 09:10:45 +0000
commit61ccb88f648df65c18d8eb4c08ac67bfda5c4d84 (patch)
tree6003aea3a5587f6a9a13f892e807561e666c1a36 /wm/waimea
parentef02aa68c286d2bcbac3936eb3e636156e84713d (diff)
downloadpkgsrc-61ccb88f648df65c18d8eb4c08ac67bfda5c4d84.tar.gz
Modular Xorg support. XXX The conditionals for the native case are nasty.
Diffstat (limited to 'wm/waimea')
-rw-r--r--wm/waimea/Makefile28
1 files changed, 20 insertions, 8 deletions
diff --git a/wm/waimea/Makefile b/wm/waimea/Makefile
index 7bd3f6b77d2..5d0fcf55144 100644
--- a/wm/waimea/Makefile
+++ b/wm/waimea/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2006/12/15 20:33:02 joerg Exp $
+# $NetBSD: Makefile,v 1.31 2007/01/14 09:10:45 joerg Exp $
#
DISTNAME= waimea-0.4.0
@@ -16,16 +16,28 @@ USE_TOOLS+= gmake perl:run pkg-config
.include "../../mk/bsd.prefs.mk"
-.if !exists(${X11BASE}/include/X11/extensions/Xinerama.h)
-CONFIGURE_ARGS+= --disable-xinerama
-.endif
+BUILDLINK_DEPMETHOD.libXt?= build
-.if !exists(${X11BASE}/include/X11/extensions/Xrender.h)
-CONFIGURE_ARGS+= --disable-render
-.endif
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
-.if !exists(${X11BASE}/include/X11/extensions/shape.h)
+.if ${X11_TYPE} != "native"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
+.include "../../x11/xextproto/buildlink3.mk"
+.else
+. if !exists(${X11BASE}/include/X11/extensions/Xinerama.h)
+CONFIGURE_ARGS+= --disable-xinerama
+. endif
+. if !exists(${X11BASE}/include/X11/extensions/Xrender.h)
+CONFIGURE_ARGS+= --disable-render
+. endif
+. if !exists(${X11BASE}/include/X11/extensions/shape.h)
CONFIGURE_ARGS+= --disable-shape
+. endif
.endif
CONFIGURE_ARGS+= --disable-randr