summaryrefslogtreecommitdiffstats
path: root/multimedia/mplayer/files
diff options
context:
space:
mode:
authorstefan <stefan@FreeBSD.org>2007-04-05 10:05:22 +0000
committerstefan <stefan@FreeBSD.org>2007-04-05 10:05:22 +0000
commit44087d5afaf19da6515898d4f1040fe49cc1867a (patch)
tree392d3d4c39807c391da914ea60a60f0cbd805127 /multimedia/mplayer/files
parentd984efddf084d44cd4ca5f4968e05b2fde106e12 (diff)
downloadFreeBSD-ports-44087d5afaf19da6515898d4f1040fe49cc1867a.zip
FreeBSD-ports-44087d5afaf19da6515898d4f1040fe49cc1867a.tar.gz
Enable joystick support.
PR: 111076 Submitted by: Teemu Korhonen <venefics@mbnet.fi> Patch by: submitter/maintainer Approved by: maintainer
Diffstat (limited to 'multimedia/mplayer/files')
-rw-r--r--multimedia/mplayer/files/patch-ad21
-rw-r--r--multimedia/mplayer/files/patch-input-joystick.c29
2 files changed, 48 insertions, 2 deletions
diff --git a/multimedia/mplayer/files/patch-ad b/multimedia/mplayer/files/patch-ad
index a9d297a..70734c7 100644
--- a/multimedia/mplayer/files/patch-ad
+++ b/multimedia/mplayer/files/patch-ad
@@ -1,5 +1,5 @@
---- configure.orig Mon Oct 23 00:32:31 2006
-+++ configure Tue Oct 24 22:19:10 2006
+--- configure.orig Tue Apr 3 13:35:43 2007
++++ configure Tue Apr 3 13:35:51 2007
@@ -59,9 +59,9 @@
echo >> "$TMPLOG"
cat "$1" >> "$TMPLOG"
@@ -150,3 +150,20 @@
fi
# 64 bit file offsets?
if test "$_largefiles" = yes || freebsd ; then
+@@ -7362,12 +7325,12 @@
+ echocheck "joystick"
+ _def_joystick='#undef HAVE_JOYSTICK'
+ if test "$_joystick" = yes ; then
+- if linux ; then
++# if linux ; then
+ # TODO add some check
+ _def_joystick='#define HAVE_JOYSTICK 1'
+- else
+- _joystick="no (unsupported under $system_name)"
+- fi
++# else
++# _joystick="no (unsupported under $system_name)"
++# fi
+ fi
+ echores "$_joystick"
+
diff --git a/multimedia/mplayer/files/patch-input-joystick.c b/multimedia/mplayer/files/patch-input-joystick.c
new file mode 100644
index 0000000..f57f78b
--- /dev/null
+++ b/multimedia/mplayer/files/patch-input-joystick.c
@@ -0,0 +1,29 @@
+--- input/joystick.c.orig Sat Mar 31 05:10:08 2007
++++ input/joystick.c Sat Mar 31 05:09:30 2007
+@@ -24,8 +24,6 @@
+ #define JS_DEV "/dev/input/js0"
+ #endif
+
+-#ifdef TARGET_LINUX
+-
+ #include <linux/joystick.h>
+
+ int axis[256];
+@@ -147,17 +145,3 @@
+ return MP_INPUT_NOTHING;
+ }
+
+-#else
+-
+-// dummy function
+-
+-int mp_input_joystick_init(char* dev) {
+- return -1;
+-}
+-
+-int mp_input_joystick_read(int fd) {
+-
+- return MP_INPUT_NOTHING;
+-}
+-
+-#endif
OpenPOWER on IntegriCloud