diff options
author | adam <adam@pkgsrc.org> | 2012-12-07 21:37:10 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2012-12-07 21:37:10 +0000 |
commit | eb688b85b999e9c685cebb213adf02b39aed2fef (patch) | |
tree | 58a814fe4f8869bac766aa32648952c55fe944cc /graphics/opencv | |
parent | 7b4857a82dbeae9d784fe2370b98b1290414745e (diff) | |
download | pkgsrc-eb688b85b999e9c685cebb213adf02b39aed2fef.tar.gz |
Fix oversaturated int type compilation error for programs depending on opencv
Diffstat (limited to 'graphics/opencv')
-rw-r--r-- | graphics/opencv/distinfo | 3 | ||||
-rw-r--r-- | graphics/opencv/patches/patch-modules_core_include_opencv2_core_types_c.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/graphics/opencv/distinfo b/graphics/opencv/distinfo index e4797d075c8..297183e194b 100644 --- a/graphics/opencv/distinfo +++ b/graphics/opencv/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.15 2012/12/03 13:04:24 ryoon Exp $ +$NetBSD: distinfo,v 1.16 2012/12/07 21:37:10 adam Exp $ SHA1 (OpenCV-2.4.3.tar.bz2) = 982be2c3e52dfc3e9d14692c60bc856b2b766be2 RMD160 (OpenCV-2.4.3.tar.bz2) = b862ddd9e7fefd885d78835660a9f5c9320889c2 Size (OpenCV-2.4.3.tar.bz2) = 67240491 bytes +SHA1 (patch-modules_core_include_opencv2_core_types_c.h) = c056068c01c417dc262f21c00324da7f86c0cd8e diff --git a/graphics/opencv/patches/patch-modules_core_include_opencv2_core_types_c.h b/graphics/opencv/patches/patch-modules_core_include_opencv2_core_types_c.h new file mode 100644 index 00000000000..d42f154a69b --- /dev/null +++ b/graphics/opencv/patches/patch-modules_core_include_opencv2_core_types_c.h @@ -0,0 +1,15 @@ +$NetBSD: patch-modules_core_include_opencv2_core_types_c.h,v 1.1 2012/12/07 21:37:10 adam Exp $ + +Define 'depth' as unsigned int, or IPL_DEPTH_SIGN=0x8000000 won't fit in int. + +--- modules/core/include/opencv2/core/types_c.h.orig 2012-12-07 21:15:58.000000000 +0000 ++++ modules/core/include/opencv2/core/types_c.h +@@ -473,7 +473,7 @@ typedef struct _IplImage + int ID; /* version (=0)*/ + int nChannels; /* Most of OpenCV functions support 1,2,3 or 4 channels */ + int alphaChannel; /* Ignored by OpenCV */ +- int depth; /* Pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, ++ unsigned int depth; /* Pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, + IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_DEPTH_64F are supported. */ + char colorModel[4]; /* Ignored by OpenCV */ + char channelSeq[4]; /* ditto */ |