diff --git a/projects/sf.net/optipng/package.yml b/projects/sf.net/optipng/package.yml new file mode 100644 index 00000000..870d4f4a --- /dev/null +++ b/projects/sf.net/optipng/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-{{version}}/optipng-{{version}}.tar.gz + strip-components: 1 + +versions: + url: https://sourceforge.net/projects/optipng/files/OptiPNG/ + match: /optipng-\d+.\d+\.\d+/ + strip: + - /^optipng-/ + +dependencies: + libpng.org: ^1 + zlib.net: ^1 + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: + - ./configure + --with-system-zlib + --with-system-libpng + --prefix={{prefix}} + - make --jobs {{ hw.concurrency }} install + +provides: + - bin/optipng + +test: + optipng -simulate test.png diff --git a/projects/sf.net/optipng/test.png b/projects/sf.net/optipng/test.png new file mode 100644 index 00000000..18d7a15a Binary files /dev/null and b/projects/sf.net/optipng/test.png differ