{% set version = "0.24.5" %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-rayshader
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/rayshader_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rayshader/rayshader_{{ version }}.tar.gz
  sha256: eb68e57c0132ad98279e1ec4c11c10514b318c4e6f9635cbebef093a3dedac42

build:
  merge_build_host: true  # [win]
  skip: true  # [osx]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
    - cross-r-base {{ r_base }}    # [build_platform != target_platform]
    - {{ cdt('mesa-libgl-devel') }}  # [linux]
    - {{ cdt('mesa-dri-drivers') }}  # [linux]
    - {{ cdt('libselinux') }}  # [linux]
    - {{ cdt('libxdamage') }}  # [linux]
    - {{ cdt('libxxf86vm') }}  # [linux]
    - {{ cdt('libxext') }}     # [linux]
  host:
    - r-base
    - r-rcpp
    - r-rcpparmadillo
    - r-doparallel
    - r-foreach
    - r-magrittr
    - r-png
    - r-progress
    - r-raster
    - r-rayimage
    - r-rgl
    - r-scales
    - r-terrainmeshr
    - libglu  # [linux]
    - xorg-libxfixes  # [linux]
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-rcpparmadillo
    - r-doparallel
    - r-foreach
    - r-magrittr
    - r-png
    - r-progress
    - r-raster
    - r-rayimage
    - r-rgl
    - r-scales
    - r-terrainmeshr

test:
  commands:
    - $R -e "library('rayshader')"           # [not win]
    - "\"%R%\" -e \"library('rayshader')\""  # [win]

about:
  home: https://github.com/tylermorganwall/rayshader
  license: GPL-3.0-only
  summary: Uses a combination of raytracing and multiple hill shading methods to produce 2D and 3D data visualizations and maps. Includes water detection and layering functions, programmable color palette generation, several built-in textures for hill shading, 2D and 3D plotting options, a built-in path tracer, 'Wavefront'
    OBJ file export, and the ability to save 3D visualizations to a 3D printable format.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r
    - izahn

# Package: rayshader
# Type: Package
# Title: Create Maps and Visualize Data in 2D and 3D
# Version: 0.19.2
# Date: 2020-07-09
# Author: Tyler Morgan-Wall
# Maintainer: Tyler Morgan-Wall <tylermw@gmail.com>
# Description: Uses a combination of raytracing and multiple hill shading methods to produce 2D and 3D data visualizations and maps. Includes water detection and layering functions, programmable color palette generation, several built-in textures for hill shading, 2D and 3D plotting options, a built-in path tracer, 'Wavefront' OBJ file export, and the ability to save 3D visualizations to a 3D printable format.
# License: GPL-3
# LazyData: true
# Depends: R (>= 3.0.2)
# Imports: doParallel, foreach, Rcpp, progress, raster, scales, png, magrittr, rgl, grDevices, grid, utils, methods, terrainmeshr, rayimage
# Suggests: reshape2, viridis, av, magick, ggplot2, sf, rayrender, isoband
# LinkingTo: Rcpp, progress, RcppArmadillo
# RoxygenNote: 7.1.0
# URL: https://github.com/tylermorganwall/rayshader
# BugReports: https://github.com/tylermorganwall/rayshader/issues
# NeedsCompilation: yes
# Packaged: 2020-08-01 19:58:47 UTC; tyler
# Repository: CRAN
# Date/Publication: 2020-08-02 05:00:02 UTC
