head 1.2; access; symbols pkgsrc-2019Q2:1.1.0.32 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.30 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.28 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.26 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.24 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.22 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.20 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.18 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.14 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.12 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.10 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.8 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.6 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.4 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.2 pkgsrc-2015Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2019.07.30.15.32.48; author nia; state dead; branches; next 1.1; commitid m76lMmFatBQb85xB; 1.1 date 2015.10.17.10.28.43; author fhajny; state Exp; branches; next ; commitid aB3tmdk8RUsvRrFy; desc @@ 1.2 log @Remove graphics/opencv2 replacement graphics/opencv. This is a legacy version which has received little love since it was imported, and nothing in pkgsrc is using it. @ text @$NetBSD: patch-modules_contrib_src_inputoutput.cpp,v 1.1 2015/10/17 10:28:43 fhajny Exp $ SunOS does not have dirent d_type. --- modules/contrib/src/inputoutput.cpp.orig 2015-02-25 12:10:31.000000000 +0000 +++ modules/contrib/src/inputoutput.cpp @@@@ -6,6 +6,9 @@@@ #include #include #else +#ifdef __sun + #include +#endif #include #endif @@@@ -72,6 +75,10 @@@@ namespace cv (void)addPath; DIR *dp; struct dirent *dirp; +#ifdef __sun + struct stat sb; + char buf[PATH_MAX]; +#endif if((dp = opendir(path.c_str())) == NULL) { return list; @@@@ -96,6 +103,10 @@@@ namespace cv extra = _DEXTRA_NEXT(extra), extra_stat = reinterpret_cast(extra)) if ((extra->d_type != _DTYPE_NONE) && S_ISREG(extra_stat->d_stat.st_mode)) + #elif defined(__sun) + snprintf(buf, PATH_MAX, "%s/%s", path.c_str(), dirp->d_name); + stat(buf, &sb); + if (S_ISREG(sb.st_mode)) #else if (dirp->d_type == DT_REG) #endif @@@@ -181,6 +192,10 @@@@ namespace cv (void)addPath; DIR *dp; struct dirent *dirp; +#ifdef __sun + struct stat sb; + char buf[PATH_MAX]; +#endif if((dp = opendir(path_f.c_str())) == NULL) { return list; @@@@ -206,6 +221,10 @@@@ namespace cv extra_stat = reinterpret_cast(extra)) if ((extra->d_type != _DTYPE_NONE) && S_ISDIR(extra_stat->d_stat.st_mode) && + #elif defined(__sun) + snprintf(buf, PATH_MAX, "%s/%s", path.c_str(), dirp->d_name); + stat(buf, &sb); + if (S_ISDIR(sb.st_mode) && #else if (dirp->d_type == DT_DIR && #endif @ 1.1 log @Import the last state of graphics/opencv before the update to 3.0.0 and update it to the latest version on the 2.4 branch. The graphics/opencv base package doesn't yet provide the same range of modules, as upstream split off some experimental modules into a separate contrib repo. @ text @d1 1 a1 1 $NetBSD: patch-modules_contrib_src_inputoutput.cpp,v 1.1 2013/06/12 10:13:58 jperkin Exp $ @