Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144223494
D13461.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D13461.id.diff
View Options
Index: head/devel/Makefile
===================================================================
--- head/devel/Makefile
+++ head/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: head/devel/py-bullet3/Makefile
===================================================================
--- head/devel/py-bullet3/Makefile
+++ head/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= gl glew
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pybullet.so
+
+.include <bsd.port.mk>
Index: head/devel/py-bullet3/distinfo
===================================================================
--- head/devel/py-bullet3/distinfo
+++ head/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: head/devel/py-bullet3/files/patch-examples_ThirdPartyLibs_Gwen_Macros.h
===================================================================
--- head/devel/py-bullet3/files/patch-examples_ThirdPartyLibs_Gwen_Macros.h
+++ head/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: head/devel/py-bullet3/files/patch-setup.py
===================================================================
--- head/devel/py-bullet3/files/patch-setup.py
+++ head/devel/py-bullet3/files/patch-setup.py
@@ -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"]\
Index: head/devel/py-bullet3/pkg-descr
===================================================================
--- head/devel/py-bullet3/pkg-descr
+++ head/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
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 7, 5:50 PM (4 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28457693
Default Alt Text
D13461.id.diff (3 KB)
Attached To
Mode
D13461: New port: devel/py-bullet3: Python version of 3D collision detection library Bullet
Attached
Detach File
Event Timeline
Log In to Comment