Skip to content

Commit

Permalink
Update libtiff from 4.5.0 to 4.5.1 (#1017)
Browse files Browse the repository at this point in the history
* Update libtiff from 4.5.0 to 4.5.1

* disable targets

* Update recipe.yaml

* Clean up

* Add tests

---------

Co-authored-by: emscripten-forge-bot <[email protected]>
Co-authored-by: Thorsten Beier <[email protected]>
Co-authored-by: Isabel Paredes <[email protected]>
  • Loading branch information
4 people authored Sep 10, 2024
1 parent 001741b commit d0337c1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 111 deletions.
3 changes: 3 additions & 0 deletions recipes/recipes_emscripten/libtiff/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ mkdir bld
cd bld

emcmake cmake .. -GNinja \
-Dtiff-tests=OFF \
-Dtiff-tools=OFF \
-Dtiff-docs=OFF \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_LIBDIR=lib \
Expand Down
52 changes: 12 additions & 40 deletions recipes/recipes_emscripten/libtiff/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,55 +1,32 @@
context:
version: 4.5.0
version: 4.5.1

package:
name: libtiff
version: ${{ version }}

source:
url: https://download.osgeo.org/libtiff/tiff-${{ version }}.tar.gz
sha256: c7a1d9296649233979fa3eacffef3fa024d73d05d589cb622727b5b08c423464
sha256: d7f38b6788e4a8f5da7940c5ac9424f494d8a79eba53d555f4a507167dca5e2b

build:
number: 1
# Does a very good job of maintaining compatibility.
# https://abi-laboratory.pro/tracker/timeline/libtiff/
# run_exports:
# - {{ pin_subpackage('libtiff', max_pin='x') }}
# missing_dso_whitelist:
# # Only used by libtiff,bin/tiffgt (a viewer), which is ok.
# - /opt/X11/lib/libGL.1.dylib
# - /opt/X11/lib/libglut.3.dylib
number: 0

requirements:
build:
# - libtool # [unix]
- ${{ compiler('c') }}
- ${{ compiler('cxx') }}
- cmake
- ninja
# host:
# - zlib
# - jpeg
# - xz
# - zstd
# - lerc
# - libdeflate
# - libwebp-base # [linux or osx]

# test:
# downstreams:
# - pillow >=8
# - py-opencv >=4
# - tifffile
# commands:
# - test -f ${PREFIX}/lib/libtiff.a # [not win]
# - test -f ${PREFIX}/lib/libtiffxx.a # [not win]
# - test -f ${PREFIX}/lib/libtiff{{ SHLIB_EXT }} # [not win]
# - test -f ${PREFIX}/lib/libtiffxx{{ SHLIB_EXT }} # [not win]
# - if not exist %PREFIX%\\Library\\bin\\tiff.dll exit 1 # [win]
# - if not exist %PREFIX%\\Library\\bin\\tiffxx.dll exit 1 # [win]
# - if not exist %PREFIX%\\Library\\bin\\libtiff.dll exit 1 # [win]
# - if not exist %PREFIX%\\Library\\bin\\libtiffxx.dll exit 1 # [win]
tests:
- package_contents:
lib:
- libtiff.a
- libtiffxx.a
include:
- tiff.h
- tiffio.h

about:
license: HPND
Expand All @@ -61,9 +38,4 @@ about:
homepage: http://www.libtiff.org/
extra:
recipe-maintainers:
- jakirkham
- mingwandroid
- msarahan
- ocefpaf
- stuarteberg
- hmaarrfk
- DerThorsten
71 changes: 0 additions & 71 deletions recipes/recipes_emscripten/libtiff/recipe_legacy.yaml

This file was deleted.

0 comments on commit d0337c1

Please sign in to comment.