mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/misc/joystick/hotfixes.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- joystick-1.2.14/Makefile 1999-03-05 20:37:56.000000000 +0100
  20. +++ joystick-1.2.14/Makefile 2005-03-04 10:10:03.510668744 +0100
  21. @@ -28,6 +28,7 @@
  22. CC = gcc
  23. CPPFLAGS = -I.# # for joystick.h
  24. +CPPFLAGS += -I /usr/include/linux24
  25. CFLAGS = -O2 -Wall -pipe -m486 -fomit-frame-pointer# # i386
  26. # CFLAGS = -O2 -Wall -pipe -m68020 -ffixed-a2# # m68k
  27. @@ -60,16 +61,13 @@
  28. JOYOPRE := $(shell if [ -f .prerelease ]; then cat .prerelease; else echo 0; fi)
  29. JOYPRE := $(shell expr $(JOYOPRE) + 1)
  30. -compile: joystick.o $(DRIVERS) $(PROGRAMS)
  31. +compile: $(PROGRAMS)
  32. install: compile
  33. - mkdir -p $(MODDIR)
  34. - rm -f $(MODDIR)/joy*.o
  35. - cp joy*.o $(MODDIR)
  36. - /sbin/depmod -a
  37. - install -m 644 joystick.h /usr/include/linux
  38. - install -m 755 jscal /usr/local/bin
  39. - install -m 755 jstest /usr/local/bin
  40. + install -m 755 jscal /usr/bin
  41. + install -m 755 jstest /usr/bin
  42. + install -m 755 jsattach /usr/bin
  43. + cp *.txt /usr/share/doc/joystick/
  44. joystick.o: joystick.c joystick.h
  45. $(CC) $(CFLAGS) $(CPPFLAGS) $(MODFLAGS) -c joystick.c -o joystick.o