Ticket #4238: 0001-configure-Check-linking-against-CoreGraphics-or-Appl.patch

File 0001-configure-Check-linking-against-CoreGraphics-or-Appl.patch, 2.0 KB (added by Thilo Borgmann, 12 years ago)
  • configure

    From abcb97dc0d6adc8d6512910ff1c5ad434a850413 Mon Sep 17 00:00:00 2001
    From: Thilo Borgmann <thilo.borgmann@mail.de>
    Date: Sat, 31 Jan 2015 19:12:02 +0100
    Subject: [PATCH] configure: Check linking against CoreGraphics or
     ApplicationServices framework for avfoundation input device.
    
    Possibly fixes ticket #4238.
    ---
     configure | 8 ++++++--
     1 file changed, 6 insertions(+), 2 deletions(-)
    
    diff --git a/configure b/configure
    index 6c61f2a..7655871 100755
    a b xwma_demuxer_select="riffdec"  
    24812481# indevs / outdevs
    24822482alsa_indev_deps="alsa_asoundlib_h snd_pcm_htimestamp"
    24832483alsa_outdev_deps="alsa_asoundlib_h"
    2484 avfoundation_indev_extralibs="-framework CoreVideo -framework Foundation -framework AVFoundation -framework CoreMedia -framework CoreGraphics"
     2484avfoundation_indev_extralibs="-framework CoreVideo -framework Foundation -framework AVFoundation -framework CoreMedia"
    24852485avfoundation_indev_select="avfoundation"
    24862486bktr_indev_deps_any="dev_bktr_ioctl_bt848_h machine_ioctl_bt848_h dev_video_bktr_ioctl_bt848_h dev_ic_bt8xx_h"
    24872487caca_outdev_deps="libcaca"
    … … for func in $MATH_FUNCS; do  
    48664866done
    48674867
    48684868# these are off by default, so fail if requested and not available
    4869 enabled avfoundation_indev && { check_header_oc AVFoundation/AVFoundation.h || disable avfoundation_indev; }
     4869enabled avfoundation_indev && check_header_oc AVFoundation/AVFoundation.h &&
     4870                                { check_lib2 CoreGraphics/CoreGraphics.h CGImageGetTypeID -Wl,-framework,CoreGraphics  ||
     4871                                  check_lib2 ApplicationServices/ApplicationServices.h CGImageGetTypeID -Wl,-framework,ApplicationServices ||
     4872                                  disable avfoundation_indev; }
     4873
    48704874enabled avisynth          && { { check_lib2 "windows.h" LoadLibrary; } ||
    48714875                               { check_lib2 "dlfcn.h" dlopen -ldl; } ||
    48724876                               die "ERROR: LoadLibrary/dlopen not found for avisynth"; }