From owner-svn-ports-head@freebsd.org Wed Dec 4 02:21:33 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 792C11C6352; Wed, 4 Dec 2019 02:21:33 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47SMzd3Pfwz4GDw; Wed, 4 Dec 2019 02:21:33 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3CB452120B; Wed, 4 Dec 2019 02:21:33 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xB42LX7B032022; Wed, 4 Dec 2019 02:21:33 GMT (envelope-from romain@FreeBSD.org) Received: (from romain@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xB42LU2o031066; Wed, 4 Dec 2019 02:21:30 GMT (envelope-from romain@FreeBSD.org) Message-Id: <201912040221.xB42LU2o031066@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: romain set sender to romain@FreeBSD.org using -f From: =?UTF-8?Q?Romain_Tarti=c3=a8re?= Date: Wed, 4 Dec 2019 02:21:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r518981 - in head/graphics: . urho3d urho3d/files X-SVN-Group: ports-head X-SVN-Commit-Author: romain X-SVN-Commit-Paths: in head/graphics: . urho3d urho3d/files X-SVN-Commit-Revision: 518981 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 02:21:33 -0000 Author: romain Date: Wed Dec 4 02:21:29 2019 New Revision: 518981 URL: https://svnweb.freebsd.org/changeset/ports/518981 Log: New port: graphics/urho3d Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. Greatly inspired by OGRE and Horde3D. WWW: https://urho3d.github.io/ Added: head/graphics/urho3d/ head/graphics/urho3d/Makefile (contents, props changed) head/graphics/urho3d/distinfo (contents, props changed) head/graphics/urho3d/files/ head/graphics/urho3d/files/patch-CMakeLists.txt (contents, props changed) head/graphics/urho3d/files/patch-Source_ThirdParty_Assimp_code_BlenderTessellator.cpp (contents, props changed) head/graphics/urho3d/files/patch-Source_ThirdParty_Bullet_src_LinearMath_btVector3.h (contents, props changed) head/graphics/urho3d/files/patch-Source_ThirdParty_GLEW_CMakeLists.txt (contents, props changed) head/graphics/urho3d/files/patch-Source_ThirdParty_SDL_CMakeLists.txt (contents, props changed) head/graphics/urho3d/files/patch-Source_ThirdParty_SDL_cmake_sdlchecks.cmake (contents, props changed) head/graphics/urho3d/files/patch-Source_ThirdParty_STB_stb__vorbis.h (contents, props changed) head/graphics/urho3d/files/patch-Source_ThirdParty_StanHull_hull.cpp (contents, props changed) head/graphics/urho3d/files/patch-Source_Urho3D_CMakeLists.txt (contents, props changed) head/graphics/urho3d/pkg-descr (contents, props changed) head/graphics/urho3d/pkg-plist (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Wed Dec 4 01:15:12 2019 (r518980) +++ head/graphics/Makefile Wed Dec 4 02:21:29 2019 (r518981) @@ -1034,6 +1034,7 @@ SUBDIR += uniconvertor SUBDIR += uniconvw SUBDIR += unpaper + SUBDIR += urho3d SUBDIR += urt SUBDIR += vapoursynth-fmtconv SUBDIR += vapoursynth-waifu2x-w2xc Added: head/graphics/urho3d/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/Makefile Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= urho3d +PORTVERSION= 1.7.1 +CATEGORIES= graphics + +MAINTAINER= romain@FreeBSD.org +COMMENT= Cross-platform 2D and 3D game engine + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:noninja,insource dos2unix gl +USE_GITHUB= yes +USE_XORG= x11 xext +USE_GL= gl + +DOS2UNIX_FILES= ${WRKSRC}/Source/ThirdParty/StanHull/hull.cpp + +GH_PROJECT= Urho3D + +OPTIONS_DEFINE= EXAMPLES +EXAMPLES_CMAKE_OFF= -DURHO3D_SAMPLES:BOOL=false + +.include Added: head/graphics/urho3d/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/distinfo Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,3 @@ +TIMESTAMP = 1560728847 +SHA256 (urho3d-Urho3D-1.7.1_GH0.tar.gz) = 57c15249d5339f12c301dfe5cce4a1468262329b7c0b18a11b7283eb37ec5e9e +SIZE (urho3d-Urho3D-1.7.1_GH0.tar.gz) = 62151952 Added: head/graphics/urho3d/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-CMakeLists.txt Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,13 @@ +--- CMakeLists.txt.orig 2019-05-24 15:51:45 UTC ++++ CMakeLists.txt +@@ -35,6 +35,10 @@ if (COMMAND cmake_policy) + cmake_policy (SET CMP0063 OLD) + endif () + ++link_directories(/usr/local/lib) ++link_libraries(usbhid) ++set(CMAKE_REQUIRED_INCLUDES "/usr/local/include") ++ + # Set project name + project (Urho3D) + Added: head/graphics/urho3d/files/patch-Source_ThirdParty_Assimp_code_BlenderTessellator.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-Source_ThirdParty_Assimp_code_BlenderTessellator.cpp Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,13 @@ +--- Source/ThirdParty/Assimp/code/BlenderTessellator.cpp.orig 2019-06-19 03:39:32 UTC ++++ Source/ThirdParty/Assimp/code/BlenderTessellator.cpp +@@ -374,8 +374,8 @@ void BlenderTessellatorP2T::ReferencePoints( std::vect + // ------------------------------------------------------------------------------------------------ + // Yes this is filthy... but we have no choice + #define OffsetOf( Class, Member ) ( static_cast< unsigned int >( \ +- reinterpret_cast(&( reinterpret_cast< Class* >( NULL )->*( &Class::Member ) )) - \ +- static_cast(NULL) ) ) ++ reinterpret_cast(&( reinterpret_cast< Class* >( 0 )->*( &Class::Member ) )) - \ ++ static_cast(0) ) ) + + inline PointP2T& BlenderTessellatorP2T::GetActualPointStructure( p2t::Point& point ) const + { Added: head/graphics/urho3d/files/patch-Source_ThirdParty_Bullet_src_LinearMath_btVector3.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-Source_ThirdParty_Bullet_src_LinearMath_btVector3.h Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,11 @@ +--- Source/ThirdParty/Bullet/src/LinearMath/btVector3.h.orig 2019-12-04 01:22:27 UTC ++++ Source/ThirdParty/Bullet/src/LinearMath/btVector3.h +@@ -40,7 +40,7 @@ subject to the following restrictions: + #endif + + +-#define BT_SHUFFLE(x,y,z,w) ((w)<<6 | (z)<<4 | (y)<<2 | (x)) ++#define BT_SHUFFLE(x,y,z,w) (((w)<<6 | (z)<<4 | (y)<<2 | (x)) & 0xff) + //#define bt_pshufd_ps( _a, _mask ) (__m128) _mm_shuffle_epi32((__m128i)(_a), (_mask) ) + #define bt_pshufd_ps( _a, _mask ) _mm_shuffle_ps((_a), (_a), (_mask) ) + #define bt_splat3_ps( _a, _i ) bt_pshufd_ps((_a), BT_SHUFFLE(_i,_i,_i, 3) ) Added: head/graphics/urho3d/files/patch-Source_ThirdParty_GLEW_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-Source_ThirdParty_GLEW_CMakeLists.txt Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,12 @@ +--- Source/ThirdParty/GLEW/CMakeLists.txt.orig 2019-06-18 21:27:01 UTC ++++ Source/ThirdParty/GLEW/CMakeLists.txt +@@ -23,6 +23,9 @@ + # Define target name + set (TARGET_NAME GLEW) + ++set(CMAKE_REQUIRED_INCLUDES "/usr/local/include") ++add_definitions (-I/usr/local/include) ++ + # Define preprocessor macros + add_definitions (-DGLEW_STATIC -DGLEW_NO_GLU) + Added: head/graphics/urho3d/files/patch-Source_ThirdParty_SDL_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-Source_ThirdParty_SDL_CMakeLists.txt Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,12 @@ +--- Source/ThirdParty/SDL/CMakeLists.txt.orig 2019-06-18 22:56:08 UTC ++++ Source/ThirdParty/SDL/CMakeLists.txt +@@ -21,6 +21,9 @@ + + # Modified by Yao Wei Tjong for Urho3D, the modified portion is licensed under below license + ++set(CMAKE_REQUIRED_INCLUDES "/usr/local/include") ++add_definitions(-I/usr/local/include) ++ + # + # Copyright (c) 2008-2017 the Urho3D project. + # Added: head/graphics/urho3d/files/patch-Source_ThirdParty_SDL_cmake_sdlchecks.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-Source_ThirdParty_SDL_cmake_sdlchecks.cmake Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,10 @@ +--- Source/ThirdParty/SDL/cmake/sdlchecks.cmake.orig 2019-05-24 15:51:45 UTC ++++ Source/ThirdParty/SDL/cmake/sdlchecks.cmake +@@ -356,6 +356,7 @@ endmacro() + macro(CheckX11) + if(VIDEO_X11) + # Urho3D - bug fix - in order to make these checks below work on both native and cross-compiling builds we need to add the '-shared' compiler flags to ensure the linker does not attempt to statically link against X11 shared libs which would otherwise fail the test when in cross-compiling mode ++ set(CMAKE_REQUIRED_INCLUDES "/usr/local/include") + set(CMAKE_REQUIRED_FLAGS "-fPIC -shared ${ORIG_CMAKE_REQUIRED_FLAGS}") + foreach (NAME X11 Xext Xcursor Xinerama Xi Xrandr Xrender Xss Xxf86vm) + string (TOUPPER ${NAME} UPCASE_NAME) Added: head/graphics/urho3d/files/patch-Source_ThirdParty_STB_stb__vorbis.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-Source_ThirdParty_STB_stb__vorbis.h Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,10 @@ +--- Source/ThirdParty/STB/stb_vorbis.h.orig 2019-06-18 23:14:07 UTC ++++ Source/ThirdParty/STB/stb_vorbis.h +@@ -554,7 +554,6 @@ enum STBVorbisError + #include + #include + #if !(defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)) +-#include + #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) + #include + #endif Added: head/graphics/urho3d/files/patch-Source_ThirdParty_StanHull_hull.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/urho3d/files/patch-Source_ThirdParty_StanHull_hull.cpp Wed Dec 4 02:21:29 2019 (r518981) @@ -0,0 +1,11 @@ +--- Source/ThirdParty/StanHull/hull.cpp.orig 2019-05-24 15:51:45 UTC ++++ Source/ThirdParty/StanHull/hull.cpp +@@ -2587,7 +2587,7 @@ int overhull(Plane *planes,int planes_count,float3 *ve + float3 *&verts_out, int &verts_count_out, int *&faces_out, int &faces_count_out ,float inflate) + { + int i,j; +- if(verts_count <4) return NULL; ++ if(verts_count <4) return 0; + maxplanes = Min(maxplanes,planes_count); + float3 bmin(verts[0]),bmax(verts[0]); + for(i=0;i