qt5: add package qt5svg
authorMirko Vogt <[email protected]>
Thu, 22 May 2025 12:12:54 +0000 (12:12 +0000)
committerMirko Vogt <[email protected]>
Thu, 22 May 2025 12:12:54 +0000 (12:12 +0000)
frameworks/qt5/qt5svg/Makefile [new file with mode: 0644]

diff --git a/frameworks/qt5/qt5svg/Makefile b/frameworks/qt5/qt5svg/Makefile
new file mode 100644 (file)
index 0000000..1aae9d5
--- /dev/null
@@ -0,0 +1,44 @@
+#
+# Copyright (C) 2020 OpenWrt
+# Author: Mirko Vogt <[email protected]>
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=qt5svg
+PKG_RELEASE:=1
+PKG_HASH:=cc4e320084bc2882dc6e55229045ce99469946deab8c075aae06413e27100bc1
+
+PKG_BUILD_DEPENDS:=qt5base
+
+include ../common.mk
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/nls.mk
+include ../qmake.mk
+
+MAKE_PATH=src
+
+define Package/qt5svg
+  SECTION:=video-frameworks
+  CATEGORY:=Video
+  SUBMENU:=Frameworks and Toolkits
+  TITLE:=qt5svg
+  URL:=http://qt.io
+  DEPENDS:=+qt5base-widgets
+endef
+
+define Build/InstallDev
+       $(call Build/Install/HostFiles,$(1))
+       $(call Build/Install/Headers,$(1))
+       $(call Build/Install/Libs,$(1),*)
+endef
+
+define Package/qt5svg/install
+       $(call Build/Install/Libs,$(1),libQt5Svg)
+       $(call Build/Install/Plugins,$(1),imageformats,libqsvg)
+       $(call Build/Install/Plugins,$(1),iconengines,libqsvgicon)
+endef
+
+$(eval $(call BuildPackage,qt5svg))