svn commit: r456182 - in head/devel: . py-bullet3 py-bullet3/files
Yuri Victorovich
yuri at FreeBSD.org
Tue Dec 12 19:13:31 UTC 2017
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 at 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 <bsd.port.mk>
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/
More information about the svn-ports-all
mailing list