--- b/games/openclonk/Makefile +++ b/games/openclonk/Makefile @@ -21,7 +21,7 @@ LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \ libpng.so:${PORTSDIR}/graphics/png \ libvorbis.so:${PORTSDIR}/audio/libvorbis -USES= cmake iconv pkgconfig tar:bzip2 +USES= cmake compiler:c++11-lib iconv pkgconfig tar:bzip2 USE_GL= glew USE_GNOME= gtk20 USE_SDL= sdl mixer --- /dev/null +++ b/games/openclonk/files/patch-src_platform_StdSync.h @@ -0,0 +1,12 @@ +--- src/platform/StdSync.h.orig 2014-10-05 13:22:07 UTC ++++ src/platform/StdSync.h +@@ -135,7 +135,8 @@ public: + { + // Use pthread_cond_wait or pthread_cond_timedwait depending on wait length. Check return value. + // Note this will temporarily unlock the mutex, so no deadlock should occur. +- timespec ts = { iMillis / 1000, (iMillis % 1000) * 1000000 }; ++ timespec ts = { static_cast(iMillis / 1000), ++ static_cast((iMillis % 1000) * 1000000) }; + if (0 != (iMillis != INFINITE ? pthread_cond_timedwait(&cond, &mutex, &ts) : pthread_cond_wait(&cond, &mutex))) + { + pthread_mutex_unlock(&mutex);