summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-06-16 22:55:56 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-17 21:53:28 +0100
commit709f0a2ab32d0695d196136d4692695d2d62f768 (patch)
tree5752b21c1893b58b51f46d060d3b620d5fd364b2
parent96180fc2d94089a07f3b06c03c0252cfe5d33a0f (diff)
downloadserenity-709f0a2ab32d0695d196136d4692695d2d62f768.zip
Ports: Add OptiPNG
OptiPNG is a neat little tool that optimizes PNG sizes to ridiculous degrees. We like to use it to optimize PNGs before including them in Serenity itself, so it's a nice port to have. OptiPNG is a very cooperative POSIX C program, it compiles and works without any patching on x86_64 and i686 :^)
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/optipng/package.sh11
2 files changed, 12 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index f7dbfdafa6..d25ff22de4 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -170,6 +170,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`opentyrian`](opentyrian/) | OpenTyrian | 84b820f | https://github.com/opentyrian/opentyrian |
| [`opentyrian-data`](opentyrian-data/) | OpenTyrian graphics and audio | 1.0.0 | https://camanis.net/tyrian/tyrian21.zip |
| [`opfor`](opfor/) | Half-Life: Opposing Force | 2022.05.01 | https://github.com/FWGS/hlsdk-xash3d |
+| [`optipng`](optipng/) | OptiPNG | 0.7.7 | http://optipng.sourceforge.net/ |
| [`p7zip`](p7zip/) | p7zip | 17.04 | https://github.com/jinfeihan57/p7zip |
| [`patch`](patch/) | patch (GNU) | 2.7.6 | https://savannah.gnu.org/projects/patch/ |
| [`pcre`](pcre/) | Perl-compatible Regular Expressions (PCRE) | 8.45 | https://www.pcre.org/ |
diff --git a/Ports/optipng/package.sh b/Ports/optipng/package.sh
new file mode 100755
index 0000000000..3aad5767d2
--- /dev/null
+++ b/Ports/optipng/package.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+
+port='optipng'
+version='0.7.7'
+files="http://downloads.sourceforge.net/optipng/optipng-${version}.tar.gz optipng-${version}.tar.gz 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452"
+auth_type='sha256'
+useconfigure='true'
+
+configure() {
+ run ./configure
+}