2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-04-21 04:30:09 +02:00
|
|
|
#
|
|
|
|
# input-event-daemon
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-04-21 04:30:09 +02:00
|
|
|
|
|
|
|
INPUT_EVENT_DAEMON_VERSION = v0.1.3
|
2012-09-20 12:48:20 +02:00
|
|
|
INPUT_EVENT_DAEMON_SITE = http://github.com/gandro/input-event-daemon/tarball/$(INPUT_EVENT_DAEMON_VERSION)
|
2012-08-06 04:21:22 +02:00
|
|
|
INPUT_EVENT_DAEMON_LICENSE = input-event-daemon license
|
|
|
|
INPUT_EVENT_DAEMON_LICENSE_FILES = README
|
2011-04-21 04:30:09 +02:00
|
|
|
|
|
|
|
define INPUT_EVENT_DAEMON_BUILD_CMDS
|
|
|
|
touch $(@D)/input-event-table.h
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 755 -D $(@D)/input-event-daemon \
|
|
|
|
$(TARGET_DIR)/usr/bin/input-event-daemon
|
|
|
|
[ -f $(TARGET_DIR)/etc/input-event-daemon.conf ] || \
|
|
|
|
$(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
|
|
|
|
$(TARGET_DIR)/etc/input-event-daemon.conf
|
|
|
|
[ -f $(TARGET_DIR)/etc/init.d/S99input-event-daemon ] || \
|
|
|
|
$(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S99input-event-daemon
|
|
|
|
endef
|
|
|
|
|
|
|
|
define INPUT_EVENT_DAEMON_CLEAN_CMDS
|
|
|
|
$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
|
|
|
|
|
|
|
define INPUT_EVENT_DAEMON_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/input-event-daemon
|
|
|
|
rm -f $(TARGET_DIR)/etc/input-event-daemon.conf
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|