summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-03-16 21:51:01 +0000
committertnn <tnn@pkgsrc.org>2015-03-16 21:51:01 +0000
commit5c07331caec90986d0b89651603e72258df1b693 (patch)
tree1f9e493c8340981cf4df460ee25d5eb11b64153c /multimedia
parente60e7b73b3dc24d8abd78a75b39d225739f30caf (diff)
downloadpkgsrc-5c07331caec90986d0b89651603e72258df1b693.tar.gz
Apply some band aid to make it build for NetBSD-current / MKLLVM=yes users
since we don't yet ship stdatomic.h.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/vlc21/hacks.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/multimedia/vlc21/hacks.mk b/multimedia/vlc21/hacks.mk
new file mode 100644
index 00000000000..0c53713ae8f
--- /dev/null
+++ b/multimedia/vlc21/hacks.mk
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2015/03/16 21:51:01 tnn Exp $
+
+.if !defined(VLC21_HACKS_MK)
+VLC21_HACKS_MK= # empty
+
+# vlc_atomic.h rightly assumes "uses clang (support for C11)" implies
+# "ships stdatomic.h" but for us this is not yet the case.
+# This hack should be removed when -current has stdatomic.h.
+.if ${OPSYS} == "NetBSD" && \
+ exists(/usr/bin/clang) && \
+ !exists(/usr/include/stdatomic.h)
+CPPFLAGS+= -D__STDC_NO_ATOMICS__
+.endif
+
+.endif