pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/babl babl: update to 0.1.92.
details: https://anonhg.NetBSD.org/pkgsrc/rev/1c4e35d626e1
branches: trunk
changeset: 381611:1c4e35d626e1
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Jul 10 20:23:38 2022 +0000
description:
babl: update to 0.1.92.
patch update from martin@, thanks!
2022-02-21 babl-0.1.90
Fixes for avoiding load of wrong SIMD extensions.
diffstat:
graphics/babl/Makefile | 7 +-
graphics/babl/PLIST | 4 +-
graphics/babl/distinfo | 10 +-
graphics/babl/patches/patch-extensions_gggl.c | 237 ++++++-------------------
4 files changed, 72 insertions(+), 186 deletions(-)
diffs (truncated from 482 to 300 lines):
diff -r 5d70e907333d -r 1c4e35d626e1 graphics/babl/Makefile
--- a/graphics/babl/Makefile Sun Jul 10 20:15:18 2022 +0000
+++ b/graphics/babl/Makefile Sun Jul 10 20:23:38 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.47 2022/04/12 23:43:44 tnn Exp $
+# $NetBSD: Makefile,v 1.48 2022/07/10 20:23:38 wiz Exp $
-DISTNAME= babl-0.1.90
-PKGREVISION= 1
+DISTNAME= babl-0.1.92
CATEGORIES= graphics
MASTER_SITES= https://download.gimp.org/pub/babl/${PKGVERSION_NOREV:R}/
EXTRACT_SUFX= .tar.xz
@@ -65,6 +64,8 @@
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,babl.map
+TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/babl
+
.include "../../devel/meson/build.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
diff -r 5d70e907333d -r 1c4e35d626e1 graphics/babl/PLIST
--- a/graphics/babl/PLIST Sun Jul 10 20:15:18 2022 +0000
+++ b/graphics/babl/PLIST Sun Jul 10 20:23:38 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.20 2022/03/05 12:19:41 tnn Exp $
+@comment $NetBSD: PLIST,v 1.21 2022/07/10 20:23:38 wiz Exp $
include/babl-0.1/babl/babl-introspect.h
include/babl-0.1/babl/babl-macros.h
include/babl-0.1/babl/babl-types.h
@@ -60,5 +60,5 @@
lib/libbabl-0.1.${SOEXT}
${PLIST.Darwin}lib/libbabl-0.1.0.${SOEXT}
${PLIST.not_Darwin}lib/libbabl-0.1.${SOEXT}.0
-${PLIST.not_Darwin}lib/libbabl-0.1.${SOEXT}.0.189.1
+${PLIST.not_Darwin}lib/libbabl-0.1.${SOEXT}.0.191.1
lib/pkgconfig/babl.pc
diff -r 5d70e907333d -r 1c4e35d626e1 graphics/babl/distinfo
--- a/graphics/babl/distinfo Sun Jul 10 20:15:18 2022 +0000
+++ b/graphics/babl/distinfo Sun Jul 10 20:23:38 2022 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.36 2022/05/29 21:44:13 ryoon Exp $
+$NetBSD: distinfo,v 1.37 2022/07/10 20:23:38 wiz Exp $
-BLAKE2s (babl-0.1.90.tar.xz) = 73f2d51d2d720a799f8b70b6ce1e3b812d97c7f3034b6415e8770dac7647f115
-SHA512 (babl-0.1.90.tar.xz) = c0eac3c7d5eb328de2f97ccc9743bc2f78d79c23dc4d3465e979d98827b1643a0f2a257f0445e4acd09f15a9f95c79f67d09cb18c2c94b4f3d290944a0341e3c
-Size (babl-0.1.90.tar.xz) = 309324 bytes
+BLAKE2s (babl-0.1.92.tar.xz) = 70ad87bcf37d3d696d64dc0a5d48cf11b2307f5898bc7a657af2260409650526
+SHA512 (babl-0.1.92.tar.xz) = c2baf39f576bf7f57786c59f2de0818257f4d1d62cadf44fdd802c9a534ed94390dd1616e7e72fcc9de1fb85a24a10fbacdbbabbe376a45ae598be46817e3bc0
+Size (babl-0.1.92.tar.xz) = 309784 bytes
SHA1 (patch-babl_babl-cpuaccel.c) = e06c723627b5449e2311b6d1a8a68def9ddf7033
SHA1 (patch-babl_meson.build) = ff2ab73080b97cf442e7581932d22a612f4e3093
-SHA1 (patch-extensions_gggl.c) = 4981d58c145a84a8b4f579127221e6289f13c036
+SHA1 (patch-extensions_gggl.c) = b88bd62e59c921ea3d71fb6cbf69fd441a0ae4c8
SHA1 (patch-meson.build) = 303db249139fba8430707b80795285a09470dbed
diff -r 5d70e907333d -r 1c4e35d626e1 graphics/babl/patches/patch-extensions_gggl.c
--- a/graphics/babl/patches/patch-extensions_gggl.c Sun Jul 10 20:15:18 2022 +0000
+++ b/graphics/babl/patches/patch-extensions_gggl.c Sun Jul 10 20:23:38 2022 +0000
@@ -1,32 +1,13 @@
-$NetBSD: patch-extensions_gggl.c,v 1.3 2019/06/18 14:24:03 ryoon Exp $
-
-Patch also submitted upstream:
- https://bugzilla.gnome.org/show_bug.cgi?id=795726
-
-Fixes crashes on alignment critical architectures.
+$NetBSD: patch-extensions_gggl.c,v 1.4 2022/07/10 20:23:39 wiz Exp $
---- extensions/gggl.c.orig 2019-03-21 11:34:40.000000000 +0000
-+++ extensions/gggl.c
-@@ -59,12 +59,15 @@ conv_F_8 (const Babl *conversion,
-
- while (n--)
- {
-- float f = ((*(float *) src));
-- int uval = lrint (f * 255.0);
-+ float f;
-+ int uval;
-+
-+ memcpy(&f, src, sizeof(f));
-+ uval = lrint (f * 255.0);
-
- if (uval < 0) uval = 0;
- if (uval > 255) uval = 255;
-- *(unsigned char *) dst = uval;
-+ *dst = uval;
-
- dst += 1;
- src += 4;
-@@ -78,21 +81,26 @@ conv_F_16 (const Babl *conversion,
+Patch also submitted upstream:
+ https://bugzilla.gnome.org/show_bug.cgi?id=795726
+
+Fixes crashes on alignment critical architectures.
+
+--- extensions/gggl.c.orig 2022-03-22 17:12:57.000000000 +0100
++++ extensions/gggl.c 2022-07-07 16:37:57.027502951 +0200
+@@ -79,21 +79,25 @@ conv_F_16 (const Babl *conversion,
long samples)
{
long n = samples;
@@ -34,41 +15,28 @@
while (n--)
{
-- float f = ((*(float *) src));
-+ float f;
-+ memcpy(&f, src, sizeof(f));
- if (f < 0.0)
+ float f = ((*(float *) src));
+ if (f < 0.0f)
{
- *(unsigned short *) dst = 0;
+ v = 0;
-+ memcpy(dst, &v, sizeof(v));
++ memcpy(dst, &v, sizeof(v));
}
- else if (f > 1.0)
+ else if (f > 1.0f)
{
- *(unsigned short *) dst = 65535;
+ v = 65535;
-+ memcpy(dst, &v, sizeof(v));
++ memcpy(dst, &v, sizeof(v));
}
else
{
-- *(unsigned short *) dst = lrint (f * 65535.0);
-+ v = lrint (f * 65535.0);
-+ memcpy(dst, &v, sizeof(v));
+- *(unsigned short *) dst = lrint (f * 65535.0f);
++ v = lrint (f * 65535.0f);
++ memcpy(dst, &v, sizeof(v));
}
dst += 2;
src += 4;
-@@ -109,7 +117,9 @@ conv_8_F (const Babl *conversion,
-
- while (n--)
- {
-- (*(float *) dst) = ((*(unsigned char *) src) / 255.0);
-+ float v;
-+ v = *src / 255.0;
-+ memcpy(dst, &v, sizeof(v));
- dst += 4;
- src += 1;
- }
-@@ -125,7 +135,8 @@ conv_16_F (const Babl *conversion,
+@@ -126,7 +130,8 @@ conv_16_F (const Babl *conversion,
while (n--)
{
@@ -78,30 +46,7 @@
dst += 4;
src += 2;
}
-@@ -145,13 +156,18 @@ conv_rgbaF_rgb8 (const Babl *conversi
-
- for (c = 0; c < 3; c++)
- {
-- int val = rint ((*(float *) src) * 255.0);
-+ float v;
-+ int val;
-+
-+ memcpy(&v, src, sizeof(v));
-+ val = rint (v * 255.0);
-+
- if (val < 0)
-- *(unsigned char *) dst = 0;
-+ *dst = 0;
- else if (val > 255)
-- *(unsigned char *) dst = 255;
-+ *dst = 255;
- else
-- *(unsigned char *) dst = val;
-+ *dst = val;
- dst += 1;
- src += 4;
- }
-@@ -169,7 +185,11 @@ conv_F_D (const Babl *conversion,
+@@ -170,7 +175,11 @@ conv_F_D (const Babl *conversion,
while (n--)
{
@@ -114,7 +59,7 @@
dst += 8;
src += 4;
}
-@@ -185,7 +205,11 @@ conv_D_F (const Babl *conversion,
+@@ -186,7 +195,11 @@ conv_D_F (const Babl *conversion,
while (n--)
{
@@ -127,7 +72,7 @@
dst += 4;
src += 8;
}
-@@ -213,7 +237,9 @@ conv_16_8 (const Babl *conversion,
+@@ -214,7 +227,9 @@ conv_16_8 (const Babl *conversion,
while (n--)
{
@@ -138,7 +83,7 @@
dst += 1;
src += 2;
}
-@@ -228,7 +254,8 @@ conv_8_16 (const Babl *conversion,
+@@ -229,7 +244,8 @@ conv_8_16 (const Babl *conversion,
long n = samples;
while (n--)
{
@@ -148,7 +93,7 @@
dst += 2;
src += 1;
}
-@@ -453,12 +480,14 @@ conv_gaF_gAF (const Babl *conversion,
+@@ -454,12 +470,14 @@ conv_gaF_gAF (const Babl *conversion,
while (n--)
{
@@ -167,7 +112,7 @@
dst += 4;
src += 4;
}
-@@ -474,15 +503,19 @@ conv_gAF_gaF (const Babl *conversion,
+@@ -475,15 +493,19 @@ conv_gAF_gaF (const Babl *conversion,
while (n--)
{
@@ -192,7 +137,7 @@
dst += 4;
src += 4;
}
-@@ -500,16 +533,9 @@ conv_rgbaF_rgbF (const Babl *conversi
+@@ -501,16 +523,9 @@ conv_rgbaF_rgbF (const Babl *conversi
while (n--)
{
@@ -212,7 +157,7 @@
}
}
-@@ -520,15 +546,12 @@ conv_rgbF_rgbaF (const Babl *conversi
+@@ -521,15 +536,12 @@ conv_rgbF_rgbaF (const Babl *conversi
long samples)
{
long n = samples;
@@ -231,7 +176,7 @@
}
}
-@@ -545,7 +568,7 @@ conv_gaF_gF (const Babl *conversion,
+@@ -546,7 +558,7 @@ conv_gaF_gF (const Babl *conversion,
while (n--)
{
@@ -240,7 +185,7 @@
dst += 4;
src += 4;
src += 4;
-@@ -559,13 +582,14 @@ conv_gF_gaF (const Babl *conversion,
+@@ -560,13 +572,14 @@ conv_gF_gaF (const Babl *conversion,
long samples)
{
long n = samples;
@@ -257,7 +202,7 @@
dst += 4;
}
}
-@@ -590,7 +614,7 @@ conv_gF_rgbF (const Babl *conversion,
+@@ -591,7 +604,7 @@ conv_gF_rgbF (const Babl *conversion,
for (c = 0; c < 3; c++)
{
@@ -266,7 +211,7 @@
dst += 4;
}
src += 4;
-@@ -648,11 +672,11 @@ conv_gaF_rgbaF (const Babl *conversio
+@@ -649,11 +662,11 @@ conv_gaF_rgbaF (const Babl *conversio
for (c = 0; c < 3; c++)
{
@@ -280,60 +225,44 @@
dst += 4;
src += 4;
}
-@@ -673,16 +697,20 @@ conv_rgbaF_rgbA8 (const Babl *convers
+@@ -696,6 +709,7 @@ conv_rgbaF_rgb16 (const Babl *convers
+ long samples)
+ {
+ long n = samples;
++ unsigned short v;
while (n--)
{
-- float alpha = (*(float *) (src + (4 * 3)));
-+ float alpha;
- int c;
-
Home |
Main Index |
Thread Index |
Old Index