From owner-svn-ports-head@freebsd.org Tue Dec 12 19:13:31 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC957E80A99; Tue, 12 Dec 2017 19:13:31 +0000 (UTC) (envelope-from yuri@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 mx1.freebsd.org (Postfix) with ESMTPS id A55DF6CD46; Tue, 12 Dec 2017 19:13:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBCJDUWK021797; Tue, 12 Dec 2017 19:13:30 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBCJDUpj021791; Tue, 12 Dec 2017 19:13:30 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201712121913.vBCJDUpj021791@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 12 Dec 2017 19:13:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456182 - in head/devel: . py-bullet3 py-bullet3/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . py-bullet3 py-bullet3/files X-SVN-Commit-Revision: 456182 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.25 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: Tue, 12 Dec 2017 19:13:31 -0000 Author: yuri Date: Tue Dec 12 19:13:30 2017 New Revision: 456182 URL: https://svnweb.freebsd.org/changeset/ports/456182 Log: New port: devel/py-bullet3: Python version of 3D collision detection library Bullet Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13461 Added: head/devel/py-bullet3/ head/devel/py-bullet3/Makefile (contents, props changed) head/devel/py-bullet3/distinfo (contents, props changed) head/devel/py-bullet3/files/ head/devel/py-bullet3/files/patch-examples_ThirdPartyLibs_Gwen_Macros.h (contents, props changed) head/devel/py-bullet3/files/patch-setup.py (contents, props changed) head/devel/py-bullet3/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Dec 12 18:35:32 2017 (r456181) +++ head/devel/Makefile Tue Dec 12 19:13:30 2017 (r456182) @@ -4292,6 +4292,7 @@ SUBDIR += py-buildbot-waterfall-view SUBDIR += py-buildbot-worker SUBDIR += py-buildbot-www + SUBDIR += py-bullet3 SUBDIR += py-cached-property SUBDIR += py-cachetools SUBDIR += py-calendar Added: head/devel/py-bullet3/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-bullet3/Makefile Tue Dec 12 19:13:30 2017 (r456182) @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PORTNAME= bullet3 +DISTVERSION= 2.87 +CATEGORIES= devel +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python version of 3D collision detection library Bullet + +LICENSE= ZLIB +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= compiler:c++11-lang localbase python +USE_GITHUB= yes +GH_ACCOUNT= bulletphysics +USE_PYTHON= autoplist distutils +USE_GL= gl glew + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pybullet.so + +.include Added: head/devel/py-bullet3/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-bullet3/distinfo Tue Dec 12 19:13:30 2017 (r456182) @@ -0,0 +1,3 @@ +TIMESTAMP = 1513061059 +SHA256 (bulletphysics-bullet3-2.87_GH0.tar.gz) = 438c151c48840fe3f902ec260d9496f8beb26dba4b17769a4a53212903935f95 +SIZE (bulletphysics-bullet3-2.87_GH0.tar.gz) = 56691047 Added: head/devel/py-bullet3/files/patch-examples_ThirdPartyLibs_Gwen_Macros.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-bullet3/files/patch-examples_ThirdPartyLibs_Gwen_Macros.h Tue Dec 12 19:13:30 2017 (r456182) @@ -0,0 +1,11 @@ +--- examples/ThirdPartyLibs/Gwen/Macros.h.orig 2017-09-29 23:20:39 UTC ++++ examples/ThirdPartyLibs/Gwen/Macros.h +@@ -40,7 +40,7 @@ + #define GwenUtil_OutputDebugWideString( lpOutputString ) //wprintf( lpOutputString ) + #define GwenUtil_WideStringToFloat( _Str ) wcstof(_Str, NULL) + +-#elif defined(__linux__) || defined(__OpenBSD__) ++#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) + + #define GwenUtil_VSNPrintFSafe( _DstBuf, _DstSize, _MaxCount, _Format, _ArgList ) vsnprintf( _DstBuf, _DstSize, _Format, _ArgList ) + #define GwenUtil_VSWPrintFSafe( _DstBuf, _SizeInWords, _Format, _ArgList ) vswprintf( _DstBuf, _SizeInWords, _Format, _ArgList ) Added: head/devel/py-bullet3/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-bullet3/files/patch-setup.py Tue Dec 12 19:13:30 2017 (r456182) @@ -0,0 +1,16 @@ +--- setup.py.orig 2017-09-29 23:20:39 UTC ++++ setup.py +@@ -409,11 +409,12 @@ elif _platform == "darwin": + +["examples/OpenGLWindow/MacOpenGLWindowObjC.m"] + else: + print("bsd!") ++ libraries = ['GL','GLEW','pthread'] + os.environ['LDFLAGS'] = '-L/usr/X11R6/lib' + CXX_FLAGS += '-D_BSD ' + CXX_FLAGS += '-I/usr/X11R6/include ' + CXX_FLAGS += '-DHAS_SOCKLEN_T ' +- CXX_FLAGS += '-fno-inline-functions-called-once' ++ #CXX_FLAGS += '-fno-inline-functions-called-once' + sources = ["examples/ThirdPartyLibs/enet/unix.c"]\ + +["examples/OpenGLWindow/X11OpenGLWindow.cpp"]\ + +["examples/ThirdPartyLibs/Glew/glew.c"]\ Added: head/devel/py-bullet3/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-bullet3/pkg-descr Tue Dec 12 19:13:30 2017 (r456182) @@ -0,0 +1,5 @@ +The Python version of Bullet, a professional open source multi-threaded +3D Collision Detection and Rigid Body Dynamics Library. It is free for +commercial use under the ZLib license. + +WWW: http://www.bulletphysics.com/