summaryrefslogtreecommitdiffstats
path: root/recipes/xbmc/xbmc/0009-Added-a-configure-option-disable-optical-drive.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/xbmc/xbmc/0009-Added-a-configure-option-disable-optical-drive.patch')
-rw-r--r--recipes/xbmc/xbmc/0009-Added-a-configure-option-disable-optical-drive.patch76
1 files changed, 76 insertions, 0 deletions
diff --git a/recipes/xbmc/xbmc/0009-Added-a-configure-option-disable-optical-drive.patch b/recipes/xbmc/xbmc/0009-Added-a-configure-option-disable-optical-drive.patch
new file mode 100644
index 0000000000..4a1487e9a9
--- /dev/null
+++ b/recipes/xbmc/xbmc/0009-Added-a-configure-option-disable-optical-drive.patch
@@ -0,0 +1,76 @@
+From f5ba37fc083be1acd412cf2643dab9aaa81f20d8 Mon Sep 17 00:00:00 2001
+From: topfs2 <topfs2@568bbfeb-2a22-0410-94d2-cc84cf5bfa90>
+Date: Fri, 25 Jun 2010 08:58:43 +0000
+Subject: [PATCH 09/11] Added a configure option --disable-optical-drive
+
+git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/gsoc-2010-beagleboard@31373 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
+---
+ configure.in | 17 +++++++++++++++++
+ guilib/system.h | 2 +-
+ 2 files changed, 18 insertions(+), 1 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index b69261f..d861b28 100644
+--- a/configure.in
++++ b/configure.in
+@@ -228,6 +228,12 @@ AC_ARG_ENABLE([webserver],
+ [use_webserver=$enableval],
+ [use_webserver=yes])
+
++AC_ARG_ENABLE([optical-drive],
++ [AS_HELP_STRING([--disable-optical-drive],
++ [disable optical drive])],
++ [use_optical_drive=$enableval],
++ [use_optical_drive=yes])
++
+ AC_ARG_ENABLE([libdts],
+ [AS_HELP_STRING([--enable-libdts],
+ [enable deprecated libdts support])],
+@@ -616,6 +622,11 @@ else
+ fi
+ fi
+
++# Optical
++if test "$use_optical_drive" = "yes"; then
++ AC_DEFINE([HAS_DVD_DRIVE], [1], [Define to 1 to have optical drive support])
++fi
++
+ # PulseAudio
+ if test "x$use_pulse" != "xno"; then
+ if test "$host_vendor" = "apple" ; then
+@@ -1258,6 +1269,12 @@ else
+ final_message="$final_message\n WebM support:\tNo"
+ fi
+
++if test "$use_optical_drive" = "yes"; then
++ final_message="$final_message\n Optical drive:\tYes"
++else
++ final_message="$final_message\n Optical drive:\tNo"
++fi
++
+ if test "$use_librtmp" = "yes"; then
+ final_message="$final_message\n libRTMP support:\tYes"
+ else
+diff --git a/guilib/system.h b/guilib/system.h
+index 560778d..6e21cdb 100644
+--- a/guilib/system.h
++++ b/guilib/system.h
+@@ -32,7 +32,6 @@
+ #define HAS_SDL
+ #endif
+
+-#define HAS_DVD_DRIVE
+ #define HAS_DVD_SWSCALE
+ #define HAS_DVDPLAYER
+ #define HAS_EVENT_SERVER
+@@ -87,6 +86,7 @@
+ *****************/
+
+ #ifdef _WIN32
++#define HAS_DVD_DRIVE
+ #define HAS_SDL_JOYSTICK
+ #define HAS_WIN32_NETWORK
+ #define HAS_IRSERVERSUITE
+--
+1.6.6.1
+