mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +03:00
4243193f96
closes #3296
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
distributable:
|
|
url: https://download.osgeo.org/libtiff/tiff-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://download.osgeo.org/libtiff/
|
|
match: /tiff-(\d+\.\d+\.\d+)\.tar\.gz/
|
|
strip:
|
|
- /tiff-/
|
|
- /.tar.gz/
|
|
|
|
dependencies:
|
|
facebook.com/zstd: ^1
|
|
libjpeg-turbo.org: ^2
|
|
zlib.net: ^1
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
script: |
|
|
./configure $ARGS
|
|
make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
ARGS:
|
|
- --prefix={{prefix}}
|
|
- --enable-zstd
|
|
- --disable-dependency-tracking
|
|
- --disable-lzma
|
|
- --disable-webp
|
|
- --with-jpeg-include-dir={{deps.libjpeg-turbo.org.prefix}}/include
|
|
- --with-jpeg-lib-dir={{deps.libjpeg-turbo.org.prefix}}/lib
|
|
- --without-x
|
|
|
|
provides:
|
|
- bin/tiffcp
|
|
- bin/tiffdump
|
|
- bin/tiffinfo
|
|
- bin/tiffset
|
|
- bin/tiffsplit
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
script: |
|
|
mv $FIXTURE test.c
|
|
cc test.c -ltiff
|
|
./a.out fixture.tiff
|
|
tiffdump fixture.tiff
|
|
fixture: |
|
|
#include <tiffio.h>
|
|
int main(int argc, char* argv[]) {
|
|
TIFF *out = TIFFOpen(argv[1], "w");
|
|
TIFFSetField(out, TIFFTAG_IMAGEWIDTH, (uint32) 10);
|
|
TIFFClose(out);
|
|
return 0;
|
|
}
|