Warning, file /packaging/appimage-packaging/kdenlive/scripts/sdl.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #!/bin/bash 0002 set -e 0003 set -x 0004 cd /app/src/ 0005 wget https://www.libsdl.org/release/SDL-1.2.15.tar.gz 0006 tar -xf SDL-1.2.15.tar.gz 0007 cd SDL-1.2.15 0008 # patch SDL 0009 cat > sdl_fix.patch << EOF 0010 diff -r f7fd5c3951b9 -r 91ad7b43317a configure.in 0011 --- a/configure.in Wed Apr 17 00:56:53 2013 -0700 0012 +++ b/configure.in Sun Jun 02 20:48:53 2013 +0600 0013 @@ -1169,6 +1169,17 @@ 0014 if test x$definitely_enable_video_x11_xrandr = xyes; then 0015 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR) 0016 fi 0017 + AC_MSG_CHECKING(for const parameter to _XData32) 0018 + have_const_param_xdata32=no 0019 + AC_TRY_COMPILE([ 0020 + #include <X11/Xlibint.h> 0021 + extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len); 0022 + ],[ 0023 + ],[ 0024 + have_const_param_xdata32=yes 0025 + AC_DEFINE(SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32) 0026 + ]) 0027 + AC_MSG_RESULT($have_const_param_xdata32) 0028 fi 0029 fi 0030 } 0031 diff -r f7fd5c3951b9 -r 91ad7b43317a include/SDL_config.h.in 0032 --- a/include/SDL_config.h.in Wed Apr 17 00:56:53 2013 -0700 0033 +++ b/include/SDL_config.h.in Sun Jun 02 20:48:53 2013 +0600 0034 @@ -283,6 +283,7 @@ 0035 #undef SDL_VIDEO_DRIVER_WINDIB 0036 #undef SDL_VIDEO_DRIVER_WSCONS 0037 #undef SDL_VIDEO_DRIVER_X11 0038 +#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 0039 #undef SDL_VIDEO_DRIVER_X11_DGAMOUSE 0040 #undef SDL_VIDEO_DRIVER_X11_DYNAMIC 0041 #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT 0042 diff -r f7fd5c3951b9 -r 91ad7b43317a src/video/x11/SDL_x11sym.h 0043 --- a/src/video/x11/SDL_x11sym.h Wed Apr 17 00:56:53 2013 -0800 0044 +++ b/src/video/x11/SDL_x11sym.h Sun Jun 02 20:48:53 2013 +0100 0045 @@ -165,7 +165,7 @@ 0046 */ 0047 #ifdef LONG64 0048 SDL_X11_MODULE(IO_32BIT) 0049 -SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) 0050 +SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return) 0051 SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),) 0052 #endif 0053 0054 EOF 0055 cat sdl_fix.patch |patch -p1 0056 cd .. 0057 0058 cd SDL-1.2.15 0059 if ./configure --prefix=/opt/usr; then 0060 0061 make 0062 sudo make install 0063 0064 else 0065 error_exit "$LINENO: An error has occurred.. Aborting." 0066 fi 0067 0068 function error_exit 0069 { 0070 echo "$1" 1>&2 0071 exit 1 0072 }