input-event-daemon.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ################################################################################
  2. #
  3. # input-event-daemon
  4. #
  5. ################################################################################
  6. INPUT_EVENT_DAEMON_VERSION = v0.1.3
  7. INPUT_EVENT_DAEMON_SOURCE = input-event-daemon-$(INPUT_EVENT_DAEMON_VERSION).tar.xz
  8. INPUT_EVENT_DAEMON_SITE = http://github.com/gandro/input-event-daemon/tarball/$(INPUT_EVENT_DAEMON_VERSION)
  9. INPUT_EVENT_DAEMON_LICENSE = input-event-daemon license
  10. INPUT_EVENT_DAEMON_LICENSE_FILES = README
  11. define INPUT_EVENT_DAEMON_BUILD_CMDS
  12. touch $(@D)/input-event-table.h
  13. $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
  14. LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
  15. endef
  16. define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS
  17. $(INSTALL) -m 755 -D $(@D)/input-event-daemon \
  18. $(TARGET_DIR)/usr/bin/input-event-daemon
  19. [ -f $(TARGET_DIR)/etc/input-event-daemon.conf ] || \
  20. $(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
  21. $(TARGET_DIR)/etc/input-event-daemon.conf
  22. [ -f $(TARGET_DIR)/etc/init.d/S99input-event-daemon ] || \
  23. $(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
  24. $(TARGET_DIR)/etc/init.d/S99input-event-daemon
  25. endef
  26. define INPUT_EVENT_DAEMON_CLEAN_CMDS
  27. $(MAKE) -C $(@D) clean
  28. endef
  29. define INPUT_EVENT_DAEMON_UNINSTALL_TARGET_CMDS
  30. rm -f $(TARGET_DIR)/usr/bin/input-event-daemon
  31. rm -f $(TARGET_DIR)/etc/input-event-daemon.conf
  32. endef
  33. $(eval $(generic-package))