pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/vlc vlc: reinstate hacks.mk, I'm not paying...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2c45bd5e5e65
branches:  trunk
changeset: 335928:2c45bd5e5e65
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Jul 02 20:55:21 2019 +0000

description:
vlc: reinstate hacks.mk, I'm not paying enough attention

diffstat:

 multimedia/vlc/hacks.mk |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r fc5cd546331c -r 2c45bd5e5e65 multimedia/vlc/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/vlc/hacks.mk   Tue Jul 02 20:55:21 2019 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.5 2019/07/02 20:55:21 nia Exp $
+
+.if !defined(VLC_HACKS_MK)
+VLC_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