Page MenuHomeFreeBSD

D13461.id36492.diff
No OneTemporary

D13461.id36492.diff

Index: devel/Makefile
===================================================================
--- devel/Makefile
+++ devel/Makefile
@@ -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
Index: devel/py-bullet3/Makefile
===================================================================
--- /dev/null
+++ devel/py-bullet3/Makefile
@@ -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= glew
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pybullet.so
+
+.include <bsd.port.mk>
Index: devel/py-bullet3/distinfo
===================================================================
--- /dev/null
+++ devel/py-bullet3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1513061059
+SHA256 (bulletphysics-bullet3-2.87_GH0.tar.gz) = 438c151c48840fe3f902ec260d9496f8beb26dba4b17769a4a53212903935f95
+SIZE (bulletphysics-bullet3-2.87_GH0.tar.gz) = 56691047
Index: devel/py-bullet3/files/patch-examples_ThirdPartyLibs_Gwen_Macros.h
===================================================================
--- /dev/null
+++ devel/py-bullet3/files/patch-examples_ThirdPartyLibs_Gwen_Macros.h
@@ -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 )
Index: devel/py-bullet3/files/patch-setup.py
===================================================================
--- /dev/null
+++ devel/py-bullet3/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2017-12-12 07:10:10 UTC
++++ setup.py
+@@ -413,7 +413,7 @@ else:
+ 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"]\
Index: devel/py-bullet3/pkg-descr
===================================================================
--- /dev/null
+++ devel/py-bullet3/pkg-descr
@@ -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/

File Metadata

Mime Type
text/plain
Expires
Wed, Jun 24, 3:42 AM (19 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34273032
Default Alt Text
D13461.id36492.diff (3 KB)

Event Timeline