head 1.3; access; symbols pkgsrc-2020Q1:1.2.0.16 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.38 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.34 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.32 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.30 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.28 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.26 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.24 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.22 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.20 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.18 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.14 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.12 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.10 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.8 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.6 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.4 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2; locks; strict; comment @// @; 1.3 date 2020.04.23.17.16.40; author nia; state dead; branches; next 1.2; commitid DD1aFVbW0irt5x5C; 1.2 date 2015.12.23.12.43.25; author joerg; state Exp; branches; next 1.1; commitid rMnztBs2hMSPs4Oy; 1.1 date 2015.11.17.14.56.07; author jmcneill; state Exp; branches; next ; commitid RGLmvn5GiLiimsJy; desc @@ 1.3 log @multimedia: Remove kodi - broken for a long time now If anyone wants to attempt re-packaging a more recent version of kodi I'd recommend starting over (also, happy to help and provide advice). @ text @$NetBSD: patch-xbmc_linux_XFileUtils.cpp,v 1.2 2015/12/23 12:43:25 joerg Exp $ --- xbmc/linux/XFileUtils.cpp.orig 2015-10-19 06:31:15.000000000 +0000 +++ xbmc/linux/XFileUtils.cpp @@@@ -24,12 +24,13 @@@@ #include "XTimeUtils.h" #include "filesystem/SpecialProtocol.h" #include "utils/StringUtils.h" +#include #ifdef TARGET_POSIX #include "XHandle.h" #include #include -#if !defined(TARGET_DARWIN) && !defined(TARGET_FREEBSD) && !defined(TARGET_ANDROID) +#if !defined(TARGET_DARWIN) && !defined(TARGET_FREEBSD) && !defined(TARGET_NETBSD) && !defined(TARGET_ANDROID) #include #else #include @@@@ -68,7 +69,7 @@@@ HANDLE FindFirstFile(LPCSTR szPath,LPWIN StringUtils::Replace(strPath, '\\','/'); // if the file name is a directory then we add a * to look for all files in this directory -#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_ANDROID) +#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_NETBSD) || defined(TARGET_ANDROID) DIR *testDir = opendir(strPath.c_str()); #else DIR *testDir = opendir(szPath); @@@@ -289,7 +290,7 @@@@ HANDLE CreateFile(LPCTSTR lpFileName, DW HANDLE result = new CXHandle(CXHandle::HND_FILE); result->fd = fd; -#if (defined(TARGET_LINUX) || defined(TARGET_FREEBSD)) && defined(HAS_DVD_DRIVE) +#if (defined(TARGET_LINUX) || defined(TARGET_FREEBSD) || defined(TARGET_NETBSD)) && defined(HAS_DVD_DRIVE) // special case for opening the cdrom device if (strcmp(lpFileName, MEDIA_DETECT::CLibcdio::GetInstance()->GetDeviceFileName())==0) result->m_bCDROM = true; @@@@ -575,7 +576,7 @@@@ DWORD SetFilePointer(HANDLE hFile, int3 nMode = SEEK_END; off64_t currOff; -#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) +#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_NETBSD) currOff = lseek(hFile->fd, offset, nMode); #else currOff = lseek64(hFile->fd, offset, nMode); @@@@ -645,7 +646,7 @@@@ BOOL SetEndOfFile(HANDLE hFile) return false; // get the current offset -#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) +#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_NETBSD) off64_t currOff = lseek(hFile->fd, 0, SEEK_CUR); #else off64_t currOff = lseek64(hFile->fd, 0, SEEK_CUR); @@@@ -676,7 +677,7 @@@@ BOOL SetFilePointerEx( HANDLE hFile, off64_t toMove = liDistanceToMove.QuadPart; -#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) +#if defined(TARGET_DARWIN) || defined(TARGET_FREEBSD) || defined(TARGET_NETBSD) off64_t currOff = lseek(hFile->fd, toMove, nMode); #else off64_t currOff = lseek64(hFile->fd, toMove, nMode); @ 1.2 log @Fix missing cstdlib / locale.h includes. Avoid UB by not passing non-POD types to variadic functions. It's silly to force the construction of a std::string as potential copy when just the C string is used anyway. @ text @d1 1 a1 1 $NetBSD: patch-xbmc_linux_XFileUtils.cpp,v 1.1 2015/11/17 14:56:07 jmcneill Exp $ @ 1.1 log @Initial import of kodi-15.2 Kodi (formerly known as XBMC) is an award-winning free and open source (GPL) software media center for playing videos, music, pictures, games, and more. Kodi features a 10-foot user interface for use with televisions and remote controls. It allows users to play and view most videos, music, podcasts, and other digital media files from local and network storage media and the internet. @ text @d1 1 a1 1 $NetBSD$ d5 7 a11 1 @@@@ -29,7 +29,7 @@@@ d20 1 a20 1 @@@@ -68,7 +68,7 @@@@ HANDLE FindFirstFile(LPCSTR szPath,LPWIN d29 1 a29 1 @@@@ -289,7 +289,7 @@@@ HANDLE CreateFile(LPCTSTR lpFileName, DW d38 1 a38 1 @@@@ -575,7 +575,7 @@@@ DWORD SetFilePointer(HANDLE hFile, int3 d47 1 a47 1 @@@@ -645,7 +645,7 @@@@ BOOL SetEndOfFile(HANDLE hFile) d56 1 a56 1 @@@@ -676,7 +676,7 @@@@ BOOL SetFilePointerEx( HANDLE hFile, @