-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmeta.yaml
121 lines (112 loc) · 4.09 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{% set version = "3.25" %}
package:
name: bullet
version: {{ version }}
source:
fn: bullet3-{{ version }}.tar.gz
url: https://github.com/bulletphysics/bullet3/archive/{{ version }}.tar.gz
sha256: c45afb6399e3f68036ddb641c6bf6f552bf332d5ab6be62f7e6c54eda05ceb77
patches:
- add_rt.patch # [linux]
# On ppc64le compilation of Bullet3OpenCL fails (https://github.com/conda-forge/bullet-feedstock/issues/24)
- disable-bullet3opencl.patch # [ppc64le]
# The setup.py hardcodes a custom logic to decide the number of compilation threads,
# let's override it for memory limited architectures (as of early 2021, travis with ppc64le)
- setup-py-single-thread-compilation.patch # [ppc64le]
- fix-find-pythonlibs.patch # [linux]
- double-precision-postfix.patch
build:
number: 3
outputs:
- name: bullet-cpp
script: build_cpp.sh # [unix]
script: bld_cpp.bat # [win]
build:
run_exports:
- {{ pin_subpackage('bullet-cpp', max_pin='x.x') }}
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy # [build_platform != target_platform]
- cmake
- ninja
- {{ compiler("c") }}
- {{ stdlib("c") }}
- {{ compiler("cxx") }}
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
host:
- xorg-libx11 # [unix]
- xorg-libxext # [unix]
- python
- numpy
run:
- xorg-libx11 # [unix]
- xorg-libxext # [unix]
test:
commands:
- test -d ${PREFIX}/include/bullet # [unix]
- test -f ${PREFIX}/include/bullet/BulletSoftBody/btSoftBody.h # [unix]
- test -f ${PREFIX}/lib/pkgconfig/bullet.pc # [unix]
- test -f ${PREFIX}/lib/cmake/bullet/BulletConfig.cmake # [unix]
- test -f ${PREFIX}/lib/libBulletExampleBrowserLib${SHLIB_EXT} # [unix]
- test -f ${PREFIX}/lib/libgwen${SHLIB_EXT} # [unix]
- test -f ${PREFIX}/lib/libBussIK${SHLIB_EXT} # [unix]
- test -f ${PREFIX}/lib/libBullet3Dynamics${SHLIB_EXT} # [unix]
- if not exist %LIBRARY_PREFIX%\include\bullet\BulletSoftBody\btSoftBody.h (exit 1) # [win]
- if not exist %LIBRARY_PREFIX%\lib\cmake\bullet\BulletConfig.cmake (exit 1) # [win]
- if not exist %LIBRARY_PREFIX%\lib\BussIK.lib (exit 1) # [win]
- if not exist %LIBRARY_PREFIX%\lib\BulletCollision.lib (exit 1) # [win]
- name: pybullet
script: build_py.sh # [unix]
script: bld_py.bat # [win]
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy # [build_platform != target_platform]
- cmake
- ninja
- {{ compiler("c") }}
- {{ stdlib("c") }}
- {{ compiler("cxx") }}
host:
- {{ pin_subpackage("bullet-cpp", exact=True) }}
- python
- pip
- setuptools
- wheel
- numpy
run:
- {{ pin_subpackage("bullet-cpp", exact=True) }}
- python
- numpy
test:
imports:
- pybullet
- name: bullet
requirements:
run:
- {{ pin_subpackage("bullet-cpp", exact=True) }}
- {{ pin_subpackage("pybullet", exact=True) }}
- python
- numpy
test:
imports:
- pybullet
commands:
- test -f ${PREFIX}/include/bullet/BulletSoftBody/btSoftBody.h # [unix]
- if not exist %LIBRARY_PREFIX%\include\bullet\BulletSoftBody\btSoftBody.h (exit 1) # [win]
about:
home: http://bulletphysics.org
license: Zlib
license_file: LICENSE.txt
summary: |
Bullet Physics SDK real-time collision detection and multi-physics
simulation for VR, games, visual effects, robotics, machine learning
etc.
extra:
recipe-maintainers:
- traversaro
- wolfv