Skip to content

Commit

Permalink
Merge pull request #13677 from JShep1/libignition-rendering-feedstock
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Jan 23, 2021
2 parents 6650059 + 5df9a9f commit c921bac
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
22 changes: 22 additions & 0 deletions recipes/libignition-rendering/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
mkdir build
cd build

cmake ^
-G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^
%SRC_DIR%
if errorlevel 1 exit 1

:: Build.
cmake --build . --config Release
if errorlevel 1 exit 1

:: Install.
cmake --build . --config Release --target install
if errorlevel 1 exit 1

:: Test.
ctest -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST"
if errorlevel 1 exit 1
17 changes: 17 additions & 0 deletions recipes/libignition-rendering/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

mkdir build
cd build

export CFLAGS="${CFLAGS} -DGLX_GLXEXT_LEGACY"
export CXXFLAGS="${CXXFLAGS} -DGLX_GLXEXT_LEGACY"

cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True

cmake --build . --config Release
cmake --build . --config Release --target install
ctest -C Release -E "INTEGRATION|PERFORMANCE|REGRESSION|UNIT_RenderingIface_TEST|check_UNIT_RenderingIface_TEST"
4 changes: 4 additions & 0 deletions recipes/libignition-rendering/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
macos_min_version: # [osx]
- 10.14 # [osx]
MACOSX_DEPLOYMENT_TARGET: # [osx]
- 10.14 # [osx]
74 changes: 74 additions & 0 deletions recipes/libignition-rendering/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{% set base_name = "libignition-rendering" %}
{% set version = "4.1.0" %}
{% set name = base_name + version.split('.')[0] %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/ignitionrobotics/ign-rendering/archive/ignition-rendering{{ version.split('.')[0] }}_{{ version }}.tar.gz
sha256: 465e858332d5b0e608888e9d62d08f779c7d99d0a51f2de7ba23ba640cdd4be4

build:
number: 0
run_exports:
- {{ pin_subpackage(name, max_pin='x') }}

requirements:
build:
- {{ compiler('cxx') }}
- {{ compiler('c') }}
- cmake
- make # [not win]
- pkg-config # [not win]

# x11
- {{ cdt('mesa-libgl-devel') }} # [unix]
- {{ cdt('mesa-dri-drivers') }} # [unix]
- {{ cdt('libselinux') }} # [linux]
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxfixes') }} # [linux]
- {{ cdt('libxext') }} # [linux]
- {{ cdt('libxau') }} # [linux]
host:
- xorg-libx11 # [unix]
- xorg-libxext # [unix]
- libglu # [linux]
- libignition-math6 >=6.6
- libignition-common3
- libignition-plugin1
- ogre
run:
- xorg-libx11 # [unix]
- xorg-libxext # [unix]
- libglu # [linux]
- libignition-math6 >=6.6
- libignition-common3
- libignition-plugin1
- ogre
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx and x86_64]

test:
commands:
- test -f ${PREFIX}/include/ignition/rendering{{ version.split('.')[0] }}/ignition/rendering.hh # [not win]
- test -f ${PREFIX}/lib/libignition-rendering{{ version.split('.')[0] }}.so # [linux]
- test -f ${PREFIX}/lib/libignition-rendering{{ version.split('.')[0] }}.dylib # [osx]
- test -f ${PREFIX}/lib/cmake/ignition-rendering{{ version.split('.')[0] }}/ignition-rendering{{ version.split('.')[0] }}-config.cmake # [not win]
- if exist %PREFIX%\\Library\\include\\ignition\\rendering{{ version.split('.')[0] }}\\ignition\\rendering.hh (exit 0) else (exit 1) # [win]
- if exist $PREFIX$\\Library\\lib\\ignition-rendering{{ version.split('.')[0] }}.lib (exit 0) else (exit 1) # [win]
- if exist $PREFIX$\\Library\\bin\\ignition-rendering{{ version.split('.')[0] }}.dll (exit 0) else (exit 1) # [win]
- if exist %PREFIX%\\Library\\lib\\cmake\\ignition-rendering{{ version.split('.')[0] }}\\ignition-rendering{{ version.split('.')[0] }}-config.cmake (exit 0) else (exit 1) # [win]

about:
home: https://github.com/ignitionrobotics/ign-rendering
license: Apache-2.0
license_file: LICENSE
summary: Ignition Rendering

extra:
recipe-maintainers:
- JShep1
- wolfv
- traversaro

0 comments on commit c921bac

Please sign in to comment.