pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/libv4l libv4l: Support newer GCC and clang on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9deb68892580
branches:  trunk
changeset: 374957:9deb68892580
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Feb 01 10:19:25 2018 +0000

description:
libv4l: Support newer GCC and clang on SunOS.

diffstat:

 graphics/libv4l/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 3b8bc53c0db9 -r 9deb68892580 graphics/libv4l/Makefile
--- a/graphics/libv4l/Makefile  Thu Feb 01 10:09:38 2018 +0000
+++ b/graphics/libv4l/Makefile  Thu Feb 01 10:19:25 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2017/11/06 13:39:17 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2018/02/01 10:19:25 jperkin Exp $
 
 DISTNAME=      libv4l-0.4.3
 PKGREVISION=   3
@@ -38,7 +38,11 @@
 
 PLIST_VARS=    needs_videoio
 
+.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
+CPPFLAGS.SunOS+=       -D_XOPEN_SOURCE=600
+.else
 CPPFLAGS.SunOS+=       -D_XOPEN_SOURCE=500
+.endif
 
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index