diff --git a/libs/libgudev/Makefile b/libs/libgudev/Makefile new file mode 100644 index 0000000000000..42d3d9c36f991 --- /dev/null +++ b/libs/libgudev/Makefile @@ -0,0 +1,65 @@ +# +# Copyright (C) 2024 TDT AG +# +# This is free software, licensed under the GNU General Public License v2. +# See https://www.gnu.org/licenses/gpl-2.0.txt for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libgudev +PKG_VERSION:=238 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@GNOME/libgudev/$(basename $(PKG_VERSION)) +PKG_HASH:=61266ab1afc9d73dbc60a8b2af73e99d2fdff47d99544d085760e4fa667b5dd1 + +PKG_MAINTAINER:=Lukas Voegl +PKG_LICENSE:=LGPL-2.1-or-later +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_DEPENDS:=glib2/host + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk +include $(INCLUDE_DIR)/meson.mk + +define Package/libgudev + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libgudev + URL:=https://gitlab.gnome.org/GNOME/libgudev + DEPENDS:= \ + +glib2 \ + +libudev +endef + +define Package/libgusb/description + libgudev is a GObject-based wrapper library providing bindings for libudev. +endef + +MESON_ARGS+= \ + -Db_lto=true \ + -Dtests=disabled \ + -Dintrospection=disabled \ + -Dvapi=disabled \ + -Dgtk_doc=false + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gudev-1.0/gudev + $(CP) $(PKG_INSTALL_DIR)/usr/include/gudev-1.0/gudev/*.h $(1)/usr/include/gudev-1.0/gudev + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgudev-1.0.so* $(1)/usr/lib + + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gudev-1.0.pc $(1)/usr/lib/pkgconfig +endef + +define Package/libgudev/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgudev-1.0.so* $(1)/usr/lib +endef + +$(eval $(call BuildPackage,libgudev))