-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lukas Voegl <[email protected]>
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# | ||
# Copyright (C) 2024 TDT AG <[email protected]> | ||
# | ||
# 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 <[email protected]> | ||
PKG_LICENSE:=LGPL-2.1-or-later | ||
PKG_LICENSE_FILES:=COPYING | ||
|
||
PKG_BUILD_DEPENDS:=glib2/host | ||
PKG_BUILD_PARALLEL:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
include $(INCLUDE_DIR)/nls.mk | ||
include $(INCLUDE_DIR)/meson.mk | ||
|
||
define Package/libgudev | ||
SECTION:=libs | ||
CATEGORY:=Libraries | ||
TITLE:=GObject-based wrapper library for libudev | ||
URL:=https://wiki.gnome.org/Projects/libgudev | ||
DEPENDS:= \ | ||
$(INTL_DEPENDS) \ | ||
+glib2 \ | ||
+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)) |