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/956633fc2a41
branches:  trunk
changeset: 397759:956633fc2a41
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 a617ecf57354 -r 956633fc2a41 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