Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From abb4dfad9e446e77396de9e93003af5be7aa18da Mon Sep 17 00:00:00 2001
|
||||
From: Kleis Auke Wolthuizen <github@kleisauke.nl>
|
||||
Date: Sun, 18 Jan 2026 12:15:33 +0100
|
||||
Subject: [PATCH] memory: fix `VIPS_FREEF` for expression-like macros (#4836)
|
||||
|
||||
Ensure the macro works correctly when F expands to an expression,
|
||||
such as `g_free()` using `free_sized()` (as available in the
|
||||
upcoming glibc 2.43).
|
||||
|
||||
Resolves: #4835.
|
||||
|
||||
Upstream: https://github.com/libvips/libvips/commit/abb4dfad9e446e77396de9e93003af5be7aa18da
|
||||
|
||||
[Bernd: dropped ChangeLog from patch]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
ChangeLog | 1 +
|
||||
libvips/include/vips/memory.h | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libvips/include/vips/memory.h b/libvips/include/vips/memory.h
|
||||
index 93e669340b..7073d1ea6a 100644
|
||||
--- a/libvips/include/vips/memory.h
|
||||
+++ b/libvips/include/vips/memory.h
|
||||
@@ -41,7 +41,7 @@ extern "C" {
|
||||
G_STMT_START \
|
||||
{ \
|
||||
if (S) { \
|
||||
- (void) F((S)); \
|
||||
+ (void) (F((S))); \
|
||||
(S) = 0; \
|
||||
} \
|
||||
} \
|
||||
22
package/libvips/Config.in
Normal file
22
package/libvips/Config.in
Normal file
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_LIBVIPS
|
||||
bool "libvips"
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14
|
||||
depends on BR2_USE_MMU # fork()
|
||||
# C++ support is required to build libvips
|
||||
# https://github.com/jcupitt/libvips/issues/231
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_EXPAT
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
help
|
||||
libvips is a 2D image processing library. Compared to
|
||||
similar libraries, libvips runs quickly and uses little
|
||||
memory.
|
||||
|
||||
http://www.vips.ecs.soton.ac.uk/
|
||||
|
||||
comment "libvips needs a toolchain w/ wchar, threads, C++, gcc >= 4.9"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
4
package/libvips/libvips.hash
Normal file
4
package/libvips/libvips.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/libvips/libvips/releases/download/v8.18.0/vips-8.18.0.tar.xz.sha256sum
|
||||
sha256 b85ab92280c30d22f5c8fe2f68b809cddb7eaac437d8c33474475dac84ddc574 vips-8.18.0.tar.xz
|
||||
# Locally computed
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSE
|
||||
152
package/libvips/libvips.mk
Normal file
152
package/libvips/libvips.mk
Normal file
@@ -0,0 +1,152 @@
|
||||
################################################################################
|
||||
#
|
||||
# libvips
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBVIPS_VERSION = 8.18.0
|
||||
LIBVIPS_SOURCE = vips-$(LIBVIPS_VERSION).tar.xz
|
||||
LIBVIPS_SITE = https://github.com/libvips/libvips/releases/download/v$(LIBVIPS_VERSION)
|
||||
LIBVIPS_LICENSE = LGPL-2.1+
|
||||
LIBVIPS_LICENSE_FILES = LICENSE
|
||||
LIBVIPS_CPE_ID_VENDOR = libvips
|
||||
|
||||
# Sparc64 compile fails, for all optimization levels except -O0. To
|
||||
# fix the problem, use -O0 with no optimization instead. Bug reported
|
||||
# upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69038.
|
||||
ifeq ($(BR2_sparc64),y)
|
||||
LIBVIPS_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
|
||||
LIBS=$(TARGET_NLS_LIBS)
|
||||
|
||||
LIBVIPS_CONF_OPTS = \
|
||||
-Dopenexr=disabled \
|
||||
-Dopenslide=disabled \
|
||||
-Dcfitsio=disabled \
|
||||
-Dpangocairo=disabled
|
||||
LIBVIPS_INSTALL_STAGING = YES
|
||||
LIBVIPS_DEPENDENCIES = \
|
||||
host-pkgconf expat libglib2 \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),)
|
||||
LIBVIPS_CONF_OPTS += -Dmodules=enabled
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dmodules=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
|
||||
LIBVIPS_CONF_OPTS += -Dintrospection=enabled
|
||||
LIBVIPS_DEPENDENCIES += gobject-introspection
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dintrospection=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
|
||||
LIBVIPS_CONF_OPTS += \
|
||||
-Dmagick=enabled \
|
||||
-Dmagick-package=MagickCore
|
||||
LIBVIPS_DEPENDENCIES += imagemagick
|
||||
else ifeq ($(BR2_PACKAGE_GRAPHICSMAGICK),y)
|
||||
LIBVIPS_CONF_OPTS += \
|
||||
-Dmagick=enabled \
|
||||
-Dmagick-package=GraphicsMagick
|
||||
LIBVIPS_DEPENDENCIES += graphicsmagick
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dmagick=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
LIBVIPS_CONF_OPTS += -Djpeg=enabled
|
||||
LIBVIPS_DEPENDENCIES += jpeg
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Djpeg=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
||||
LIBVIPS_CONF_OPTS += -Dlcms=enabled
|
||||
LIBVIPS_DEPENDENCIES += lcms2
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dlcms=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
LIBVIPS_CONF_OPTS += -Dpng=enabled
|
||||
LIBVIPS_DEPENDENCIES += libpng
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dpng=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
||||
LIBVIPS_CONF_OPTS += -Drsvg=enabled
|
||||
LIBVIPS_DEPENDENCIES += librsvg
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Drsvg=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MATIO),y)
|
||||
LIBVIPS_CONF_OPTS += -Dmatio=enabled
|
||||
LIBVIPS_DEPENDENCIES += matio
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dmatio=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ORC),y)
|
||||
LIBVIPS_CONF_OPTS += -Dorc=enabled
|
||||
LIBVIPS_DEPENDENCIES += orc
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dorc=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POPPLER),y)
|
||||
LIBVIPS_CONF_OPTS += -Dpoppler=enabled
|
||||
LIBVIPS_DEPENDENCIES += poppler
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dpoppler=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TIFF),y)
|
||||
LIBVIPS_CONF_OPTS += -Dtiff=enabled
|
||||
LIBVIPS_DEPENDENCIES += tiff
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dtiff=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FFTW_DOUBLE),y)
|
||||
LIBVIPS_CONF_OPTS += -Dfftw=enabled
|
||||
LIBVIPS_DEPENDENCIES += fftw-double
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dfftw=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
|
||||
LIBVIPS_CONF_OPTS += -Dexif=enabled
|
||||
LIBVIPS_DEPENDENCIES += libexif
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dexif=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBHEIF),y)
|
||||
LIBVIPS_CONF_OPTS += -Dheif=enabled
|
||||
LIBVIPS_DEPENDENCIES += libheif
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dheif=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
|
||||
LIBVIPS_CONF_OPTS += -Dwebp=enabled
|
||||
LIBVIPS_DEPENDENCIES += webp
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dwebp=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
LIBVIPS_CONF_OPTS += -Dzlib=enabled
|
||||
LIBVIPS_DEPENDENCIES += zlib
|
||||
else
|
||||
LIBVIPS_CONF_OPTS += -Dzlib=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user