Skip to content

Commit

Permalink
Merge pull request conda-forge#1 from tetov/openvdb
Browse files Browse the repository at this point in the history
updates after @carterbox's review
  • Loading branch information
versatran01 committed Aug 4, 2023
2 parents 2335b14 + 12481bc commit ebbd5f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
5 changes: 1 addition & 4 deletions recipes/openvdb/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
mkdir -p build
cd build
cmake ${CMAKE_ARGS} \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DCMAKE_PREFIX_PATH=${PREFIX} \
-DOPENVDB_CORE_SHARED=ON \
-DOPENVDB_CORE_STATIC=OFF \
-DUSE_EXPLICIT_INSTANTIATION=OFF \
..
make -j${CPU_COUNT}
make install
cmake --build . --target install --parallel
18 changes: 12 additions & 6 deletions recipes/openvdb/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ source:
url: https://github.com/AcademySoftwareFoundation/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: 887a3391fbd96b20c77914f4fb3ab4b33d26e5fc479aa036d395def5523c622f


build:
number: 0
skip: true # [win or osx]
Expand All @@ -29,14 +28,20 @@ requirements:

run:
- boost-cpp
- blosc
- zlib
- tbb-devel
- jemalloc

test:
commands:
- test -f ${PREFIX}/include/openvdb/openvdb.h # [unix]
- test -f ${PREFIX}/lib/libopenvdb.so.{{ version }} # [unix]
- test -f ${PREFIX}/lib/libopenvdb.so # [unix]
- test -f ${PREFIX}/bin/vdb_print # [unix]
- test -f ${PREFIX}/include/openvdb/openvdb.h # [unix]
- test -f ${PREFIX}/lib/cmake/OpenVDB/FindOpenVDB.cmake # [unix]
- if not exist %PREFIX%\lib\libopenvdb.dll.{{ version }} exit 1 # [win]
- if not exist %PREFIX%\lib\libopenvdb.dll exit 1 # [win]
- if not exist %PREFIX%\bin\vdb_print exit 1 # [win]
- if not exist %PREFIX%\include\opendb\opendvdb.h exit 1 # [win]
- if not exist %PREFIX%\lib\cmake\FindOpenVDB.cmake exit 1 # [win]
- vdb_print --help

about:
home: https://github.com/AcademySoftwareFoundation/openvdb
Expand All @@ -51,3 +56,4 @@ about:
extra:
recipe-maintainers:
- versatran01
- tetov

0 comments on commit ebbd5f8

Please sign in to comment.