mirror of
https://github.com/openwrt/video.git
synced 2026-05-31 06:51:54 +08:00
2e1072d4c7
This series introduces the GLib-based gen-resources.py support
(new in 2.44) and other minor improvements over 2.42.12.
Add PKG_BUILD_DEPENDS:=glib2/host: gdk-pixbuf's meson.build now
calls find_program('glib-compile-resources') to invoke the GLib
host-side resource compiler during configure. The binary is
provided by glib2's host build at $(STAGING_DIR_HOSTPKG)/bin/,
so the dep is needed to make that host build actually run on
clean CI images (failure message: "Program glib-compile-resources
found: NO - ERROR: Program 'glib-compile-resources' not found or
not executable").
Drop the leftover '$(eval $(call HostBuild))' line: gdk-pixbuf
never included host-build.mk so the call was a no-op anyway.
Link: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/blob/2.44.6/NEWS
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=gdk-pixbuf
|
|
PKG_VERSION:=2.44.6
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/$(basename $(PKG_VERSION))
|
|
PKG_HASH:=140c2d0b899fcf853ee92b26373c9dc228dbcde0820a4246693f4328a27466fa
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_CPE_ID:=cpe:/a:gnome:gdk-pixbuf
|
|
|
|
PKG_BUILD_DEPENDS:=glib2/host
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
MESON_ARGS += \
|
|
-Ddocumentation=false \
|
|
-Dglycin=disabled \
|
|
-Dinstalled_tests=false \
|
|
-Dman=false \
|
|
-Dtests=false
|
|
|
|
define Package/libgdk-pixbuf
|
|
SECTION:=video-frameworks
|
|
CATEGORY:=Video
|
|
SUBMENU:=Frameworks and Toolkits
|
|
DEPENDS:=+giflib +libpng +libtiff +libjpeg +shared-mime-info
|
|
TITLE:=GdkPixbuf: Image loading library
|
|
URL:=http://www.gtk.org/
|
|
endef
|
|
|
|
define Package/libgdk-pixbuf/description
|
|
GdkPixbuf is a library that loads image data in various formats and stores it as linear buffers in memory.
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/gdk-pixbuf-2.0/gdk-pixbuf
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/*.h \
|
|
$(1)/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(INSTALL_DATA) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
|
$(1)/usr/lib/pkgconfig
|
|
endef
|
|
|
|
define Package/libgdk-pixbuf/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libgdk-pixbuf))
|