Skip to content
Snippets Groups Projects
Commit 5e221367 authored by Martijn Braam's avatar Martijn Braam Committed by Patrycja Rosa
Browse files

testing/libdng: upgrade to 0.2.1

parent a31faa0d
No related branches found
No related tags found
2 merge requests!79570community/firefox-esr: upgrade to 128.7.0,!77678testing/libdng: upgrade to 0.2.1
Pipeline #285727 passed
# Contributor: Martijn Braam <martijn@brixit.nl>
# Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=libdng
pkgver=0.1.1
pkgrel=1
pkgver=0.2.1
pkgrel=0
pkgdesc="Interface library between libtiff and the world to make sure the output is valid DNG"
url="https://gitlab.com/megapixels-org/libdng"
arch="all !s390x" # Libtiff does weird things on s390x
license="MIT"
source="https://gitlab.com/megapixels-org/libdng/-/archive/$pkgver/libdng-$pkgver.tar.gz
libtiff.patch
"
source="https://gitlab.com/megapixels-org/libdng/-/archive/$pkgver/libdng-$pkgver.tar.gz"
makedepends="cmake linux-headers meson tiff-dev scdoc"
subpackages="$pkgname-doc $pkgname-dev $pkgname-utils"
......@@ -34,6 +32,5 @@ utils() {
sha512sums="
e8f8f0d78ff89fc50e2fde1787d528946c171b43b1056eecd645904f93ac57e52a516361667628a1457783169703649a7aebd496c054cd38751f9de21e84be1d libdng-0.1.1.tar.gz
eff305e2d67a4074a3f4e7ccb7b3285ca4445bca68c6f829c7a884654a35bc959bef1f20ee8580aa01de9d2cedf1405ab5e90fa416122bd44365a70e187d2ed1 libtiff.patch
9a2bee7f4d33dd087bfdfe744319edcbfd22dbc420c506dcb978974cbc6724141fa6ecc2ff5c6c43419d4bb8054e9ed97550590259c325887ec93fef68e17a83 libdng-0.2.1.tar.gz
"
From 9c7b18e7ff687a8c69704dc6fc8e7689e2532060 Mon Sep 17 00:00:00 2001
From: Martijn Braam <martijn@brixit.nl>
Date: Sun, 28 Apr 2024 00:05:51 +0200
Subject: [PATCH] Fix CFARepeatPattern for newer libtiff versions
---
src/libdng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libdng.c b/src/libdng.c
index 6b0cd4f..317dd85 100644
--- a/src/libdng.c
+++ b/src/libdng.c
@@ -375,7 +375,7 @@ libdng_write_with_thumbnail(libdng_info *dng, const char *path, unsigned int wid
TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
TIFFSetField(tif, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_UINT);
-#if (TIFFLIB_VERSION > 20230000)
+#if (TIFFLIB_VERSION > 20230000 && TIFFLIB_VERSION < 20240321)
TIFFSetField(tif, DNGTAG_CFAREPEATPATTERNDIM, 2, dng->bayer_pattern_dimensions);
#else
TIFFSetField(tif, DNGTAG_CFAREPEATPATTERNDIM, dng->bayer_pattern_dimensions);
--
GitLab
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment