Update to babl-0.1.78.

This commit is contained in:
ajacoutot 2020-06-08 16:46:10 +00:00
parent dafe1f70c2
commit 51f0889c05
4 changed files with 11 additions and 49 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.54 2020/02/18 18:11:32 gkoehler Exp $
# $OpenBSD: Makefile,v 1.55 2020/06/08 16:46:10 ajacoutot Exp $
COMMENT= dynamic pixel format conversion library
V= 0.1.74
REVISION= 0
V= 0.1.78
DISTNAME= babl-${V}
EXTRACT_SUFX= .tar.xz
@ -12,7 +11,7 @@ SUBST_VARS= API_VERSION
CATEGORIES= graphics devel
SHARED_LIBS += babl-0.1 1.7 # 0.173.1
SHARED_LIBS += babl-0.1 1.8 # 0.177.1
HOMEPAGE= http://gegl.org/babl/
@ -28,7 +27,7 @@ MASTER_SITES= http://download.gimp.org/pub/babl/${V:R}/
MODULES= devel/meson \
x11/gnome
MODGNOME_TOOLS= gobject-introspection
MODGNOME_TOOLS= gobject-introspection vala
COMPILER= base-clang ports-gcc

View File

@ -1,2 +1,2 @@
SHA256 (babl-0.1.74.tar.xz) = mnELaVDaN62pTNniBGy84m3hJHPaMqe3m30UMvxmzg4=
SIZE (babl-0.1.74.tar.xz) = 294156
SHA256 (babl-0.1.78.tar.xz) = F9VJNjO/9VhdnzdbxN9ZJRV80ccMzXwipjW+dcFyUjo=
SIZE (babl-0.1.78.tar.xz) = 298920

View File

@ -1,41 +0,0 @@
$OpenBSD: patch-babl_babl-fish-path_c,v 1.1 2020/02/18 18:11:32 gkoehler Exp $
Pass a function pointer, not a union of function pointers, when
calling babl_conversion_new(). This is necessary on powerpc, where
the calling convention was passing the union as a pointer to a
temporary copy of the union. The compiler doesn't check the type,
because babl_conversion_new() has a va_arg(3) prototype.
This fixes the chromaticities test on powerpc,
https://gitlab.gnome.org/GNOME/babl/issues/24
Index: babl/babl-fish-path.c
--- babl/babl-fish-path.c.orig
+++ babl/babl-fish-path.c
@@ -404,7 +404,7 @@ alias_conversion (Babl *babl,
(void*)conv->source, (void*)space),
babl_remodel_with_space (
(void*)conv->destination, (void*)space),
- "linear", conv->function,
+ "linear", conv->function.linear,
NULL);
break;
case BABL_CONVERSION_PLANAR:
@@ -413,7 +413,7 @@ alias_conversion (Babl *babl,
(void*)conv->source, (void*)space),
babl_remodel_with_space (
(void*)conv->destination, (void*)space),
- "planar", conv->function,
+ "planar", conv->function.planar,
NULL);
break;
case BABL_CONVERSION_PLANE:
@@ -422,7 +422,7 @@ alias_conversion (Babl *babl,
(void*)conv->source, (void*)space),
babl_remodel_with_space (
(void*)conv->destination, (void*)space),
- "plane", conv->function,
+ "plane", conv->function.plane,
NULL);
break;
default:

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.15 2019/11/23 18:10:30 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.16 2020/06/08 16:46:10 ajacoutot Exp $
include/babl-${API_VERSION}/
include/babl-${API_VERSION}/babl/
include/babl-${API_VERSION}/babl/babl-introspect.h
@ -41,3 +41,7 @@ lib/girepository-1.0/Babl-${API_VERSION}.typelib
lib/pkgconfig/babl.pc
share/gir-1.0/
share/gir-1.0/Babl-${API_VERSION}.gir
share/vala/
share/vala/vapi/
share/vala/vapi/babl-${API_VERSION}.deps
share/vala/vapi/babl-${API_VERSION}.vapi