2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-04-06 21:59:21 +02:00
|
|
|
#
|
|
|
|
# input-tools
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2010-12-12 22:53:47 +01:00
|
|
|
INPUT_TOOLS_VERSION = 20051019
|
2014-06-26 21:20:48 +02:00
|
|
|
INPUT_TOOLS_SOURCE = joystick_$(INPUT_TOOLS_VERSION).orig.tar.gz
|
|
|
|
INPUT_TOOLS_PATCH = joystick_$(INPUT_TOOLS_VERSION)-5.diff.gz
|
2014-07-31 10:46:58 +02:00
|
|
|
INPUT_TOOLS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/j/joystick
|
2014-06-26 21:20:48 +02:00
|
|
|
INPUT_TOOLS_LICENSE = GPLv2+
|
|
|
|
INPUT_TOOLS_LICENSE_FILES = utils/Makefile
|
2010-12-12 22:53:47 +01: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 \
|
2011-08-31 23:35:04 +02:00
|
|
|
support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
|
2010-12-12 22:53:47 +01:00
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
|
|
|
INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
|
|
|
|
|
2010-12-13 23:17:05 +01:00
|
|
|
# jscal needs -lm
|
2010-12-12 22:53:47 +01:00
|
|
|
define INPUT_TOOLS_BUILD_CMDS
|
2010-12-13 23:17:05 +01:00
|
|
|
for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
2012-06-29 16:27:41 +02:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
|
|
|
|
$(TARGET_LDFLAGS); \
|
2010-12-13 23:17:05 +01:00
|
|
|
done
|
|
|
|
for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \
|
2012-06-29 16:27:41 +02:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
|
|
|
|
$(TARGET_LDFLAGS) -lm; \
|
2010-12-13 23:17:05 +01:00
|
|
|
done
|
2010-12-12 22:53:47 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define INPUT_TOOLS_INSTALL_TARGET_CMDS
|
2010-12-13 23:17:05 +01:00
|
|
|
for i in $(INPUT_TOOLS_TARGETS_y); do \
|
2014-06-01 14:38:01 +02:00
|
|
|
$(INSTALL) -m 755 -D $(@D)/$$i $(TARGET_DIR)/usr/bin/$$i; \
|
2010-12-13 23:17:05 +01:00
|
|
|
done
|
2010-12-12 22:53:47 +01:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|