Skip to content

Commit

Permalink
Add openjph
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Oct 5, 2024
1 parent 9f8e000 commit 2e4121d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
14 changes: 14 additions & 0 deletions recipes/openjph/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
mkdir build
cd build

cmake -GNinja ^
%CMAKE_ARGS% ^
..

if errorlevel 1 exit 1

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

cmake --build . --config Release --target install
if errorlevel 1 exit 1
10 changes: 10 additions & 0 deletions recipes/openjph/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set -ex

mkdir -p build
pushd build

cmake ${CMAKE_ARGS} ..

make -j ${CPU_COUNT}

make install
39 changes: 39 additions & 0 deletions recipes/openjph/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% set version = "0.10.5" %}

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

source:
url: https://github.com/aous72/OpenJPH/archive/{{ version }}.tar.gz
sha256: fc1e43fb1e8a097f883f5fe98794327eb96c4bdf2c53cb633537b061af4c99f3

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

requirements:
build:
- cmake
- make # [not win]
- ninja # [win]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- libtiff

test:
commands:
- ojph_compress | grep "The following arguments" # [unix]
- ojph_expand | grep "The following arguments" # [unix]

about:
home: https://github.com/aous72/OpenJPH
license: BSD-2-Clause
license_file: LICENSE
summary: Open source implementation of High-throughput JPEG2000 (HTJ2K).

extra:
recipe-maintainers:
- hmaarrfk

0 comments on commit 2e4121d

Please sign in to comment.