forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
joystick-1.4.8-build.patch
39 lines (31 loc) · 998 Bytes
/
joystick-1.4.8-build.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- linuxconsoletools-1.4.4.orig/docs/Makefile
+++ linuxconsoletools-1.4.4/docs/Makefile
@@ -20,13 +20,17 @@
# 02110-1301 USA.
MANPAGES = inputattach.1 jstest.1 jscal.1 fftest.1 \
- ffmvforce.1 ffset.1 ffcfstress.1 jscal-store.1 \
+ ffset.1 ffcfstress.1 jscal-store.1 \
jscal-restore.1
+ifneq ($(USE_SDL),no)
+MANPAGES += ffmvforce.1
+endif
+
PREFIX ?= /usr/local
install:
install -d $(DESTDIR)$(PREFIX)/share/man/man1
- install $(MANPAGES) $(DESTDIR)$(PREFIX)/share/man/man1
+ install -m 644 $(MANPAGES) $(DESTDIR)$(PREFIX)/share/man/man1
.PHONY: install
--- linuxconsoletools-1.4.4.orig/utils/Makefile
+++ linuxconsoletools-1.4.4/utils/Makefile
@@ -27,9 +27,13 @@
CFLAGS ?= -g -O2 -Wall
-PROGRAMS = inputattach jstest jscal fftest ffmvforce ffset \
+PROGRAMS = inputattach jstest jscal fftest ffset \
ffcfstress jscal-restore jscal-store
+ifneq ($(USE_SDL),no)
+PROGRAMS += ffmvforce
+endif
+
PREFIX ?= /usr/local
compile: $(PROGRAMS)