pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/vlc21 Apply some band aid to make it build ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bf57b50bf02d
branches: trunk
changeset: 648687:bf57b50bf02d
user: tnn <tnn%pkgsrc.org@localhost>
date: Mon Mar 16 21:51:01 2015 +0000
description:
Apply some band aid to make it build for NetBSD-current / MKLLVM=yes users
since we don't yet ship stdatomic.h.
diffstat:
multimedia/vlc21/hacks.mk | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 04b071c9b5d3 -r bf57b50bf02d multimedia/vlc21/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/vlc21/hacks.mk Mon Mar 16 21:51:01 2015 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index