libgphoto2: Update to 2.5.33

This commit is contained in:
Ryan Carsten Schmidt
2026-04-24 14:13:05 -05:00
parent 437e4d5f59
commit 85e07d5b11
2 changed files with 5 additions and 34 deletions
+5 -9
View File
@@ -3,11 +3,11 @@
PortSystem 1.0
name libgphoto2
version 2.5.32
revision 2
checksums rmd160 cc878b93ba708aae417d01aa31a36ff2f6f8b5fc \
sha256 02b29ab0bcfceda1c7f81c75ec7cb5e64d329cf4b8fd0fcd5bc5a89ff09561bc \
size 8450408
version 2.5.33
revision 0
checksums rmd160 66d4644a9f5822c9dc0bf82aa7597c0e5c07cae6 \
sha256 c55504e725cf44b6ca67e1cd7504ad36dc98d7a0469a9e8d627fd0fb3848aa1d \
size 8607614
categories devel
maintainers {ryandesign @ryandesign} openmaintainer
@@ -37,10 +37,6 @@ depends_lib port:curl \
patchfiles static_assert.patch
# Was fixed upstream. Remove this patch on next update after 2.5.32.
# See https://github.com/gphoto/libgphoto2/commit/6670f88e7470b28e7fb345e2c7c2beba5d3427d7
patchfiles-append qtk-thumbnail-decoder.c.patch
configure.args --disable-silent-rules \
--with-drivers=all \
--with-libexif=${prefix} \
@@ -1,25 +0,0 @@
Avoid binary constants which are not supported by gcc < 4.3
--- camlibs/quicktake1x0/qtk-thumbnail-decoder.c.orig 2025-02-28 09:28:12.000000000 -0600
+++ camlibs/quicktake1x0/qtk-thumbnail-decoder.c 2025-08-03 01:58:04.000000000 -0500
@@ -55,8 +55,8 @@
for (s = 0; s < QT1X0_THUMB_SIZE; s++) {
v = raw[s];
- p1 = ((v >> 4) & 0b00001111) << 4;
- p2 = ((v >> 0) & 0b00001111) << 4;
+ p1 = ((v >> 4) & 0x0F) << 4;
+ p2 = ((v >> 0) & 0x0F) << 4;
/* FIXME do color thumbnails */
r = g = b = p1;
@@ -108,8 +108,8 @@
cur_out = line;
for (i = 0; i < QT1X0_THUMB_WIDTH; i++) {
c = *cur_in++;
- a = (((c>>4) & 0b00001111) << 4);
- b = (((c) & 0b00001111) << 4);
+ a = (((c>>4) & 0x0F) << 4);
+ b = (((c) & 0x0F) << 4);
*cur_out++ = a;
*cur_out++ = b;
}