Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #264 from decke/freebsd-fixes

Add FreeBSD support
  • Loading branch information...
commit 776bd34cb3e866fabf2b6ef368f325e1679366bf 2 parents f73fac7 + 72fe3d7
@opdenkamp authored
View
1  addons/pvr.argustv/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_ArgusTV.pvr"
library_osx="XBMC_ArgusTV.pvr"
+ library_freebsd="XBMC_ArgusTV.pvr"
library_wingl="XBMC_ArgusTV_win32.dll"
library_windx="XBMC_ArgusTV_win32.dll"
library_android="libXBMC_ArgusTV.so"/>
View
1  addons/pvr.demo/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_Demo.pvr"
library_osx="XBMC_Demo.pvr"
+ library_freebsd="XBMC_Demo.pvr"
library_wingl="XBMC_Demo_win32.dll"
library_windx="XBMC_Demo_win32.dll"
library_android="libXBMC_Demo.so" />
View
1  addons/pvr.dvblink/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_DVBLink.pvr"
library_osx="XBMC_DVBLink.pvr"
+ library_freebsd="XBMC_DVBLink.pvr"
library_wingl="XBMC_DVBLink_win32.dll"
library_windx="XBMC_DVBLink_win32.dll"
library_android="libXBMC_DVBLink.so"/>
View
1  addons/pvr.dvbviewer/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_dvbviewer.pvr"
library_osx="XBMC_dvbviewer.pvr"
+ library_freebsd="XBMC_dvbviewer.pvr"
library_wingl="XBMC_dvbviewer_win32.dll"
library_windx="XBMC_dvbviewer_win32.dll"
library_android="libXBMC_dvbviewer.so"/>
View
1  addons/pvr.hts/addon/addon.xml.in
@@ -13,6 +13,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_Tvheadend.pvr"
library_osx="XBMC_Tvheadend.pvr"
+ library_freebsd="XBMC_Tvheadend.pvr"
library_wingl="XBMC_Tvheadend_win32.dll"
library_windx="XBMC_Tvheadend_win32.dll"
library_android="libXBMC_Tvheadend.so"/>
View
1  addons/pvr.iptvsimple/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_IPTV_Simple.pvr"
library_osx="XBMC_IPTV_Simple.pvr"
+ library_freebsd="XBMC_IPTV_Simple.pvr"
library_wingl="XBMC_IPTV_Simple_win32.dll"
library_windx="XBMC_IPTV_Simple_win32.dll"
library_android="libXBMC_IPTV_Simple.so" />
View
1  addons/pvr.mediaportal.tvserver/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_Mediaportal.pvr"
library_osx="XBMC_Mediaportal.pvr"
+ library_freebsd="XBMC_Mediaportal.pvr"
library_wingl="XBMC_Mediaportal_win32.dll"
library_windx="XBMC_Mediaportal_win32.dll"
library_android="libXBMC_Mediaportal.so"/>
View
4 addons/pvr.mediaportal.tvserver/src/Socket.cpp
@@ -608,7 +608,7 @@ void Socket::osCleanup()
}
}
-#elif defined TARGET_LINUX || defined TARGET_DARWIN
+#elif defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
bool Socket::set_non_blocking ( const bool b )
{
int opts;
@@ -720,6 +720,6 @@ void Socket::osCleanup()
{
// Not needed for Linux
}
-#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN
+#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN || TARGET_FREEBSD
} //namespace MPTV
View
2  addons/pvr.mediaportal.tvserver/src/Socket.h
@@ -84,7 +84,7 @@ enum SocketFamily
enum SocketDomain
{
- #if defined TARGET_LINUX || defined TARGET_DARWIN
+ #if defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
pf_unix = PF_UNIX,
pf_local = PF_LOCAL,
#endif
View
1  addons/pvr.mythtv.cmyth/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_MythTV_cmyth.pvr"
library_osx="XBMC_MythTV_cmyth.pvr"
+ library_freebsd="XBMC_MythTV_cmyth.pvr"
library_wingl="XBMC_MythTV_cmyth_win32.dll"
library_windx="XBMC_MythTV_cmyth_win32.dll"
library_android="libXBMC_MythTV_cmyth.so"/>
View
1  addons/pvr.nextpvr/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_NextPVR.pvr"
library_osx="XBMC_NextPVR.pvr"
+ library_freebsd="XBMC_NextPVR.pvr"
library_wingl="XBMC_NextPVR_win32.dll"
library_windx="XBMC_NextPVR_win32.dll"
library_android="libXBMC_NextPVR.so"/>
View
4 addons/pvr.nextpvr/src/Socket.cpp
@@ -658,7 +658,7 @@ void Socket::osCleanup()
}
}
-#elif defined TARGET_LINUX || defined TARGET_DARWIN
+#elif defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
bool Socket::set_non_blocking ( const bool b )
{
int opts;
@@ -767,6 +767,6 @@ void Socket::osCleanup()
{
// Not needed for Linux
}
-#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN
+#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN || TARGET_FREEBSD
} //namespace NextPVR
View
2  addons/pvr.nextpvr/src/Socket.h
@@ -85,7 +85,7 @@ enum SocketFamily
enum SocketDomain
{
- #if defined TARGET_LINUX || defined TARGET_DARWIN
+ #if defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
pf_unix = PF_UNIX,
pf_local = PF_LOCAL,
#endif
View
1  addons/pvr.njoy/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_osx="XBMC_Njoy.pvr"
library_linux="XBMC_Njoy.pvr"
+ library_freebsd="XBMC_Njoy.pvr"
library_wingl="XBMC_njoy_win32.dll"
library_windx="XBMC_njoy_win32.dll"
library_android="libXBMC_Njoy.so"/>
View
1  addons/pvr.vdr.vnsi/addon/addon.xml.in
@@ -14,6 +14,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_VDR_vnsi.pvr"
library_osx="XBMC_VDR_vnsi.pvr"
+ library_freebsd="XBMC_VDR_vnsi.pvr"
library_wingl="XBMC_VDR_vnsi_WIN32.dll"
library_windx="XBMC_VDR_vnsi_WIN32.dll"
library_android="libXBMC_VDR_vnsi.so"/>
View
1  addons/pvr.vuplus/addon/addon.xml.in
@@ -12,6 +12,7 @@
point="xbmc.pvrclient"
library_linux="XBMC_vuplus.pvr"
library_osx="XBMC_vuplus.pvr"
+ library_freebsd="XBMC_vuplus.pvr"
library_wingl="XBMC_vuplus_win32.dll"
library_windx="XBMC_vuplus_win32.dll"
library_android="libXBMC_vuplus.so"/>
View
1  addons/pvr.wmc/addon/addon.xml.in
@@ -13,6 +13,7 @@
library_linux="XBMC_WMC.pvr"
library_wingl="XBMC_WMC_win32.dll"
library_osx="XBMC_WMC.pvr"
+ library_freebsd="XBMC_WMC.pvr"
library_windx="XBMC_WMC_win32.dll"
library_android="libXBMC_WMC.so" />
<extension point="xbmc.addon.metadata">
View
4 addons/pvr.wmc/src/Socket.cpp
@@ -442,7 +442,7 @@ void Socket::osCleanup()
}
}
-#elif defined TARGET_LINUX || defined TARGET_DARWIN
+#elif defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
bool Socket::set_non_blocking ( const bool b )
{
int opts;
@@ -554,7 +554,7 @@ void Socket::osCleanup()
{
// Not needed for Linux
}
-#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN
+#endif //TARGET_WINDOWS || TARGET_LINUX || TARGET_DARWIN || TARGET_FREEBSD
void Socket::SetServerName(CStdString strServerName)
View
2  addons/pvr.wmc/src/Socket.h
@@ -86,7 +86,7 @@ enum SocketFamily
enum SocketDomain
{
- #if defined TARGET_LINUX || defined TARGET_DARWIN
+ #if defined TARGET_LINUX || defined TARGET_DARWIN || defined TARGET_FREEBSD
pf_unix = PF_UNIX,
pf_local = PF_LOCAL,
#endif
View
8 configure.ac
@@ -104,8 +104,14 @@ case "${host}" in
ARCH_DEFINES="-DTARGET_POSIX -DTARGET_DARWIN -D_LINUX"
DYN_LIB_EXT="dylib"
;;
- *-freebsd*)
+ amd64-*-freebsd*)
OS="freebsd"
+ ARCHITECTURE="x86_64"
+ ARCH_DEFINES="-DTARGET_POSIX -DTARGET_FREEBSD -D_LINUX"
+ ;;
+ i386-*-freebsd*)
+ OS="freebsd"
+ ARCHITECTURE="i486"
ARCH_DEFINES="-DTARGET_POSIX -DTARGET_FREEBSD -D_LINUX"
;;
esac
View
10 xbmc/libXBMC_addon.h
@@ -42,6 +42,16 @@
#else
#define ADDON_HELPER_ARCH "x86-osx"
#endif
+#elif defined(__FreeBSD__) // freebsd
+#if defined(__x86_64__)
+#define ADDON_HELPER_ARCH "x86_64-freebsd"
+#elif defined(_POWERPC)
+#define ADDON_HELPER_ARCH "powerpc-freebsd"
+#elif defined(_POWERPC64)
+#define ADDON_HELPER_ARCH "powerpc64-freebsd"
+#else
+#define ADDON_HELPER_ARCH "i386-freebsd"
+#endif
#else // linux
#if defined(__x86_64__)
#define ADDON_HELPER_ARCH "x86_64-linux"
Please sign in to comment.
Something went wrong with that request. Please try again.