diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2015-03-16 20:10:12 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2015-03-16 20:10:12 +0000 |
commit | c7cca7df81536e009500b5ffc6664bcdd83c4960 (patch) | |
tree | 29f5c70140e8fe7eb9dbded02063831d72b6e455 | |
parent | 742dae6da06336c3f9b9ad985a6fc429a39b9390 (diff) | |
download | ports-c7cca7df81536e009500b5ffc6664bcdd83c4960.tar.gz ports-c7cca7df81536e009500b5ffc6664bcdd83c4960.zip |
Notes
-rw-r--r-- | games/openclonk/Makefile | 14 | ||||
-rw-r--r-- | games/openclonk/distinfo | 4 | ||||
-rw-r--r-- | games/openclonk/files/patch-CMakeLists.txt | 21 | ||||
-rw-r--r-- | games/openclonk/files/patch-src__platform__StdSync.h | 11 |
4 files changed, 30 insertions, 20 deletions
diff --git a/games/openclonk/Makefile b/games/openclonk/Makefile index 169307053f34..de06e606bab6 100644 --- a/games/openclonk/Makefile +++ b/games/openclonk/Makefile @@ -2,17 +2,16 @@ # $FreeBSD$ PORTNAME= openclonk -PORTVERSION= 5.1 -DISTVERSIONPREFIX= 5. +PORTVERSION= 6.0 DISTVERSIONSUFFIX= -src -PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= http://www.openclonk.org/builds/release/${DISTVERSIONPREFIX}${DISTVERSION}/ +MASTER_SITES= http://www.openclonk.org/builds/release/${DISTVERSION}/ MAINTAINER= kevinz5000@gmail.com COMMENT= Multiplayer action game involving small and nimble humanoids -LICENSE= ISCL +LICENSE= ISCL CC0-1.0 +LICENSE_COMB= dual LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \ @@ -22,13 +21,14 @@ LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \ libpng.so:${PORTSDIR}/graphics/png \ libvorbis.so:${PORTSDIR}/audio/libvorbis -USES= compiler:c++11-lib cmake iconv pkgconfig tar:bzip2 +USES= compiler:c++11-lib cmake desktop-file-utils iconv pkgconfig tar:bzip2 USE_GL= glew USE_GNOME= gtk20 USE_SDL= sdl mixer USE_XORG= x11 xpm +INSTALLS_ICONS= yes -WRKSRC= ${WRKDIR}/openclonk-release-${DISTVERSIONPREFIX}${DISTVERSION}-src +WRKSRC= ${WRKDIR}/openclonk-release-${DISTVERSION}-src .include <bsd.port.pre.mk> diff --git a/games/openclonk/distinfo b/games/openclonk/distinfo index 26329a04bddf..916cbbc8539e 100644 --- a/games/openclonk/distinfo +++ b/games/openclonk/distinfo @@ -1,2 +1,2 @@ -SHA256 (openclonk-5.5.1-src.tar.bz2) = c038d6dc2ef9a3d7966b18ba6147b9dd136f353dfaa5796455f9917b79255743 -SIZE (openclonk-5.5.1-src.tar.bz2) = 65383438 +SHA256 (openclonk-6.0-src.tar.bz2) = 89271011c14a239c3000f057c12699c2ce1242187d41c4d2f6fd11b1d46a0248 +SIZE (openclonk-6.0-src.tar.bz2) = 68762594 diff --git a/games/openclonk/files/patch-CMakeLists.txt b/games/openclonk/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..bac2578ddfe5 --- /dev/null +++ b/games/openclonk/files/patch-CMakeLists.txt @@ -0,0 +1,21 @@ +--- CMakeLists.txt.orig 2015-03-15 19:33:38 UTC ++++ CMakeLists.txt +@@ -912,7 +912,6 @@ if(USE_SDL_MAINLOOP OR (Audio_TK STREQUA + find_package(SDL) + SET(HAVE_SDL ${SDL_FOUND}) + include_directories(${SDL_INCLUDE_DIR}) +- target_link_libraries(openclonk ${SDL_LIBRARY}) + endif() + + ############################################################################ +@@ -1094,6 +1093,10 @@ target_link_libraries(openclonk + libmisc + ) + ++if (SDL_FOUND) ++ target_link_libraries(openclonk ${SDL_LIBRARY}) ++endif() ++ + if(Audio_FOUND) + target_link_libraries(openclonk ${Audio_LIBRARIES}) + include_directories(${Audio_INCLUDE_DIRS}) diff --git a/games/openclonk/files/patch-src__platform__StdSync.h b/games/openclonk/files/patch-src__platform__StdSync.h deleted file mode 100644 index 78ae3248d323..000000000000 --- a/games/openclonk/files/patch-src__platform__StdSync.h +++ /dev/null @@ -1,11 +0,0 @@ ---- src/platform/StdSync.h.orig 2014-10-05 17:22:07.000000000 +0400 -+++ src/platform/StdSync.h 2014-11-27 18:14:51.000000000 +0300 -@@ -135,7 +135,7 @@ - { - // 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<time_t>(iMillis / 1000), static_cast<long>(iMillis % 1000) * 1000000 }; - if (0 != (iMillis != INFINITE ? pthread_cond_timedwait(&cond, &mutex, &ts) : pthread_cond_wait(&cond, &mutex))) - { - pthread_mutex_unlock(&mutex); |