From 8568f2fa88573dcee25b63598ee0a8f42be8441a Mon Sep 17 00:00:00 2001 From: woodsb02 Date: Sun, 8 Jan 2017 15:29:22 +0000 Subject: multimedia/plexhometheater: Pet portlint (no-op) - Re-generate patches with makepatch (pet portlint) - Remove blank lines between BUILD/LIB/RUN_DEPENDS (pet portlint) - Add LICENSE_FILE --- multimedia/plexhometheater/Makefile | 3 +- multimedia/plexhometheater/files/patch-clang | 66 ++++----- ...h-plex_CMakeModules_PlatformConfigFREEBSD.cmake | 147 +++++++++++++++++++++ ...plex__CMakeModules__PlatformConfigFREEBSD.cmake | 147 --------------------- ...cores__AudioEngine__Engines__SoftAE__SoftAE.cpp | 13 -- ...__cores__dvdplayer__DVDCodecs__Video__VAAPI.cpp | 11 -- .../files/patch-xbmc__freebsd__CMakeLists.txt | 6 - ...mc__threads__platform__pthreads__ThreadImpl.cpp | 28 ---- ...ns__XBMCProjectM__libprojectM__PresetLoader.hpp | 11 -- ...bmc_cores_AudioEngine_Engines_SoftAE_SoftAE.cpp | 11 ++ ...-xbmc_cores_dvdplayer_DVDCodecs_Video_VAAPI.cpp | 11 ++ .../files/patch-xbmc_freebsd_CMakeLists.txt | 6 + ...h-xbmc_threads_platform_pthreads_ThreadImpl.cpp | 28 ++++ ...tions_XBMCProjectM_libprojectM_PresetLoader.hpp | 11 ++ 14 files changed, 243 insertions(+), 256 deletions(-) create mode 100644 multimedia/plexhometheater/files/patch-plex_CMakeModules_PlatformConfigFREEBSD.cmake delete mode 100644 multimedia/plexhometheater/files/patch-plex__CMakeModules__PlatformConfigFREEBSD.cmake delete mode 100644 multimedia/plexhometheater/files/patch-xbmc__cores__AudioEngine__Engines__SoftAE__SoftAE.cpp delete mode 100644 multimedia/plexhometheater/files/patch-xbmc__cores__dvdplayer__DVDCodecs__Video__VAAPI.cpp delete mode 100644 multimedia/plexhometheater/files/patch-xbmc__freebsd__CMakeLists.txt delete mode 100644 multimedia/plexhometheater/files/patch-xbmc__threads__platform__pthreads__ThreadImpl.cpp delete mode 100644 multimedia/plexhometheater/files/patch-xbmc__visualizations__XBMCProjectM__libprojectM__PresetLoader.hpp create mode 100644 multimedia/plexhometheater/files/patch-xbmc_cores_AudioEngine_Engines_SoftAE_SoftAE.cpp create mode 100644 multimedia/plexhometheater/files/patch-xbmc_cores_dvdplayer_DVDCodecs_Video_VAAPI.cpp create mode 100644 multimedia/plexhometheater/files/patch-xbmc_freebsd_CMakeLists.txt create mode 100644 multimedia/plexhometheater/files/patch-xbmc_threads_platform_pthreads_ThreadImpl.cpp create mode 100644 multimedia/plexhometheater/files/patch-xbmc_visualizations_XBMCProjectM_libprojectM_PresetLoader.hpp (limited to 'multimedia') diff --git a/multimedia/plexhometheater/Makefile b/multimedia/plexhometheater/Makefile index 0a5ab4bba203..40abc1718c91 100644 --- a/multimedia/plexhometheater/Makefile +++ b/multimedia/plexhometheater/Makefile @@ -12,6 +12,7 @@ MAINTAINER= woodsb02@FreeBSD.org COMMENT= Media center frontend to multimedia/plexmediaserver LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE.GPL BUILD_DEPENDS= enca:converters/enca \ gawk:lang/gawk \ @@ -21,7 +22,6 @@ BUILD_DEPENDS= enca:converters/enca \ nasm:devel/nasm \ gtk-update-icon-cache:x11-toolkits/gtk20 \ swig2.0:devel/swig20 - LIB_DEPENDS= libass.so:multimedia/libass \ libavahi-client.so:net/avahi-app \ libboost_thread.so:devel/boost-libs \ @@ -55,7 +55,6 @@ LIB_DEPENDS= libass.so:multimedia/libass \ libvorbis.so:audio/libvorbis \ libxslt.so:textproc/libxslt \ libyajl.so:devel/yajl - RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 \ glxinfo:graphics/mesa-demos \ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow \ diff --git a/multimedia/plexhometheater/files/patch-clang b/multimedia/plexhometheater/files/patch-clang index 88eda0557eb1..0769943e613b 100644 --- a/multimedia/plexhometheater/files/patch-clang +++ b/multimedia/plexhometheater/files/patch-clang @@ -1,26 +1,6 @@ -diff --git xbmc/screensavers/rsxs-0.9/lib/argp-fmtstream.h xbmc/screensavers/rsxs-0.9/lib/argp-fmtstream.h -index e045a72..ff4f575 100644 ---- xbmc/screensavers/rsxs-0.9/lib/argp-fmtstream.h -+++ xbmc/screensavers/rsxs-0.9/lib/argp-fmtstream.h -@@ -198,8 +198,12 @@ extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount); - #endif - - #ifndef ARGP_FS_EI -+#ifdef __clang__ -+#define ARGP_FS_EI extern inline __attribute__ ((__gnu_inline__)) -+#else - #define ARGP_FS_EI extern inline - #endif -+#endif - - ARGP_FS_EI size_t - __argp_fmtstream_write (argp_fmtstream_t __fs, - -diff --git lib/cpluff/libcpluff/cpluff.c lib/cpluff/libcpluff/cpluff.c -index a7e8725..0f5bb90 100644 ---- lib/cpluff/libcpluff/cpluff.c +--- lib/cpluff/libcpluff/cpluff.c.orig 2015-05-11 07:54:22 UTC +++ lib/cpluff/libcpluff/cpluff.c -@@ -77,6 +77,7 @@ CP_C_API const char *cp_get_host_type(void) { +@@ -77,6 +77,7 @@ CP_C_API const char *cp_get_host_type(vo return CP_HOST; } @@ -28,7 +8,7 @@ index a7e8725..0f5bb90 100644 CP_HIDDEN void cpi_lock_framework(void) { #if defined(CP_THREADS) cpi_lock_mutex(framework_mutex); -@@ -93,6 +94,7 @@ CP_HIDDEN void cpi_unlock_framework(void) { +@@ -93,6 +94,7 @@ CP_HIDDEN void cpi_unlock_framework(void framework_locked--; #endif } @@ -36,11 +16,9 @@ index a7e8725..0f5bb90 100644 static void reset(void) { #ifdef CP_THREADS -diff --git lib/cpluff/libcpluff/logging.c lib/cpluff/libcpluff/logging.c -index 928f0b4..f0f873d 100644 ---- lib/cpluff/libcpluff/logging.c +--- lib/cpluff/libcpluff/logging.c.orig 2015-05-11 07:54:22 UTC +++ lib/cpluff/libcpluff/logging.c -@@ -129,10 +129,12 @@ CP_C_API cp_status_t cp_register_logger(cp_context_t *context, cp_logger_func_t +@@ -129,10 +129,12 @@ CP_C_API cp_status_t cp_register_logger( // Report error if (status == CP_ERR_RESOURCE) { cpi_error(context, N_("Logger could not be registered due to insufficient memory.")); @@ -53,7 +31,7 @@ index 928f0b4..f0f873d 100644 } cpi_unlock_context(context); -@@ -166,11 +168,13 @@ CP_C_API void cp_unregister_logger(cp_context_t *context, cp_logger_func_t logge +@@ -166,11 +168,13 @@ CP_C_API void cp_unregister_logger(cp_co free(lh); update_logging_limits(context); } @@ -67,11 +45,9 @@ index 928f0b4..f0f873d 100644 cpi_unlock_context(context); } -diff --git lib/cpluff/libcpluff/pinfo.c lib/cpluff/libcpluff/pinfo.c -index cfbf049..f7b4a4b 100644 ---- lib/cpluff/libcpluff/pinfo.c +--- lib/cpluff/libcpluff/pinfo.c.orig 2015-05-11 07:54:22 UTC +++ lib/cpluff/libcpluff/pinfo.c -@@ -569,10 +569,12 @@ CP_C_API cp_status_t cp_register_plistener(cp_context_t *context, cp_plugin_list +@@ -569,10 +569,12 @@ CP_C_API cp_status_t cp_register_plisten // Report error or success if (status != CP_OK) { cpi_error(context, _("A plug-in listener could not be registered due to insufficient memory.")); @@ -84,7 +60,7 @@ index cfbf049..f7b4a4b 100644 } cpi_unlock_context(context); -@@ -591,10 +593,12 @@ CP_C_API void cp_unregister_plistener(cp_context_t *context, cp_plugin_listener_ +@@ -591,11 +593,13 @@ CP_C_API void cp_unregister_plistener(cp if (node != NULL) { process_unregister_plistener(context->env->plugin_listeners, node, NULL); } @@ -97,11 +73,10 @@ index cfbf049..f7b4a4b 100644 +#endif cpi_unlock_context(context); } -diff --git lib/cpluff/libcpluff/psymbol.c lib/cpluff/libcpluff/psymbol.c -index 632b087..fdc15af 100644 ---- lib/cpluff/libcpluff/psymbol.c + +--- lib/cpluff/libcpluff/psymbol.c.orig 2015-05-11 07:54:22 UTC +++ lib/cpluff/libcpluff/psymbol.c -@@ -248,11 +248,13 @@ CP_C_API void * cp_resolve_symbol(cp_context_t *context, const char *id, const c +@@ -248,11 +248,13 @@ CP_C_API void * cp_resolve_symbol(cp_con symbol_info->usage_count++; provider_info->usage_count++; @@ -115,7 +90,7 @@ index 632b087..fdc15af 100644 } while (0); // Clean up -@@ -314,11 +316,13 @@ CP_C_API void cp_release_symbol(cp_context_t *context, const void *ptr) { +@@ -314,11 +316,13 @@ CP_C_API void cp_release_symbol(cp_conte if (symbol_info->usage_count == 0) { hash_delete_free(context->resolved_symbols, node); free(symbol_info); @@ -129,3 +104,18 @@ index 632b087..fdc15af 100644 } // Check if the symbol providing plug-in is not being used anymore +--- xbmc/screensavers/rsxs-0.9/lib/argp-fmtstream.h.orig 2015-05-11 07:54:22 UTC ++++ xbmc/screensavers/rsxs-0.9/lib/argp-fmtstream.h +@@ -198,8 +198,12 @@ extern int __argp_fmtstream_ensure (argp + #endif + + #ifndef ARGP_FS_EI ++#ifdef __clang__ ++#define ARGP_FS_EI extern inline __attribute__ ((__gnu_inline__)) ++#else + #define ARGP_FS_EI extern inline + #endif ++#endif + + ARGP_FS_EI size_t + __argp_fmtstream_write (argp_fmtstream_t __fs, diff --git a/multimedia/plexhometheater/files/patch-plex_CMakeModules_PlatformConfigFREEBSD.cmake b/multimedia/plexhometheater/files/patch-plex_CMakeModules_PlatformConfigFREEBSD.cmake new file mode 100644 index 000000000000..673ef239983e --- /dev/null +++ b/multimedia/plexhometheater/files/patch-plex_CMakeModules_PlatformConfigFREEBSD.cmake @@ -0,0 +1,147 @@ +--- plex/CMakeModules/PlatformConfigFREEBSD.cmake.orig 2017-01-08 15:03:09 UTC ++++ plex/CMakeModules/PlatformConfigFREEBSD.cmake +@@ -0,0 +1,144 @@ ++# vim: setlocal syntax=cmake: ++ ++######################### Compiler CFLAGS ++set(EXTRA_CFLAGS "-fPIC -DPIC") ++ ++######################### CHECK LIBRARIES / FRAMEWORKS ++option(USE_INTERNAL_FFMPEG "" ON) ++ ++set(LINK_PKG ++ Freetype ++ SDL ++ SDL_image ++ SDL_mixer ++ OpenGL ++ ZLIB ++ JPEG ++ X11 ++ SQLite3 ++ PCRE ++ Lzo2 ++ FriBiDi ++ Fontconfig ++ Samplerate ++ YAJL ++ microhttpd ++ Crypto ++ TinyXML ++ GLEW ++ Iconv ++ Avahi ++ Xrandr ++ LibRt ++ FLAC ++ DBUS ++ Execinfo ++) ++ ++if(NOT USE_INTERNAL_FFMPEG) ++ list(APPEND LINK_PKG FFmpeg) ++else() ++ set(FFMPEG_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/lib/ffmpeg ${CMAKE_BINARY_DIR}/lib/ffmpeg/ffmpeg/src/ffmpeg-build) ++endif() ++ ++if(ENABLE_PYTHON) ++ list(APPEND LINK_PKG Python) ++endif(ENABLE_PYTHON) ++ ++foreach(l ${LINK_PKG}) ++ plex_find_package(${l} 1 1) ++endforeach() ++ ++find_package(Boost COMPONENTS thread system REQUIRED) ++if(Boost_FOUND) ++ include_directories(${Boost_INCLUDE_DIRS}) ++ list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${Boost_LIBRARIES}) ++ set(HAVE_BOOST 1) ++endif() ++ ++### install libs ++set(INSTALL_LIB ++ CURL ++ PNG ++ TIFF ++ Vorbis ++ LibMad ++ Mpeg2 ++ Ass ++ RTMP ++ PLIST ++ ShairPort ++ VAAPI ++ VDPAU ++) ++ ++foreach(l ${INSTALL_LIB}) ++ plex_find_package(${l} 1 0) ++endforeach() ++ ++plex_find_package(CEC 0 0) ++ ++plex_find_package(Threads 1 0) ++if(CMAKE_USE_PTHREADS_INIT) ++ message(STATUS "Using pthreads: ${CMAKE_THREAD_LIBS_INIT}") ++ list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${CMAKE_THREAD_LIBS_INIT}) ++ set(HAVE_LIBPTHREAD 1) ++endif() ++ ++plex_find_package(PulseAudio 0 1) ++if(HAVE_LIBPULSEAUDIO) ++ set(HAVE_LIBPULSE 1) ++endif() ++ ++plex_find_package(LibUSB 0 1) ++ ++if(ENABLE_DVD_DRIVE) ++ plex_find_package(CDIO 1 1) ++endif(ENABLE_DVD_DRIVE) ++ ++if(NOT LIBUSB_FOUND) ++ message(WARNING "No USB support") ++endif() ++ ++if(VAAPI_FOUND) ++ list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${VAAPI_LIBRARIES}) ++ include_directories(${VAAPI_INCLUDE_DIR}) ++ set(HAVE_LIBVA 1) ++endif() ++ ++plex_get_soname(CURL_SONAME ${CURL_LIBRARY}) ++ ++list(APPEND CONFIG_INTERNAL_LIBS lib_dllsymbols) ++ ++#### ++if(DEFINED X11_FOUND) ++ set(HAVE_X11 1) ++endif() ++ ++if(DEFINED OPENGL_FOUND) ++ set(HAVE_LIBGL 1) ++endif() ++ ++#### default lircdevice ++set(LIRC_DEVICE "/var/run/lirc/lircd") ++ ++#### on freebsd we want to use a "easy" name ++set(EXECUTABLE_NAME "plexhometheater") ++ ++if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "amd64") ++ set(ARCH "x86_64-freebsd") ++else() ++ set(ARCH "x86-freebsd") ++endif() ++ ++set(LIBPATH lib/plexhometheater) ++set(BINPATH bin) ++set(RESOURCEPATH share/plexhometheater) ++ ++set(PLEX_LINK_WRAPPED "-Wl,--unresolved-symbols=ignore-all -Wl,-wrap,_IO_getc -Wl,-wrap,_IO_getc_unlocked -Wl,-wrap,_IO_putc -Wl,-wrap,__fgets_chk -Wl,-wrap,__fprintf_chk -Wl,-wrap,__fread_chk -Wl,-wrap,__fxstat64 -Wl,-wrap,__lxstat64 -Wl,-wrap,__printf_chk -Wl,-wrap,__read_chk -Wl,-wrap,__vfprintf_chk -Wl,-wrap,__xstat64 -Wl,-wrap,_stat -Wl,-wrap,calloc -Wl,-wrap,clearerr -Wl,-wrap,close -Wl,-wrap,closedir -Wl,-wrap,dlopen -Wl,-wrap,fclose -Wl,-wrap,fdopen -Wl,-wrap,feof -Wl,-wrap,ferror -Wl,-wrap,fflush -Wl,-wrap,fgetc -Wl,-wrap,fgetpos -Wl,-wrap,fgetpos64 -Wl,-wrap,fgets -Wl,-wrap,fileno -Wl,-wrap,flockfile -Wl,-wrap,fopen -Wl,-wrap,fopen64 -Wl,-wrap,fprintf -Wl,-wrap,fputc -Wl,-wrap,fputs -Wl,-wrap,fread -Wl,-wrap,free -Wl,-wrap,freopen -Wl,-wrap,fseek -Wl,-wrap,fseeko64 -Wl,-wrap,fsetpos -Wl,-wrap,fsetpos64 -Wl,-wrap,fstat -Wl,-wrap,ftell -Wl,-wrap,ftello64 -Wl,-wrap,ftrylockfile -Wl,-wrap,funlockfile -Wl,-wrap,fwrite -Wl,-wrap,getc -Wl,-wrap,getc_unlocked -Wl,-wrap,getmntent -Wl,-wrap,ioctl -Wl,-wrap,lseek -Wl,-wrap,lseek64 -Wl,-wrap,malloc -Wl,-wrap,open -Wl,-wrap,open64 -Wl,-wrap,opendir -Wl,-wrap,popen -Wl,-wrap,printf -Wl,-wrap,read -Wl,-wrap,readdir -Wl,-wrap,readdir64 -Wl,-wrap,realloc -Wl,-wrap,rewind -Wl,-wrap,rewinddir -Wl,-wrap,setvbuf -Wl,-wrap,ungetc -Wl,-wrap,vfprintf -Wl,-wrap,write") ++ ++set(PLEX_LINK_WHOLEARCHIVE -Wl,--whole-archive) ++set(PLEX_LINK_NOWHOLEARCHIVE -Wl,--no-whole-archive) ++ ++############ Add our definitions ++add_definitions(-DTARGET_FREEBSD) diff --git a/multimedia/plexhometheater/files/patch-plex__CMakeModules__PlatformConfigFREEBSD.cmake b/multimedia/plexhometheater/files/patch-plex__CMakeModules__PlatformConfigFREEBSD.cmake deleted file mode 100644 index f40c0c15a5e5..000000000000 --- a/multimedia/plexhometheater/files/patch-plex__CMakeModules__PlatformConfigFREEBSD.cmake +++ /dev/null @@ -1,147 +0,0 @@ ---- plex/CMakeModules/PlatformConfigFREEBSD.cmake.orig 2014-06-18 10:24:35.922455079 +0000 -+++ plex/CMakeModules/PlatformConfigFREEBSD.cmake 2014-06-18 13:58:08.739586540 +0000 -@@ -0,0 +1,144 @@ -+# vim: setlocal syntax=cmake: -+ -+######################### Compiler CFLAGS -+set(EXTRA_CFLAGS "-fPIC -DPIC") -+ -+######################### CHECK LIBRARIES / FRAMEWORKS -+option(USE_INTERNAL_FFMPEG "" ON) -+ -+set(LINK_PKG -+ Freetype -+ SDL -+ SDL_image -+ SDL_mixer -+ OpenGL -+ ZLIB -+ JPEG -+ X11 -+ SQLite3 -+ PCRE -+ Lzo2 -+ FriBiDi -+ Fontconfig -+ Samplerate -+ YAJL -+ microhttpd -+ Crypto -+ TinyXML -+ GLEW -+ Iconv -+ Avahi -+ Xrandr -+ LibRt -+ FLAC -+ DBUS -+ Execinfo -+) -+ -+if(NOT USE_INTERNAL_FFMPEG) -+ list(APPEND LINK_PKG FFmpeg) -+else() -+ set(FFMPEG_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/lib/ffmpeg ${CMAKE_BINARY_DIR}/lib/ffmpeg/ffmpeg/src/ffmpeg-build) -+endif() -+ -+if(ENABLE_PYTHON) -+ list(APPEND LINK_PKG Python) -+endif(ENABLE_PYTHON) -+ -+foreach(l ${LINK_PKG}) -+ plex_find_package(${l} 1 1) -+endforeach() -+ -+find_package(Boost COMPONENTS thread system REQUIRED) -+if(Boost_FOUND) -+ include_directories(${Boost_INCLUDE_DIRS}) -+ list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${Boost_LIBRARIES}) -+ set(HAVE_BOOST 1) -+endif() -+ -+### install libs -+set(INSTALL_LIB -+ CURL -+ PNG -+ TIFF -+ Vorbis -+ LibMad -+ Mpeg2 -+ Ass -+ RTMP -+ PLIST -+ ShairPort -+ VAAPI -+ VDPAU -+) -+ -+foreach(l ${INSTALL_LIB}) -+ plex_find_package(${l} 1 0) -+endforeach() -+ -+plex_find_package(CEC 0 0) -+ -+plex_find_package(Threads 1 0) -+if(CMAKE_USE_PTHREADS_INIT) -+ message(STATUS "Using pthreads: ${CMAKE_THREAD_LIBS_INIT}") -+ list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${CMAKE_THREAD_LIBS_INIT}) -+ set(HAVE_LIBPTHREAD 1) -+endif() -+ -+plex_find_package(PulseAudio 0 1) -+if(HAVE_LIBPULSEAUDIO) -+ set(HAVE_LIBPULSE 1) -+endif() -+ -+plex_find_package(LibUSB 0 1) -+ -+if(ENABLE_DVD_DRIVE) -+ plex_find_package(CDIO 1 1) -+endif(ENABLE_DVD_DRIVE) -+ -+if(NOT LIBUSB_FOUND) -+ message(WARNING "No USB support") -+endif() -+ -+if(VAAPI_FOUND) -+ list(APPEND CONFIG_PLEX_LINK_LIBRARIES ${VAAPI_LIBRARIES}) -+ include_directories(${VAAPI_INCLUDE_DIR}) -+ set(HAVE_LIBVA 1) -+endif() -+ -+plex_get_soname(CURL_SONAME ${CURL_LIBRARY}) -+ -+list(APPEND CONFIG_INTERNAL_LIBS lib_dllsymbols) -+ -+#### -+if(DEFINED X11_FOUND) -+ set(HAVE_X11 1) -+endif() -+ -+if(DEFINED OPENGL_FOUND) -+ set(HAVE_LIBGL 1) -+endif() -+ -+#### default lircdevice -+set(LIRC_DEVICE "/var/run/lirc/lircd") -+ -+#### on freebsd we want to use a "easy" name -+set(EXECUTABLE_NAME "plexhometheater") -+ -+if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "amd64") -+ set(ARCH "x86_64-freebsd") -+else() -+ set(ARCH "x86-freebsd") -+endif() -+ -+set(LIBPATH lib/plexhometheater) -+set(BINPATH bin) -+set(RESOURCEPATH share/plexhometheater) -+ -+set(PLEX_LINK_WRAPPED "-Wl,--unresolved-symbols=ignore-all -Wl,-wrap,_IO_getc -Wl,-wrap,_IO_getc_unlocked -Wl,-wrap,_IO_putc -Wl,-wrap,__fgets_chk -Wl,-wrap,__fprintf_chk -Wl,-wrap,__fread_chk -Wl,-wrap,__fxstat64 -Wl,-wrap,__lxstat64 -Wl,-wrap,__printf_chk -Wl,-wrap,__read_chk -Wl,-wrap,__vfprintf_chk -Wl,-wrap,__xstat64 -Wl,-wrap,_stat -Wl,-wrap,calloc -Wl,-wrap,clearerr -Wl,-wrap,close -Wl,-wrap,closedir -Wl,-wrap,dlopen -Wl,-wrap,fclose -Wl,-wrap,fdopen -Wl,-wrap,feof -Wl,-wrap,ferror -Wl,-wrap,fflush -Wl,-wrap,fgetc -Wl,-wrap,fgetpos -Wl,-wrap,fgetpos64 -Wl,-wrap,fgets -Wl,-wrap,fileno -Wl,-wrap,flockfile -Wl,-wrap,fopen -Wl,-wrap,fopen64 -Wl,-wrap,fprintf -Wl,-wrap,fputc -Wl,-wrap,fputs -Wl,-wrap,fread -Wl,-wrap,free -Wl,-wrap,freopen -Wl,-wrap,fseek -Wl,-wrap,fseeko64 -Wl,-wrap,fsetpos -Wl,-wrap,fsetpos64 -Wl,-wrap,fstat -Wl,-wrap,ftell -Wl,-wrap,ftello64 -Wl,-wrap,ftrylockfile -Wl,-wrap,funlockfile -Wl,-wrap,fwrite -Wl,-wrap,getc -Wl,-wrap,getc_unlocked -Wl,-wrap,getmntent -Wl,-wrap,ioctl -Wl,-wrap,lseek -Wl,-wrap,lseek64 -Wl,-wrap,malloc -Wl,-wrap,open -Wl,-wrap,open64 -Wl,-wrap,opendir -Wl,-wrap,popen -Wl,-wrap,printf -Wl,-wrap,read -Wl,-wrap,readdir -Wl,-wrap,readdir64 -Wl,-wrap,realloc -Wl,-wrap,rewind -Wl,-wrap,rewinddir -Wl,-wrap,setvbuf -Wl,-wrap,ungetc -Wl,-wrap,vfprintf -Wl,-wrap,write") -+ -+set(PLEX_LINK_WHOLEARCHIVE -Wl,--whole-archive) -+set(PLEX_LINK_NOWHOLEARCHIVE -Wl,--no-whole-archive) -+ -+############ Add our definitions -+add_definitions(-DTARGET_FREEBSD) diff --git a/multimedia/plexhometheater/files/patch-xbmc__cores__AudioEngine__Engines__SoftAE__SoftAE.cpp b/multimedia/plexhometheater/files/patch-xbmc__cores__AudioEngine__Engines__SoftAE__SoftAE.cpp deleted file mode 100644 index b44f37d871d3..000000000000 --- a/multimedia/plexhometheater/files/patch-xbmc__cores__AudioEngine__Engines__SoftAE__SoftAE.cpp +++ /dev/null @@ -1,13 +0,0 @@ -diff --git xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp -index bd01a67..49edfee 100644 ---- xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp -+++ xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp -@@ -303,7 +303,7 @@ void CSoftAE::InternalOpenSink() - - /* perform basic sanity checks on the format returned by the sink */ - ASSERT(newFormat.m_channelLayout.Count() > 0); -- ASSERT(newFormat.m_dataFormat <= AE_FMT_FLOAT); -+ ASSERT(newFormat.m_dataFormat <= AE_FMT_MAX); - ASSERT(newFormat.m_frames > 0); - ASSERT(newFormat.m_frameSamples > 0); - ASSERT(newFormat.m_frameSize == (CAEUtil::DataFormatToBits(newFormat.m_dataFormat) >> 3) * newFormat.m_channelLayout.Count()); diff --git a/multimedia/plexhometheater/files/patch-xbmc__cores__dvdplayer__DVDCodecs__Video__VAAPI.cpp b/multimedia/plexhometheater/files/patch-xbmc__cores__dvdplayer__DVDCodecs__Video__VAAPI.cpp deleted file mode 100644 index 27ce4d4a531c..000000000000 --- a/multimedia/plexhometheater/files/patch-xbmc__cores__dvdplayer__DVDCodecs__Video__VAAPI.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp.orig 2013-10-19 23:07:02.530131780 +0200 -+++ xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp 2013-10-19 23:06:38.499626784 +0200 -@@ -74,7 +74,7 @@ - - static CDisplayPtr GetGlobalDisplay() - { -- static weak_ptr display_global; -+ static boost::weak_ptr display_global; - - CDisplayPtr display(display_global.lock()); - if(display) diff --git a/multimedia/plexhometheater/files/patch-xbmc__freebsd__CMakeLists.txt b/multimedia/plexhometheater/files/patch-xbmc__freebsd__CMakeLists.txt deleted file mode 100644 index af59985a1997..000000000000 --- a/multimedia/plexhometheater/files/patch-xbmc__freebsd__CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ ---- xbmc/freebsd/CMakeLists.txt.orig 2014-08-05 20:18:02.009525912 +0800 -+++ xbmc/freebsd/CMakeLists.txt 2014-08-05 20:18:40.357527987 +0800 -@@ -0,0 +1,3 @@ -+find_all_sources(. freebsd_SRCS) -+ -+add_sources(${freebsd_SRCS}) diff --git a/multimedia/plexhometheater/files/patch-xbmc__threads__platform__pthreads__ThreadImpl.cpp b/multimedia/plexhometheater/files/patch-xbmc__threads__platform__pthreads__ThreadImpl.cpp deleted file mode 100644 index 94efd0acdfb4..000000000000 --- a/multimedia/plexhometheater/files/patch-xbmc__threads__platform__pthreads__ThreadImpl.cpp +++ /dev/null @@ -1,28 +0,0 @@ ---- xbmc/threads/platform/pthreads/ThreadImpl.cpp.orig 2013-05-13 11:32:04.000000000 +0200 -+++ xbmc/threads/platform/pthreads/ThreadImpl.cpp 2013-05-13 11:47:27.000000000 +0200 -@@ -29,12 +29,8 @@ - #include - #ifdef __FreeBSD__ - #include --#if __FreeBSD_version < 900031 --#include --#else - #include - #endif --#endif - - #include - -@@ -59,11 +55,7 @@ - void CThread::SetThreadInfo() - { - #ifdef __FreeBSD__ --#if __FreeBSD_version < 900031 -- long lwpid; -- thr_self(&lwpid); -- m_ThreadOpaque.LwpId = lwpid; --#else -+#if __FreeBSD_version > 900030 - m_ThreadOpaque.LwpId = pthread_getthreadid_np(); - #endif - #elif defined(TARGET_ANDROID) diff --git a/multimedia/plexhometheater/files/patch-xbmc__visualizations__XBMCProjectM__libprojectM__PresetLoader.hpp b/multimedia/plexhometheater/files/patch-xbmc__visualizations__XBMCProjectM__libprojectM__PresetLoader.hpp deleted file mode 100644 index 25a24ce66e80..000000000000 --- a/multimedia/plexhometheater/files/patch-xbmc__visualizations__XBMCProjectM__libprojectM__PresetLoader.hpp +++ /dev/null @@ -1,11 +0,0 @@ ---- xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.hpp.orig 2013-07-04 15:52:54.000000000 +0200 -+++ xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.hpp 2013-07-04 15:53:28.000000000 +0200 -@@ -29,7 +29,7 @@ - static const std::string MILKDROP_FILE_EXTENSION; - - /** Initializes the preset loader with the target directory specified */ -- PresetLoader(std::string dirname); -+ PresetLoader(std::string dirname = std::string()); - - /** Destructor will remove all alllocated presets */ - ~PresetLoader(); diff --git a/multimedia/plexhometheater/files/patch-xbmc_cores_AudioEngine_Engines_SoftAE_SoftAE.cpp b/multimedia/plexhometheater/files/patch-xbmc_cores_AudioEngine_Engines_SoftAE_SoftAE.cpp new file mode 100644 index 000000000000..e4012193cbe5 --- /dev/null +++ b/multimedia/plexhometheater/files/patch-xbmc_cores_AudioEngine_Engines_SoftAE_SoftAE.cpp @@ -0,0 +1,11 @@ +--- xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp.orig 2015-05-11 07:54:22 UTC ++++ xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp +@@ -328,7 +328,7 @@ void CSoftAE::InternalOpenSink() + + /* perform basic sanity checks on the format returned by the sink */ + ASSERT(newFormat.m_channelLayout.Count() > 0); +- ASSERT(newFormat.m_dataFormat <= AE_FMT_FLOAT); ++ ASSERT(newFormat.m_dataFormat <= AE_FMT_MAX); + ASSERT(newFormat.m_frames > 0); + ASSERT(newFormat.m_frameSamples > 0); + ASSERT(newFormat.m_frameSize == (CAEUtil::DataFormatToBits(newFormat.m_dataFormat) >> 3) * newFormat.m_channelLayout.Count()); diff --git a/multimedia/plexhometheater/files/patch-xbmc_cores_dvdplayer_DVDCodecs_Video_VAAPI.cpp b/multimedia/plexhometheater/files/patch-xbmc_cores_dvdplayer_DVDCodecs_Video_VAAPI.cpp new file mode 100644 index 000000000000..1e1bb343acb2 --- /dev/null +++ b/multimedia/plexhometheater/files/patch-xbmc_cores_dvdplayer_DVDCodecs_Video_VAAPI.cpp @@ -0,0 +1,11 @@ +--- xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp.orig 2015-05-11 07:54:22 UTC ++++ xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp +@@ -74,7 +74,7 @@ static inline VASurfaceID GetSurfaceID(A + + static CDisplayPtr GetGlobalDisplay() + { +- static weak_ptr display_global; ++ static boost::weak_ptr display_global; + + CDisplayPtr display(display_global.lock()); + if(display) diff --git a/multimedia/plexhometheater/files/patch-xbmc_freebsd_CMakeLists.txt b/multimedia/plexhometheater/files/patch-xbmc_freebsd_CMakeLists.txt new file mode 100644 index 000000000000..25da9746831c --- /dev/null +++ b/multimedia/plexhometheater/files/patch-xbmc_freebsd_CMakeLists.txt @@ -0,0 +1,6 @@ +--- xbmc/freebsd/CMakeLists.txt.orig 2017-01-08 15:03:09 UTC ++++ xbmc/freebsd/CMakeLists.txt +@@ -0,0 +1,3 @@ ++find_all_sources(. freebsd_SRCS) ++ ++add_sources(${freebsd_SRCS}) diff --git a/multimedia/plexhometheater/files/patch-xbmc_threads_platform_pthreads_ThreadImpl.cpp b/multimedia/plexhometheater/files/patch-xbmc_threads_platform_pthreads_ThreadImpl.cpp new file mode 100644 index 000000000000..87b5d4194d04 --- /dev/null +++ b/multimedia/plexhometheater/files/patch-xbmc_threads_platform_pthreads_ThreadImpl.cpp @@ -0,0 +1,28 @@ +--- xbmc/threads/platform/pthreads/ThreadImpl.cpp.orig 2015-05-11 07:54:22 UTC ++++ xbmc/threads/platform/pthreads/ThreadImpl.cpp +@@ -29,12 +29,8 @@ + #include + #ifdef __FreeBSD__ + #include +-#if __FreeBSD_version < 900031 +-#include +-#else + #include + #endif +-#endif + + #include + +@@ -59,11 +55,7 @@ void CThread::TermHandler() { } + void CThread::SetThreadInfo() + { + #ifdef __FreeBSD__ +-#if __FreeBSD_version < 900031 +- long lwpid; +- thr_self(&lwpid); +- m_ThreadOpaque.LwpId = lwpid; +-#else ++#if __FreeBSD_version > 900030 + m_ThreadOpaque.LwpId = pthread_getthreadid_np(); + #endif + #elif defined(TARGET_ANDROID) diff --git a/multimedia/plexhometheater/files/patch-xbmc_visualizations_XBMCProjectM_libprojectM_PresetLoader.hpp b/multimedia/plexhometheater/files/patch-xbmc_visualizations_XBMCProjectM_libprojectM_PresetLoader.hpp new file mode 100644 index 000000000000..19660ad9b638 --- /dev/null +++ b/multimedia/plexhometheater/files/patch-xbmc_visualizations_XBMCProjectM_libprojectM_PresetLoader.hpp @@ -0,0 +1,11 @@ +--- xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.hpp.orig 2015-05-11 07:54:22 UTC ++++ xbmc/visualizations/XBMCProjectM/libprojectM/PresetLoader.hpp +@@ -29,7 +29,7 @@ class PresetLoader { + static const std::string MILKDROP_FILE_EXTENSION; + + /** Initializes the preset loader with the target directory specified */ +- PresetLoader(std::string dirname); ++ PresetLoader(std::string dirname = std::string()); + + /** Destructor will remove all alllocated presets */ + ~PresetLoader(); -- cgit