mirror of
https://github.com/openwrt/video.git
synced 2026-07-12 22:44:52 +04:00
sdl3-image: add SDL3_image 3.4.4
SDL3-native image loading library (libSDL3_image), built directly against SDL3 so it coexists with sdl2-image's libSDL2_image. PNG, JPEG, TIFF and WebP are handled by the libpng, libjpeg, libtiff and libwebp packages, listed as dependencies so the cross-built target libraries are used instead of host libraries; the bundled stb backend is disabled. https://github.com/libsdl-org/SDL_image/releases/tag/release-3.4.4 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=sdl3-image
|
||||
PKG_VERSION:=3.4.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=SDL3_image-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/libsdl-org/SDL_image/tar.gz/release-$(PKG_VERSION)?
|
||||
PKG_HASH:=b0c11bbde540e26d1cedf31174349fe6ab67e57658efe22e16e75172859c817d
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_image-release-$(PKG_VERSION)
|
||||
|
||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||
PKG_LICENSE:=Zlib
|
||||
PKG_LICENSE_FILES:=LICENSE.txt
|
||||
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
CMAKE_BINARY_SUBDIR:=openwrt-build
|
||||
|
||||
CMAKE_OPTIONS += \
|
||||
-DSDLIMAGE_SAMPLES=OFF \
|
||||
-DSDLIMAGE_TESTS=OFF \
|
||||
-DSDLIMAGE_INSTALL=ON \
|
||||
-DSDLIMAGE_VENDORED=OFF \
|
||||
-DSDLIMAGE_DEPS_SHARED=OFF \
|
||||
-DSDLIMAGE_BACKEND_STB=OFF \
|
||||
-DSDLIMAGE_PNG=ON \
|
||||
-DSDLIMAGE_PNG_LIBPNG=ON \
|
||||
-DSDLIMAGE_JPG=ON \
|
||||
-DSDLIMAGE_TIF=ON \
|
||||
-DSDLIMAGE_WEBP=ON \
|
||||
-DSDLIMAGE_AVIF=OFF \
|
||||
-DSDLIMAGE_JXL=OFF
|
||||
|
||||
define Package/libsdl3-image
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=SDL3 Image
|
||||
URL:=https://www.libsdl.org/
|
||||
DEPENDS:=+libsdl3 +libpng +libjpeg +libtiff +libwebp
|
||||
endef
|
||||
|
||||
define Package/libsdl3-image/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL3_image*.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libsdl3-image))
|
||||
Reference in New Issue
Block a user