summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-08-29 12:04:38 +0000
committernia <nia@pkgsrc.org>2019-08-29 12:04:38 +0000
commitfc4504acdb8a3eca3bfda007bb892398c6e4c959 (patch)
treebfd23464d1a4b30aa524217bbe739333de69e018 /devel
parent3f00c84ec8954724a6558b12e8594eb3e63f7a2d (diff)
downloadpkgsrc-fc4504acdb8a3eca3bfda007bb892398c6e4c959.tar.gz
wayland: Add platform.mk, based on rust's.
Diffstat (limited to 'devel')
-rw-r--r--devel/wayland/platform.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/wayland/platform.mk b/devel/wayland/platform.mk
new file mode 100644
index 00000000000..b72828600d6
--- /dev/null
+++ b/devel/wayland/platform.mk
@@ -0,0 +1,18 @@
+# $NetBSD: platform.mk,v 1.1 2019/08/29 12:04:38 nia Exp $
+
+.if !defined(PLATFORM_SUPPORTS_WAYLAND)
+
+# Please only add operating systems here after verifying that both
+# devel/wayland and devel/wayland-protocols build.
+.for _wayland_os in NetBSD
+WAYLAND_PLATFORMS+= ${_wayland_os}-*-*
+.endfor
+
+.for _wayland_platform in ${WAYLAND_PLATFORMS}
+.if !empty(MACHINE_PLATFORM:M${_wayland_platform})
+PLATFORM_SUPPORTS_WAYLAND= yes
+.endif
+.endfor
+PLATFORM_SUPPORTS_WAYLAND?= no
+
+.endif # !defined(PLATFORM_SUPPORTS_WAYLAND)