summaryrefslogtreecommitdiff
path: root/x11/startup-notification
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-02-02 11:33:32 +0000
committerwiz <wiz@pkgsrc.org>2012-02-02 11:33:32 +0000
commit430233c19e05f9619a2f54e50252cfcbd8965260 (patch)
tree4d6a22f24bb2523f4dd657a614115fc7cc56f72f /x11/startup-notification
parentd1dc93e3cb5ed2de6504c0c1878d99bd87ad85f1 (diff)
downloadpkgsrc-430233c19e05f9619a2f54e50252cfcbd8965260.tar.gz
On NetBSD<5.99 with native X, use startup-notification010 instead,
which does not use XCB (which is not provided by native X in older NetBSD releases). From Robert Elz.
Diffstat (limited to 'x11/startup-notification')
-rw-r--r--x11/startup-notification/buildlink3.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/x11/startup-notification/buildlink3.mk b/x11/startup-notification/buildlink3.mk
index 8afb200a94f..21cf7afaf94 100644
--- a/x11/startup-notification/buildlink3.mk
+++ b/x11/startup-notification/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.11 2009/11/08 18:59:56 jakllsch Exp $
+# $NetBSD: buildlink3.mk,v 1.12 2012/02/02 11:33:32 wiz Exp $
BUILDLINK_TREE+= startup-notification
@@ -7,7 +7,21 @@ STARTUP_NOTIFICATION_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.startup-notification+= startup-notification>=0.5
BUILDLINK_ABI_DEPENDS.startup-notification+= startup-notification>=0.8nb1
+
+.include "../../mk/bsd.fast.prefs.mk"
+.if ${X11_TYPE} == "modular"
+BUILDLINK_PKGSRCDIR.startup-notification?= ../../x11/startup-notification
+.else
+.if ${OPSYS} == "NetBSD"
+.if !empty(OS_VERSION:M5.99.*) || !empty(OS_VERSION:M[6789].*)
+BUILDLINK_PKGSRCDIR.startup-notification?= ../../x11/startup-notification
+.else
+BUILDLINK_PKGSRCDIR.startup-notification?= ../../x11/startup-notification010
+.endif
+.else #!NetBSD
BUILDLINK_PKGSRCDIR.startup-notification?= ../../x11/startup-notification
+.endif
+.endif
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"