1*4882a593SmuzhiyunSUMMARY = "Simple DirectMedia Layer" 2*4882a593SmuzhiyunDESCRIPTION = "Simple DirectMedia Layer is a cross-platform multimedia \ 3*4882a593Smuzhiyunlibrary designed to provide low level access to audio, keyboard, mouse, \ 4*4882a593Smuzhiyunjoystick, 3D hardware via OpenGL, and 2D video framebuffer." 5*4882a593SmuzhiyunHOMEPAGE = "http://www.libsdl.org" 6*4882a593SmuzhiyunBUGTRACKER = "http://bugzilla.libsdl.org/" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunSECTION = "libs" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunLICENSE = "LGPL-2.1-only" 11*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunPROVIDES = "virtual/libsdl" 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunPR = "r3" 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunSRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \ 18*4882a593Smuzhiyun file://libsdl-1.2.15-xdata32.patch \ 19*4882a593Smuzhiyun file://pkgconfig.patch \ 20*4882a593Smuzhiyun file://0001-build-Pass-tag-CC-explictly-when-using-libtool.patch \ 21*4882a593Smuzhiyun file://CVE-2019-7577.patch \ 22*4882a593Smuzhiyun file://CVE-2019-7574.patch \ 23*4882a593Smuzhiyun file://CVE-2019-7572.patch \ 24*4882a593Smuzhiyun file://CVE-2019-7578.patch \ 25*4882a593Smuzhiyun file://CVE-2019-7575.patch \ 26*4882a593Smuzhiyun file://CVE-2019-7635.patch \ 27*4882a593Smuzhiyun file://CVE-2019-7637.patch \ 28*4882a593Smuzhiyun file://CVE-2019-7638.patch \ 29*4882a593Smuzhiyun file://CVE-2019-7576.patch \ 30*4882a593Smuzhiyun file://CVE-2019-13616.patch \ 31*4882a593Smuzhiyun " 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "SDL-(?P<pver>\d+(\.\d+)+)\.tar" 34*4882a593Smuzhiyun 35*4882a593SmuzhiyunS = "${WORKDIR}/SDL-${PV}" 36*4882a593Smuzhiyun 37*4882a593SmuzhiyunSRC_URI[md5sum] = "9d96df8417572a2afb781a7c4c811a85" 38*4882a593SmuzhiyunSRC_URI[sha256sum] = "d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00" 39*4882a593Smuzhiyun 40*4882a593SmuzhiyunBINCONFIG = "${bindir}/sdl-config" 41*4882a593Smuzhiyun 42*4882a593Smuzhiyuninherit autotools lib_package binconfig-disabled pkgconfig 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunCVE_PRODUCT = "simple_directmedia_layer sdl" 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunEXTRA_OECONF = "--disable-static --enable-cdrom --enable-threads --enable-timers \ 47*4882a593Smuzhiyun --enable-file --disable-oss --disable-esd --disable-arts \ 48*4882a593Smuzhiyun --disable-diskaudio --disable-nas \ 49*4882a593Smuzhiyun --disable-mintaudio --disable-nasm --disable-video-dga \ 50*4882a593Smuzhiyun --disable-video-fbcon --disable-video-ps2gs --disable-video-ps3 \ 51*4882a593Smuzhiyun --disable-xbios --disable-gem --disable-video-dummy \ 52*4882a593Smuzhiyun --enable-input-events --enable-pthreads \ 53*4882a593Smuzhiyun --disable-video-svga \ 54*4882a593Smuzhiyun --disable-video-picogui --disable-video-qtopia --enable-sdl-dlopen \ 55*4882a593Smuzhiyun --disable-rpath" 56*4882a593Smuzhiyun 57*4882a593SmuzhiyunPACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ 58*4882a593Smuzhiyun ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}" 59*4882a593SmuzhiyunPACKAGECONFIG:class-native = "x11" 60*4882a593SmuzhiyunPACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" 61*4882a593Smuzhiyun 62*4882a593SmuzhiyunPACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib" 63*4882a593SmuzhiyunPACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio" 64*4882a593SmuzhiyunPACKAGECONFIG[tslib] = "--enable-input-tslib, --disable-input-tslib, tslib" 65*4882a593SmuzhiyunPACKAGECONFIG[directfb] = "--enable-video-directfb, --disable-video-directfb, directfb" 66*4882a593SmuzhiyunPACKAGECONFIG[opengl] = "--enable-video-opengl, --disable-video-opengl, virtual/libgl libglu" 67*4882a593SmuzhiyunPACKAGECONFIG[x11] = "--enable-video-x11 --disable-x11-shared, --disable-video-x11, virtual/libx11 libxext libxrandr libxrender" 68*4882a593Smuzhiyun 69*4882a593Smuzhiyun# The following two options should only enabled with mingw support 70*4882a593SmuzhiyunPACKAGECONFIG[stdio-redirect] = "--enable-stdio-redirect,--disable-stdio-redirect" 71*4882a593SmuzhiyunPACKAGECONFIG[directx] = "--enable-directx,--disable-directx" 72*4882a593Smuzhiyun 73*4882a593SmuzhiyunEXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" 74*4882a593Smuzhiyun 75*4882a593Smuzhiyundo_configure:prepend() { 76*4882a593Smuzhiyun # Remove old libtool macros. 77*4882a593Smuzhiyun MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" 78*4882a593Smuzhiyun for i in ${MACROS}; do 79*4882a593Smuzhiyun rm -f ${S}/acinclude/$i 80*4882a593Smuzhiyun done 81*4882a593Smuzhiyun export SYSROOT=$PKG_CONFIG_SYSROOT_DIR 82*4882a593Smuzhiyun} 83*4882a593Smuzhiyun 84*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 85*4882a593Smuzhiyun 86*4882a593Smuzhiyun#CVE-2019-14906 is a RHEL specific vulnerability. 87*4882a593SmuzhiyunCVE_CHECK_IGNORE += "CVE-2019-14906" 88