libraw, bump to version 0.22.0 (#13680)

drop old 0.19.5, only provide base for 0.21.4 for compat
This commit is contained in:
Schrijvers Luc
2026-01-28 15:37:25 +01:00
committed by GitHub
parent 95c478963a
commit 7b784f0407
4 changed files with 170 additions and 196 deletions

View File

@@ -1,100 +0,0 @@
SUMMARY="Library for reading and processing of RAW digicam images"
DESCRIPTION="LibRaw is a library for reading RAW files from digital photo \
cameras (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW \
formats are supported).
It pays special attention to correct retrieval of data required for subsequent \
RAW conversion.
The library is intended for embedding in RAW converters, data analyzers, and \
other programs using RAW files as the initial data."
HOMEPAGE="https://www.libraw.org/"
COPYRIGHT="2008-2018 LibRaw LLC"
LICENSE="GNU LGPL v2.1
CDDL v1"
REVISION="1"
SOURCE_URI="https://www.libraw.org/data/LibRaw-$portVersion.tar.gz"
CHECKSUM_SHA256="40a262d7cc71702711a0faec106118ee004f86c86cc228281d12d16da03e02f5"
SOURCE_DIR="LibRaw-$portVersion"
PATCHES="libraw-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="19.0.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= 0"
PROVIDES="
libraw19$secondaryArchSuffix = $portVersion compat >= 0
lib:libraw$secondaryArchSuffix = $libVersionCompat
lib:libraw_r$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
lib:libjasper$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:liblcms2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjasper$secondaryArchSuffix
devel:liblcms2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:cmp
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir"
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/lib*.la
prepareInstalledDevelLibs libraw libraw_r
fixPkgconfig
pushd "$developLibDir"
if [ -f libraw_r.a -a -f libraw.a ] && cmp libraw_r.a libraw.a; then
rm libraw_r.a
ln -s libraw.a libraw_r.a
fi
popd
# devel package
rm -rf \
$developDir
# tools package
rm -rf \
"$commandBinDir"
}
TEST()
{
make check
}

View File

@@ -10,7 +10,7 @@ HOMEPAGE="https://www.libraw.org/"
COPYRIGHT="2008-2021 LibRaw LLC"
LICENSE="GNU LGPL v2.1
CDDL v1"
REVISION="1"
REVISION="2"
SOURCE_URI="https://www.libraw.org/data/LibRaw-$portVersion.tar.gz"
CHECKSUM_SHA256="6be43f19397e43214ff56aab056bf3ff4925ca14012ce5a1538a172406a09e63"
SOURCE_DIR="LibRaw-$portVersion"
@@ -42,51 +42,6 @@ REQUIRES="
lib:liblcms2$secondaryArchSuffix
"
PROVIDES_devel="
libraw23${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libraw$secondaryArchSuffix = $libVersionCompat
devel:libraw_r$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libraw23$secondaryArchSuffix == $portVersion base
"
CONFLICTS_devel="
libraw${secondaryArchSuffix}_devel
libraw19${secondaryArchSuffix}_devel
"
SUMMARY_tools="The libraw tools"
PROVIDES_tools="
libraw23${secondaryArchSuffix}_tools = $portVersion
cmd:4channels$commandSuffix = $portVersionCompat
cmd:dcraw_emu$commandSuffix = $portVersionCompat
cmd:dcraw_half$commandSuffix = $portVersionCompat
cmd:half_mt$commandSuffix = $portVersionCompat
cmd:mem_image$commandSuffix = $portVersionCompat
cmd:multirender_test$commandSuffix = $portVersionCompat
cmd:postprocessing_benchmark$commandSuffix = $portVersionCompat
cmd:raw_identify$commandSuffix = $portVersionCompat
cmd:rawtextdump$commandSuffix = $portVersionCompat
cmd:simple_dcraw$commandSuffix = $portVersionCompat
cmd:unprocessed_raw$commandSuffix = $portVersionCompat
"
REQUIRES_tools="
libraw23$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
lib:libjasper$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:liblcms2$secondaryArchSuffix
"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
REQUIRES_tools+="
"
fi
CONFLICTS_tools="
libraw${secondaryArchSuffix}_tools
libraw19${secondaryArchSuffix}_tools
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjasper$secondaryArchSuffix
@@ -105,28 +60,6 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
debugList=(
"$libDir"/libraw.so.$libVersion
"$libDir"/libraw_r.so.$libVersion
)
librawTools="
4channels
dcraw_emu
dcraw_half
half_mt
mem_image
multirender_test
postprocessing_benchmark
raw-identify
rawtextdump
simple_dcraw
unprocessed_raw
"
for i in $librawTools; do
debugList+=("${commandBinDir/libraw23$secondaryArchSuffix/libraw23${secondaryArchSuffix}_tools}"/$i)
done
defineDebugInfoPackage libraw23$secondaryArchSuffix "${debugList[@]}"
BUILD()
{
autoreconf -fi
@@ -153,13 +86,12 @@ INSTALL()
popd
# devel package
packageEntries devel \
rm -rf \
$developDir
# tools package
packageEntries tools \
"$commandBinDir"
rm -rf \
$commandBinDir
}
TEST()

View File

@@ -0,0 +1,166 @@
SUMMARY="Library for reading and processing of RAW digicam images"
DESCRIPTION="LibRaw is a library for reading RAW files from digital photo \
cameras (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW \
formats are supported).
It pays special attention to correct retrieval of data required for subsequent \
RAW conversion.
The library is intended for embedding in RAW converters, data analyzers, and \
other programs using RAW files as the initial data."
HOMEPAGE="https://www.libraw.org/"
COPYRIGHT="2008-2021 LibRaw LLC"
LICENSE="GNU LGPL v2.1
CDDL v1"
REVISION="1"
SOURCE_URI="https://www.libraw.org/data/LibRaw-$portVersion.tar.gz"
CHECKSUM_SHA256="1071e6e8011593c366ffdadc3d3513f57c90202d526e133174945ec1dd53f2a1"
SOURCE_DIR="LibRaw-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="24.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= 0"
PROVIDES="
libraw24$secondaryArchSuffix = $portVersion compat >= 0
lib:libraw$secondaryArchSuffix = $libVersionCompat
lib:libraw_r$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
lib:libjasper$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:liblcms2$secondaryArchSuffix
"
PROVIDES_devel="
libraw24${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libraw$secondaryArchSuffix = $libVersionCompat
devel:libraw_r$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libraw24$secondaryArchSuffix == $portVersion base
"
CONFLICTS_devel="
libraw${secondaryArchSuffix}_devel
"
SUMMARY_tools="The libraw tools"
PROVIDES_tools="
libraw24${secondaryArchSuffix}_tools = $portVersion
cmd:4channels$commandSuffix = $portVersionCompat
cmd:dcraw_emu$commandSuffix = $portVersionCompat
cmd:dcraw_half$commandSuffix = $portVersionCompat
cmd:half_mt$commandSuffix = $portVersionCompat
cmd:mem_image$commandSuffix = $portVersionCompat
cmd:multirender_test$commandSuffix = $portVersionCompat
cmd:postprocessing_benchmark$commandSuffix = $portVersionCompat
cmd:raw_identify$commandSuffix = $portVersionCompat
cmd:rawtextdump$commandSuffix = $portVersionCompat
cmd:simple_dcraw$commandSuffix = $portVersionCompat
cmd:unprocessed_raw$commandSuffix = $portVersionCompat
"
REQUIRES_tools="
libraw24$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
lib:libgomp$secondaryArchSuffix
lib:libjasper$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:liblcms2$secondaryArchSuffix
"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
REQUIRES_tools+="
"
fi
CONFLICTS_tools="
libraw${secondaryArchSuffix}_tools
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjasper$secondaryArchSuffix
devel:liblcms2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:cmp
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
debugList=(
"$libDir"/libraw.so.$libVersion
"$libDir"/libraw_r.so.$libVersion
)
librawTools="
4channels
dcraw_emu
dcraw_half
half_mt
mem_image
multirender_test
postprocessing_benchmark
raw-identify
rawtextdump
simple_dcraw
unprocessed_raw
"
for i in $librawTools; do
debugList+=("${commandBinDir/libraw24$secondaryArchSuffix/libraw24${secondaryArchSuffix}_tools}"/$i)
done
defineDebugInfoPackage libraw24$secondaryArchSuffix "${debugList[@]}"
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure \
--bindir="$commandBinDir" \
--disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/lib*.la
prepareInstalledDevelLibs libraw libraw_r
fixPkgconfig
pushd "$developLibDir"
if [ -f libraw_r.a -a -f libraw.a ] && cmp libraw_r.a libraw.a; then
rm libraw_r.a
ln -s libraw.a libraw_r.a
fi
popd
# devel package
packageEntries devel \
$developDir
# tools package
packageEntries tools \
"$commandBinDir"
}
TEST()
{
make check
}

View File

@@ -1,24 +0,0 @@
From 372dbc47bff1b2b046d56ce4feaa8f7bb3da63bc Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 14 Mar 2015 13:21:53 +0000
Subject: Haiku patch
diff --git a/Makefile.am b/Makefile.am
index 35378a9..467fb7a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,8 +35,8 @@ lib_libraw_a_SOURCES = internal/dcraw_common.cpp \
src/libraw_datastream.cpp \
src/libraw_c_api.cpp
-lib_libraw_r_a_CXXFLAGS = -pthread -w
-lib_libraw_r_a_CFLAGS = -pthread -w
+lib_libraw_r_a_CXXFLAGS = -w
+lib_libraw_r_a_CFLAGS = -w
lib_libraw_la_SOURCES = $(lib_libraw_a_SOURCES)
lib_libraw_r_la_SOURCES = $(lib_libraw_a_SOURCES)
--
1.8.3.4