pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/libv4l



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Feb  1 10:19:25 UTC 2018

Modified Files:
        pkgsrc/graphics/libv4l: Makefile

Log Message:
libv4l: Support newer GCC and clang on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/graphics/libv4l/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/libv4l/Makefile
diff -u pkgsrc/graphics/libv4l/Makefile:1.14 pkgsrc/graphics/libv4l/Makefile:1.15
--- pkgsrc/graphics/libv4l/Makefile:1.14        Mon Nov  6 13:39:17 2017
+++ pkgsrc/graphics/libv4l/Makefile     Thu Feb  1 10:19:25 2018
@@ -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 @@ pre-configure:
 
 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