diff --git a/recipes/libignition-rendering/bld.bat b/recipes/libignition-rendering/bld.bat new file mode 100644 index 0000000000000..6ddfb636dc56c --- /dev/null +++ b/recipes/libignition-rendering/bld.bat @@ -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 diff --git a/recipes/libignition-rendering/build.sh b/recipes/libignition-rendering/build.sh new file mode 100644 index 0000000000000..b869806b9e92b --- /dev/null +++ b/recipes/libignition-rendering/build.sh @@ -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" diff --git a/recipes/libignition-rendering/conda_build_config.yaml b/recipes/libignition-rendering/conda_build_config.yaml new file mode 100644 index 0000000000000..fe398bddb1afd --- /dev/null +++ b/recipes/libignition-rendering/conda_build_config.yaml @@ -0,0 +1,4 @@ +macos_min_version: # [osx] + - 10.14 # [osx] +MACOSX_DEPLOYMENT_TARGET: # [osx] + - 10.14 # [osx] diff --git a/recipes/libignition-rendering/meta.yaml b/recipes/libignition-rendering/meta.yaml new file mode 100644 index 0000000000000..92132089d800a --- /dev/null +++ b/recipes/libignition-rendering/meta.yaml @@ -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