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

35 lines
837 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://cytranet.dl.sourceforge.net/project/libpng/libpng{{ version.major }}{{ version.minor }}/{{ version }}/libpng-{{ version }}.tar.xz
#FIXME our linux docker image TLS doesnt like this URL
# url: https://downloads.sourceforge.net/project/libpng/libpng{{ version.major }}{{ version.minor }}/{{ version }}/libpng-{{ version }}.tar.xz
strip-components: 1
versions:
github: glennrp/libpng/tags
strip: /^v/
dependencies:
zlib.net: 1
build:
dependencies:
script: |-
./configure \
--disable-dependency-tracking \
--disable-silent-rules \
--prefix {{ prefix }}
make --jobs {{ hw.concurrency }}
make install
test:
dependencies:
script: |
cc test.c -lpng
./a.out
provides:
- bin/libpng-config
- bin/libpng16-config
- bin/png-fix-itxt
- bin/pngfix