From 0cdb1a16e88dd7c628644a9b3c2ad364a62ab685 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 6 Aug 2023 11:24:35 -0400 Subject: [PATCH] +optipng --- projects/sf.net/optipng/package.yml | 30 ++++++++++++++++++++++++++++ projects/sf.net/optipng/test.png | Bin 0 -> 82 bytes 2 files changed, 30 insertions(+) create mode 100644 projects/sf.net/optipng/package.yml create mode 100644 projects/sf.net/optipng/test.png 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 0000000000000000000000000000000000000000..18d7a15a9b6204ab5ba01cc1855ae91624fcb1a4 GIT binary patch literal 82 zcmeAS@N?(olHy`uVBq!ia0vp^93afd3?%;@)Hwm9m;-!5Tp1YtcU4>p2XeVQT^vI= cWRo3$N(2}fXF7A91d1|vy85}Sb4q9e0Bvv(uK)l5 literal 0 HcmV?d00001