From 45a200ab9d19582fd13551a7a6a30e0ad2260bdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 3 Jan 2014 18:53:42 +0100 Subject: [PATCH] - fix type conflict with jpeglib - updated BRs - rel 1 --- jpeglib-boolean.patch | 53 +++++++++++++++++++++++++++++++++++++++++++ xbmc.spec | 5 +++- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 jpeglib-boolean.patch diff --git a/jpeglib-boolean.patch b/jpeglib-boolean.patch new file mode 100644 index 0000000..52283b8 --- /dev/null +++ b/jpeglib-boolean.patch @@ -0,0 +1,53 @@ +--- xbmc-12.3-Frodo/xbmc/guilib/JpegIO.cpp~ 2013-12-12 22:47:49.000000000 +0100 ++++ xbmc-12.3-Frodo/xbmc/guilib/JpegIO.cpp 2014-01-03 18:43:06.138467273 +0100 +@@ -341,7 +341,7 @@ + else + { + jpeg_save_markers (&m_cinfo, JPEG_APP0 + 1, 0xFFFF); +- jpeg_read_header(&m_cinfo, true); ++ jpeg_read_header(&m_cinfo, TRUE); + + /* libjpeg can scale the image for us if it is too big. It must be in the format + num/denom, where (for our purposes) that is [1-8]/8 where 8/8 is the unscaled image. +--- xbmc-12.3-Frodo/xbmc/guilib/JpegIO.h~ 2014-01-03 11:07:38.000000000 +0100 ++++ xbmc-12.3-Frodo/xbmc/guilib/JpegIO.h 2014-01-03 11:08:16.622039556 +0100 +@@ -26,6 +26,8 @@ + #pragma comment(lib, "turbojpeg-static.lib") + #endif + ++#undef TRUE ++#undef FALSE + #include + #include "utils/StdString.h" + +--- xbmc-12.3-Frodo/lib/cximage-6.0/CxImage/ximajpg.cpp~ 2013-12-12 22:47:49.000000000 +0100 ++++ xbmc-12.3-Frodo/lib/cximage-6.0/CxImage/ximajpg.cpp 2014-01-03 11:52:50.862020197 +0100 +@@ -10,7 +10,7 @@ + #if CXIMAGE_SUPPORT_JPG + + #ifdef _LINUX +-#include ++//#include + #else + #include "../jpeg/jmorecfg.h" + #endif +@@ -659,7 +659,7 @@ + if ((GetCodecOption(CXIMAGE_FORMAT_JPG) & ENCODE_SMOOTHING) != 0) + cinfo.smoothing_factor = m_nSmoothing; + +- jpeg_set_quality(&cinfo, GetJpegQuality(), (GetCodecOption(CXIMAGE_FORMAT_JPG) & ENCODE_BASELINE) != 0); ++ jpeg_set_quality(&cinfo, GetJpegQuality(), (boolean)((GetCodecOption(CXIMAGE_FORMAT_JPG) & ENCODE_BASELINE) != 0)); + + //#ifdef C_PROGRESSIVE_SUPPORTED + if ((GetCodecOption(CXIMAGE_FORMAT_JPG) & ENCODE_PROGRESSIVE) != 0) +--- xbmc-12.3-Frodo/lib/cximage-6.0/CxImage/ximajpg.h~ 2014-01-03 11:51:37.000000000 +0100 ++++ xbmc-12.3-Frodo/lib/cximage-6.0/CxImage/ximajpg.h 2014-01-03 18:05:40.095150198 +0100 +@@ -29,6 +29,8 @@ + + extern "C" { + #ifdef _LINUX ++#undef TRUE ++#undef FALSE + #include + #include + #else diff --git a/xbmc.spec b/xbmc.spec index 4415d7d..fb6ba41 100644 --- a/xbmc.spec +++ b/xbmc.spec @@ -15,12 +15,13 @@ Summary: XBMC is a free and open source media-player and entertainment hub Name: xbmc Version: 12.3 -Release: 0 +Release: 1 License: GPL v2+ and GPL v3+ Group: Applications/Multimedia Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz # Source0-md5: 7ae385ebf8e5cfcb917393235e6efbdb Patch0: ffmpeg2.patch +Patch1: jpeglib-boolean.patch URL: http://xbmc.org/ BuildRequires: Mesa-libGLU-devel BuildRequires: OpenGL-devel @@ -59,6 +60,7 @@ BuildRequires: libcrystalhd-devel %endif BuildRequires: libgcrypt-devel BuildRequires: libjpeg-devel +BuildRequires: libltdl-devel BuildRequires: libmad-devel BuildRequires: libmicrohttpd-devel BuildRequires: libmodplug-devel @@ -128,6 +130,7 @@ forecast functions, together third-party plugins. %prep %setup -q -n %{name}-%{version}-%{codename} %patch0 -p1 +%patch1 -p1 %build ./bootstrap -- 2.44.0