@@ -157,6 +157,14 @@ libjpeg-turbo_SUBDIR := libjpeg-turbo-$(libjpeg-turbo_VERSION)
157157libjpeg-turbo_FILE := libjpeg-turbo-$(libjpeg-turbo_VERSION ) .tar.gz
158158libjpeg-turbo_URL := https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/$(libjpeg-turbo_VERSION ) /$(libjpeg-turbo_FILE )
159159
160+ # upstream version is 0.21.1
161+ libraw_VERSION := 0.21.4
162+ libraw_CHECKSUM := 6be43f19397e43214ff56aab056bf3ff4925ca14012ce5a1538a172406a09e63
163+ libraw_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/libraw-[0-9]* .patch) ) )
164+ libraw_SUBDIR := LibRaw-$(libraw_VERSION )
165+ libraw_FILE := LibRaw-$(libraw_VERSION ) .tar.gz
166+ libraw_URL := https://www.libraw.org/data/$(libraw_FILE )
167+
160168# upstream version is 2.7.1
161169# needed by nip4
162170gsl_VERSION := 2.8
@@ -180,6 +188,7 @@ glib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))
180188harfbuzz_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/harfbuzz-[0-9]* .patch) ) )
181189lcms_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/lcms-[0-9]* .patch) ) )
182190libjpeg-turbo_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/libjpeg-turbo-[0-9]* .patch) ) )
191+ libraw_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/libraw-[0-9]* .patch) ) )
183192libxml2_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/libxml2-[0-9]* .patch) ) )
184193meson_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/meson-[0-9]* .patch) ) )
185194mingw-w64_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/mingw-w64-[0-9]* .patch) ) )
@@ -228,6 +237,10 @@ zlib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))
228237# Removed: hdf5
229238# libjpeg-turbo:
230239# Replaced: yasm with $(BUILD)~nasm
240+ # libraw:
241+ # Added: zlib
242+ # Replaced: jpeg with libjpeg-turbo
243+ # Removed: jasper
231244# libxml2:
232245# Added: meson-wrapper
233246# Removed: libiconv, xz, zlib
@@ -258,6 +271,7 @@ librsvg_DEPS := cc meson-wrapper cairo glib pango libxml2 rust $(BUIL
258271cairo_DEPS := $(filter-out lzo ,$(cairo_DEPS ) )
259272matio_DEPS := $(filter-out hdf5 ,$(matio_DEPS ) )
260273libjpeg-turbo_DEPS := $(subst yasm,$(BUILD ) ~nasm,$(libjpeg-turbo_DEPS ) )
274+ libraw_DEPS := cc libjpeg-turbo lcms zlib
261275libxml2_DEPS := cc meson-wrapper
262276fontconfig_DEPS := cc meson-wrapper expat freetype-bootstrap
263277libexif_DEPS := $(filter-out gettext,$(libexif_DEPS ) )
@@ -479,6 +493,24 @@ define libjpeg-turbo_BUILD
479493 $(MAKE ) -C '$(BUILD_DIR ) ' -j 1 $(subst -,/,$(INSTALL_STRIP_LIB ) )
480494endef
481495
496+ # build without jasper, openmp and examples
497+ define libraw_BUILD
498+ # autoreconf to get updated libtool files for clang
499+ cd '$(SOURCE_DIR ) ' && autoreconf -fi
500+
501+ cd '$(BUILD_DIR ) ' && $(SOURCE_DIR ) /configure \
502+ $(MXE_CONFIGURE_OPTS ) \
503+ --disable-examples \
504+ --disable-openmp \
505+ --disable-jasper \
506+ --enable-jpeg \
507+ --enable-zlib \
508+ --enable-lcms
509+
510+ $(MAKE ) -C '$(BUILD_DIR ) ' -j '$(JOBS ) '
511+ $(MAKE ) -C '$(BUILD_DIR ) ' -j 1 $(INSTALL_STRIP_LIB )
512+ endef
513+
482514# build with the Meson build system
483515# build with -Dnls=disabled
484516define fontconfig_BUILD
0 commit comments