pantry/projects/simplesystems.org/libtiff/package.yml
Jacob Heider d7adf09a43
replace hardcoded versions (mostly) (#1733)
* update(slirp)

* update(poppler-data)

* update(doxygen)

* update(xcb)

* update(sm)

* update(xdmcp)

* update(ice)

* update(util-macros)

* update(xtrans)

* update(xmu)

* update(xt)

* update(xau)

* update(xrender)

* update(x11)

* update(xcb-proto)

* update(xpm)

* update(xaw)

* update(xorg-protocol)

* update(exts)

* update(lame)

* update(nmap)

* update(cairo)

* update(unicode)

* update(gts)

* update(vim)

* update(libtiff)

* update(lua)

* comment(bpb)

* update(giflib)

* update(gdk-pixbuf)

* update(gobj-intro)

* update(libcap2)

* update(gnuplot)

* update(dav1d)

* update(wumpus)

* update(librist)

* update(subversion)

* comment(jbig2dec)

* update(moreutils)

* update(eigen)

* update(ogg)

* update(musl)

* update(libtool)

* update(isl)

* update(coreutils)

* update(wget)

* update(gmp)

* update(libiconv)

* update(stow)

* update(sed)

* update(gperf)

* update(libunistring)

* update(grep)

* update(patch)

* update(tar)

* update(autoconf)

* update(libgpg-error)

* update(automake)

* update(libksba)

* update(npth)

* update(libgcrypt)

* update(libidn)

* update(libassuan)

* update(gnupg)

* update(libtasn1)

* update(ncdu)

* update(freexl)

* update(nasm)

* update(ffmpeg)

* update(libsodium)

* update(mpg123)

* update(freetype)

* update(dnsmasq)

* update(postgres)

* update(xz)

* update(docutils)

* update(aom)

* update(libssh)

* update(gitlab-cli)

* update(watch)

* update(tree)

* update(c-ares)

* update(mpdecimal)

* update(lzo)

* update(graphviz)

* update(nano)

* update(yasm)

* update(expect)

* update(pcre)

* update(file)

* update(shared-mime-info)

* use `gitlab:` builtin
2023-05-01 13:14:59 -04:00

71 lines
1.4 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/fax2ps
- bin/fax2tiff
- bin/pal2rgb
- bin/ppm2tiff
- bin/raw2tiff
- bin/tiff2bw
- bin/tiff2pdf
- bin/tiff2ps
- bin/tiff2rgba
- bin/tiffcmp
- bin/tiffcp
- bin/tiffcrop
- bin/tiffdither
- bin/tiffdump
- bin/tiffinfo
- bin/tiffmedian
- 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;
}