Have had same Problems with 2.0.0-r4687, 2.1.0-beta and trunk
In FreeBSD not exist LDL library, this have too added Upstream for Open Surge, when I have said to add this and later I have ported to FreeBSD this CMake Game
But i must patch src/libs/tgf/linuxspec.cpp to be usable in FreeBSD ;(
Could you make too one bsdspec.cpp please which really works and not need patches?
I have fixed linuxspec.cpp to can build and install.
catfiles/patch-src__libs__tgf__linuxspec.cpp---./src/libs/tgf/linuxspec.cpp.orig2012-02-0511:21:33.000000000+0100+++./src/libs/tgf/linuxspec.cpp2014-03-1823:47:37.499419498+0100@@-38,6+38,7@@#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)#include<sys/param.h>#include<sys/sysctl.h>+#include<sys/cpuset.h>#if defined(__APPLE__) //#include <Carbon/Carbon.h> /* Carbon APIs for Multiprocessing (TODO) */#endif@@-632,7+633,7@@// MacOS X, FreeBSD, OpenBSD, NetBSD, etc ...#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)-ntmib[4];+intmib[4];size_tlen;// Set the mib for hw.ncpu@@-640,7+641,7@@// Get the number of CPUs from the system// 1) Try HW_AVAILCPU first.mib[0]=CTL_HW;-mib[1]=HW_AVAILCPU;// alternatively, try HW_NCPU;+mib[1]=HW_NCPU;// alternatively, try HW_AVAILCPU;sysctl(mib,2,&nCPUs,&len,NULL,0);if(nCPUs<1)@@-690,7+691,7@@*Remarks**/-std::stringcpuSet2String(constcpu_set_t*pCPUSet)+std::stringcpuSet2String(constcpuset_t*pCPUSet){std::ostringstreamossCPUSet;for(intnCPUIndex=0;nCPUIndex<CPU_SETSIZE;nCPUIndex++)@@-720,7+721,7@@pthread_thCurrThread=pthread_self();// Determine the affinity mask to set for the current thread.-cpu_set_tnThreadAffinityMask;+cpuset_tnThreadAffinityMask;CPU_ZERO(&nThreadAffinityMask);if(nCPUId==GfAffinityAnyCPU){
Hello I try to port to FreeBSD Speed Dreams
Have had same Problems with 2.0.0-r4687, 2.1.0-beta and trunk
In FreeBSD not exist LDL library, this have too added Upstream for Open Surge, when I have said to add this and later I have ported to FreeBSD this CMake Game
http://www.freshports.org/games/opensurge/
src/tools/nfsperf/CMakeLists.txt
src/tools/xmlversion/CMakeLists.txt
Bash is in FreeBSD in /usr/local/bin/bash
or simpler
But i must patch src/libs/tgf/linuxspec.cpp to be usable in FreeBSD ;(
Could you make too one bsdspec.cpp please which really works and not need patches?
I have fixed linuxspec.cpp to can build and install.
That compile in FreeBSD must change
Last edit: nemysis 2014-03-20