Skip to content

Commit

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

cmake -GNinja ^
%CMAKE_ARGS% ^
cmake -GNinja ^
%CMAKE_ARGS% ^
-DOJPH_BUILD_EXECUTABLES=OFF ^
..

if errorlevel 1 exit 1
Expand Down
6 changes: 5 additions & 1 deletion recipes/openjph/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ set -ex
mkdir -p build
pushd build

cmake ${CMAKE_ARGS} ..
# OJPH_BUILD_EXECUTABLES would require libtiff which creates a circular
# dependency
cmake ${CMAKE_ARGS} \
-DOJPH_BUILD_EXECUTABLES=OFF \
..

make -j ${CPU_COUNT}

Expand Down
39 changes: 0 additions & 39 deletions recipes/openjph/meta.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions recipes/openjph/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
context:
version: "0.17.0"

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

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

build:
number: 0

requirements:
build:
- ${{ compiler('cxx') }}
- ${{ compiler('c') }}
# - ${{ stdlib('c') }}
- cmake
- if: win
then:
- ninja
else:
- make
host:
- libtiff
run_exports:
- ${{ pin_subpackage('openjph', upper_bound='x.x') }}

tests:
- script:
- if unix:
- test -f ${PREIFX}/include/openjph/ojph_version.h
- test -f ${PREFIX}/lib/libopenjph${SHLIB_EXT}

about:
homepage: 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 8227044

Please sign in to comment.