diff --git a/jafar-image/Makefile b/jafar-image/Makefile index 6858ed84c81f6a32d3c87bf171ac18c7144e55eb..bc691cff94ad536231f0165edb1d0022d0f67655 100644 --- a/jafar-image/Makefile +++ b/jafar-image/Makefile @@ -1,4 +1,5 @@ PKGVERSION= 2.1 +PKGREVISION= 1 DISTNAME= jafar-image-2.1 PKGNAME= jafar-image-2.1 CATEGORIES= image diff --git a/jafar-image/distinfo b/jafar-image/distinfo index ff62541bfede3173d6dbfe0047558b0b604e776e..5c37a042dc72e94065772a3df361f99ae4c3c841 100644 --- a/jafar-image/distinfo +++ b/jafar-image/distinfo @@ -1,3 +1,4 @@ SHA1 (jafar-image-2.1.tar.gz) = ac650ba22f4d1004d1b8f0d6eac863f9e4bdbf11 RMD160 (jafar-image-2.1.tar.gz) = 55112939abd8c40a195699d35c72271367323f05 Size (jafar-image-2.1.tar.gz) = 148533 bytes +SHA1 (patch-aa) = a73cb4873d12f264141b99116fbb412af0875e91 diff --git a/jafar-image/patches/patch-aa b/jafar-image/patches/patch-aa new file mode 100644 index 0000000000000000000000000000000000000000..1f10d4d5b458aaff942c1cc3c068842ee05a205e --- /dev/null +++ b/jafar-image/patches/patch-aa @@ -0,0 +1,16 @@ +diff --git a/include/image/Image.hpp b/include/image/Image.hpp +nearbyint is not supported on NetBSD. Moreover, the lrint semantic is more +correct in this case. + +index 53f32f3..c37d501 100644 +--- include/image/Image.hpp ++++ include/image/Image.hpp +@@ -594,7 +594,7 @@ namespace jafar { + { + case JfrImage_INTERP_NEAREST: + { +- return getPixelValue<channeltype>( (int)nearbyint( x_ ), (int)nearbyint( y_ ), channel_ ); ++ return getPixelValue<channeltype>( lrint( x_ ), lrint( y_ ), channel_ ); + } + case JfrImage_INTERP_BILINEAR: + {