pantry/projects/giflib.sourceforge.io/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

33 lines
669 B
YAML

distributable:
url: https://downloads.sourceforge.net/project/giflib/giflib-{{version}}.tar.gz
strip-components: 1
versions:
url: https://sourceforge.net/projects/giflib/files
match: /giflib-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /giflib-/
- /\.tar\.gz/
build:
dependencies:
gnu.org/patch: '*'
script: |
if test {{ hw.platform }} = "darwin"; then
# needed to work on macOS
patch -p0 < props/Makefile.patch
fi
make --jobs {{ hw.concurrency }} all
make install PREFIX="{{ prefix }}"
test:
giftext fixture.gif
provides:
- bin/gif2rgb
- bin/gifbuild
- bin/gifclrmp
- bin/giffix
- bin/giftext
- bin/giftool