2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2008-04-07 03:59:21 +08:00
|
|
|
#
|
|
|
|
# input-tools
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-06-06 07:53:25 +08:00
|
|
|
|
2010-12-13 05:53:47 +08:00
|
|
|
INPUT_TOOLS_VERSION = 20051019
|
2014-06-27 03:20:48 +08:00
|
|
|
INPUT_TOOLS_SOURCE = joystick_$(INPUT_TOOLS_VERSION).orig.tar.gz
|
|
|
|
INPUT_TOOLS_PATCH = joystick_$(INPUT_TOOLS_VERSION)-5.diff.gz
|
2016-01-30 22:27:00 +08:00
|
|
|
INPUT_TOOLS_SITE = http://snapshot.debian.org/archive/debian/20101023T043132Z/pool/main/j/joystick
|
2014-06-27 03:20:48 +08:00
|
|
|
INPUT_TOOLS_LICENSE = GPLv2+
|
|
|
|
INPUT_TOOLS_LICENSE_FILES = utils/Makefile
|
2010-12-13 05:53:47 +08:00
|
|
|
|
|
|
|
INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH) += inputattach
|
|
|
|
INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSCAL) += jscal
|
|
|
|
INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSTEST) += jstest
|
|
|
|
|
|
|
|
define INPUT_TOOLS_DEBIAN_PATCHES
|
|
|
|
if [ -d $(@D)/debian/patches ]; then \
|
2014-10-23 00:20:10 +08:00
|
|
|
$(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*.patch; \
|
2010-12-13 05:53:47 +08:00
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
|
|
|
INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
|
|
|
|
|
2010-12-14 06:17:05 +08:00
|
|
|
# jscal needs -lm
|
2010-12-13 05:53:47 +08:00
|
|
|
define INPUT_TOOLS_BUILD_CMDS
|
2010-12-14 06:17:05 +08:00
|
|
|
for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
2012-06-29 22:27:41 +08:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
|
|
|
|
$(TARGET_LDFLAGS); \
|
2010-12-14 06:17:05 +08:00
|
|
|
done
|
|
|
|
for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
2012-06-29 22:27:41 +08:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
|
|
|
|
$(TARGET_LDFLAGS) -lm; \
|
2010-12-14 06:17:05 +08:00
|
|
|
done
|
2010-12-13 05:53:47 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define INPUT_TOOLS_INSTALL_TARGET_CMDS
|
2010-12-14 06:17:05 +08:00
|
|
|
for i in $(INPUT_TOOLS_TARGETS_y); do \
|
2014-06-01 20:38:01 +08:00
|
|
|
$(INSTALL) -m 755 -D $(@D)/$$i $(TARGET_DIR)/usr/bin/$$i; \
|
2010-12-14 06:17:05 +08:00
|
|
|
done
|
2010-12-13 05:53:47 +08:00
|
|
|
endef
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(generic-package))
|