2014-02-07 14:21:32 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# eudev
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-07-01 21:58:53 +02:00
|
|
|
EUDEV_VERSION = 3.1.2
|
2014-07-17 23:40:46 +02:00
|
|
|
EUDEV_SOURCE = eudev-$(EUDEV_VERSION).tar.gz
|
|
|
|
EUDEV_SITE = http://dev.gentoo.org/~blueness/eudev
|
2014-02-07 14:21:32 +01:00
|
|
|
EUDEV_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries)
|
|
|
|
EUDEV_LICENSE_FILES = COPYING
|
|
|
|
EUDEV_INSTALL_STAGING = YES
|
|
|
|
|
2015-07-31 15:24:53 +02:00
|
|
|
# configure.ac is patched by:
|
|
|
|
# 0002-build-sys-check-for-mallinfo.patch
|
|
|
|
# 0003-build-sys-check-for-strndupa.patch
|
|
|
|
EUDEV_AUTORECONF = YES
|
|
|
|
|
2014-02-07 14:21:32 +01:00
|
|
|
# mq_getattr is in librt
|
|
|
|
EUDEV_CONF_ENV += LIBS=-lrt
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
EUDEV_CONF_OPTS = \
|
2014-03-04 17:30:11 +01:00
|
|
|
--disable-manpages \
|
2014-02-07 14:21:32 +01:00
|
|
|
--sbindir=/sbin \
|
|
|
|
--with-rootlibdir=/lib \
|
|
|
|
--libexecdir=/lib \
|
|
|
|
--with-firmware-path=/lib/firmware \
|
|
|
|
--disable-introspection \
|
|
|
|
--enable-split-usr \
|
|
|
|
--enable-libkmod
|
|
|
|
|
|
|
|
EUDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux kmod
|
2014-05-15 19:37:05 +02:00
|
|
|
EUDEV_PROVIDES = udev
|
2014-02-07 14:21:32 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_EUDEV_RULES_GEN),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
EUDEV_CONF_OPTS += --enable-rule_generator
|
2014-02-07 14:21:32 +01:00
|
|
|
endif
|
|
|
|
|
2015-06-15 21:53:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_EUDEV_ENABLE_HWDB),y)
|
|
|
|
EUDEV_CONF_OPTS += --enable-hwdb
|
|
|
|
else
|
|
|
|
EUDEV_CONF_OPTS += --disable-hwdb
|
|
|
|
endif
|
|
|
|
|
2014-02-07 14:21:32 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
EUDEV_CONF_OPTS += --enable-gudev
|
2014-02-07 14:21:32 +01:00
|
|
|
EUDEV_DEPENDENCIES += libglib2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
EUDEV_CONF_OPTS += --disable-gudev
|
2014-02-07 14:21:32 +01:00
|
|
|
endif
|
|
|
|
|
2015-07-30 18:01:37 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
EUDEV_CONF_OPTS += --enable-selinux
|
|
|
|
EUDEV_DEPENDENCIES += libselinux
|
|
|
|
else
|
|
|
|
EUDEV_CONF_OPTS += --disable-selinux
|
|
|
|
endif
|
|
|
|
|
2014-02-07 14:21:32 +01:00
|
|
|
define EUDEV_INSTALL_INIT_SYSV
|
2015-09-01 13:39:16 +02:00
|
|
|
$(INSTALL) -D -m 0755 package/eudev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
|
2014-02-07 14:21:32 +01:00
|
|
|
endef
|
|
|
|
|
2014-10-21 16:26:38 +02:00
|
|
|
# Required by default rules for input devices
|
|
|
|
define EUDEV_USERS
|
|
|
|
- - input -1 * - - - Input device group
|
|
|
|
endef
|
|
|
|
|
2014-02-07 14:21:32 +01:00
|
|
|
$(eval $(autotools-package))
|