python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / input-tools / input-tools.mk
blob81e913d8f22f3704acaf619869207a7d7c2724e2
1 ################################################################################
3 # input-tools
5 ################################################################################
7 INPUT_TOOLS_VERSION = 20051019
8 INPUT_TOOLS_SOURCE = joystick_$(INPUT_TOOLS_VERSION).orig.tar.gz
9 INPUT_TOOLS_PATCH = joystick_$(INPUT_TOOLS_VERSION)-5.diff.gz
10 INPUT_TOOLS_SITE = http://snapshot.debian.org/archive/debian/20101023T043132Z/pool/main/j/joystick
11 INPUT_TOOLS_LICENSE = GPLv2+
12 INPUT_TOOLS_LICENSE_FILES = utils/Makefile
14 INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH) += inputattach
15 INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSCAL) += jscal
16 INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSTEST) += jstest
18 define INPUT_TOOLS_DEBIAN_PATCHES
19 if [ -d $(@D)/debian/patches ]; then \
20 $(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*.patch; \
22 endef
24 INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
26 # jscal needs -lm
27 define INPUT_TOOLS_BUILD_CMDS
28 for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \
29 $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
30 $(TARGET_LDFLAGS); \
31 done
32 for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \
33 $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
34 $(TARGET_LDFLAGS) -lm; \
35 done
36 endef
38 define INPUT_TOOLS_INSTALL_TARGET_CMDS
39 for i in $(INPUT_TOOLS_TARGETS_y); do \
40 $(INSTALL) -m 755 -D $(@D)/$$i $(TARGET_DIR)/usr/bin/$$i; \
41 done
42 endef
44 $(eval $(generic-package))