summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/opencv-contrib-face/Makefile5
-rw-r--r--graphics/opencv/Makefile5
2 files changed, 8 insertions, 2 deletions
diff --git a/graphics/opencv-contrib-face/Makefile b/graphics/opencv-contrib-face/Makefile
index b3eef06a863..7793edf6017 100644
--- a/graphics/opencv-contrib-face/Makefile
+++ b/graphics/opencv-contrib-face/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2016/03/29 10:08:08 markd Exp $
+# $NetBSD: Makefile,v 1.7 2016/12/24 00:00:06 markd Exp $
DISTNAME= opencv_contrib-3.1.0
PKGNAME= ${DISTNAME:S/_contrib/-contrib-face/}
@@ -34,6 +34,9 @@ CMAKE_ARGS+= -D BUILD_DOCS=OFF
CXXFLAGS+= -std=c++11
.endif
+# jasper uses SIZE_MAX and friends in its headers.
+CXXFLAGS+= -D__STDC_LIMIT_MACROS
+
CMAKE_ARGS+= -DZLIB_ROOT=${BUILDLINK_PREFIX.zlib}
CMAKE_ARGS.SunOS+= -DENABLE_PRECOMPILED_HEADERS=NO
CMAKE_ARGS+= -DWITH_EIGEN=NO
diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile
index b7c394750e9..4272d9741d5 100644
--- a/graphics/opencv/Makefile
+++ b/graphics/opencv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.64 2016/08/17 00:06:42 ryoon Exp $
+# $NetBSD: Makefile,v 1.65 2016/12/24 00:00:06 markd Exp $
DISTNAME= opencv-3.1.0
PKGREVISION= 2
@@ -42,6 +42,9 @@ CMAKE_ARGS+= -DWITH_EIGEN=NO
CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
+# jasper uses SIZE_MAX and friends in its headers.
+CXXFLAGS+= -D__STDC_LIMIT_MACROS
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/jasper/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"