1 ################################################################################
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
; \
24 INPUT_TOOLS_POST_PATCH_HOOKS
= INPUT_TOOLS_DEBIAN_PATCHES
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 \
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
; \
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; \
44 $(eval
$(generic-package
))