summaryrefslogtreecommitdiffstats
path: root/package/libgudev
diff options
context:
space:
mode:
authorNathaniel Roach <nroach44@gmail.com>2015-08-24 23:44:14 +0800
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-25 16:35:15 +0200
commitb935d49a91a31d42a88eba5997796f131256e371 (patch)
tree9c84d393622aebf0d947472ef5f4e7dc60945242 /package/libgudev
parent1a91c82f8a8e2de1ab95794429dfa90b78d51670 (diff)
downloadbuildroot-b935d49a91a31d42a88eba5997796f131256e371.tar.gz
buildroot-b935d49a91a31d42a88eba5997796f131256e371.zip
libgudev: New package
As libgudev recently was split from the main systemd/udev source, this library is now required to build certain packages. This library is only relevant to systemd, as the code it contains is still contained in eudev. [Thomas: - don't show the dependency comment when systemd is not available, since libgudev is anyway useless when you're not using systemd. - fix the license, it's LGPLv2.1+ and not GPLv2+ - remove useless empty lines in the .mk file.] Signed-off-by: Nathaniel Roach <nroach44@gmail.com> Tested-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libgudev')
-rw-r--r--package/libgudev/Config.in22
-rw-r--r--package/libgudev/libgudev.mk15
2 files changed, 37 insertions, 0 deletions
diff --git a/package/libgudev/Config.in b/package/libgudev/Config.in
new file mode 100644
index 0000000000..9b64ffc4f9
--- /dev/null
+++ b/package/libgudev/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_LIBGUDEV
+ bool "libgudev"
+ depends on BR2_INIT_SYSTEMD
+ depends on BR2_USE_WCHAR # gettext
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU # fork()
+ select BR2_PACKAGE_LIBGLIB2
+ help
+ This library provides GObject bindings for libudev. It was
+ originally part of udev-extras, then udev, then systemd.
+ It's now a project on its own. Required for building some
+ programs that use udev, when using systemd.
+
+ When systemd is not used, libgudev is directly provided by
+ eudev.
+
+ https://wiki.gnome.org/Projects/libgudev
+
+comment "libgudev needs a toolchain w/ wchar, threads"
+ depends on BR2_USE_MMU
+ depends on BR2_INIT_SYSTEMD
+ depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libgudev/libgudev.mk b/package/libgudev/libgudev.mk
new file mode 100644
index 0000000000..dce9cd8e71
--- /dev/null
+++ b/package/libgudev/libgudev.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# libgudev
+#
+################################################################################
+
+LIBGUDEV_VERSION = 230
+LIBGUDEV_SOURCE = libgudev-$(LIBGUDEV_VERSION).tar.xz
+LIBGUDEV_SITE = http://ftp.gnome.org/pub/GNOME/sources/libgudev/$(LIBGUDEV_VERSION)
+LIBGUDEV_INSTALL_STAGING = YES
+LIBGUDEV_DEPENDENCIES = host-pkgconf udev libglib2
+LIBGUDEV_LICENSE = LGPLv2.1+
+LIBGUDEV_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud