From c8fd9e50e47838bbdb0dc5e0b974091312cb8833 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 31 Mar 2013 11:03:04 +0200 Subject: remove Apple Remote related code The OSX part of the Apple Remote was unmaintained for a long time and was not working anymore. I tried to update the cookies to what the current versions of OS X expect without much luck. I decided to remove it since Apple is not including the IR receiver anymore in new hardware and it's clear that wifi based remotes are the way to go. A third party iOS app should be used in it's place. In the future we could look into having a dedicated iOS Remote Control app like VLC and XBMC do. The Linux side (`appleir.c`) was relatively tidy but it looks like LIRC can be configured to work with any version of Apple Remote [1] and is more maintained. [1] LIRC Apple Remote configs: http://lirc.sourceforge.net/remotes/apple/ --- configure | 65 --------------------------------------------------------------- 1 file changed, 65 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 875c1b91f0..7a3b9e786f 100755 --- a/configure +++ b/configure @@ -298,8 +298,6 @@ Optional features: --enable-lirc enable LIRC (remote control) support [autodetect] --enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect] --enable-joystick enable joystick support [disable] - --enable-apple-remote enable Apple Remote input (Mac OS X only) [autodetect] - --enable-apple-ir enable Apple IR Remote input (Linux only) [autodetect] --disable-vm disable X video mode extensions [autodetect] --disable-xf86keysym disable support for multimedia keys [autodetect] --enable-radio enable radio interface [disable] @@ -468,8 +466,6 @@ _libquvi=auto _joystick=no _lirc=auto _lircc=auto -_apple_remote=auto -_apple_ir=auto _termcap=auto _termios=auto _shm=auto @@ -678,10 +674,6 @@ for ac_option do --disable-lirc) _lirc=no ;; --enable-lircc) _lircc=yes ;; --disable-lircc) _lircc=no ;; - --enable-apple-remote) _apple_remote=yes ;; - --disable-apple-remote) _apple_remote=no ;; - --enable-apple-ir) _apple_ir=yes ;; - --disable-apple-ir) _apple_ir=no ;; --enable-termcap) _termcap=yes ;; --disable-termcap) _termcap=no ;; --enable-termios) _termios=yes ;; @@ -1686,60 +1678,8 @@ if test "$_macosx_bundle" = yes ; then fi echores "$_macosx_bundle" -echocheck "Apple Remote" -if test "$_apple_remote" = auto ; then - _apple_remote=no - cat > $TMPC < -#include -int main(void) { - io_iterator_t hidObjectIterator = (io_iterator_t)NULL; - CFMutableDictionaryRef hidMatchDictionary; - IOReturn ioReturnValue; - - // Set up a matching dictionary to search the I/O Registry by class. - // name for all HID class devices - hidMatchDictionary = IOServiceMatching("AppleIRController"); - - // Now search I/O Registry for matching devices. - ioReturnValue = IOServiceGetMatchingServices(kIOMasterPortDefault, - hidMatchDictionary, &hidObjectIterator); - - // If search is unsuccessful, return nonzero. - if (ioReturnValue != kIOReturnSuccess || - !IOIteratorIsValid(hidObjectIterator)) { - return 1; - } - return 0; -} -EOF - cc_check -framework IOKit && _apple_remote=yes -fi -if test "$_apple_remote" = yes ; then - def_apple_remote='#define CONFIG_APPLE_REMOTE 1' - libs_mplayer="$libs_mplayer -framework IOKit -framework Cocoa" -else - def_apple_remote='#undef CONFIG_APPLE_REMOTE' -fi -echores "$_apple_remote" - fi #if darwin -if linux; then - -echocheck "Apple IR" -if test "$_apple_ir" = auto ; then - _apple_ir=no - statement_check linux/input.h 'struct input_event ev; struct input_id id' && _apple_ir=yes -fi -if test "$_apple_ir" = yes ; then - def_apple_ir='#define CONFIG_APPLE_IR 1' -else - def_apple_ir='#undef CONFIG_APPLE_IR' -fi -echores "$_apple_ir" -fi #if linux - echocheck "pkg-config" if $($_pkg_config --version > /dev/null 2>&1); then if test "$_ld_static"; then @@ -3063,9 +3003,6 @@ NEED_SHMEM = $need_shmem # features ALSA = $_alsa -APPLE_IR = $_apple_ir -APPLE_REMOTE = $_apple_remote -AUDIO_INPUT = $_audio_input CACA = $_caca CDDA = $_cdda CDDB = $_cddb @@ -3277,8 +3214,6 @@ $def_libbs2b /* input */ -$def_apple_ir -$def_apple_remote $def_joystick $def_lirc $def_lircc -- cgit v1.2.3