1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

Ports: Add libgd

Required for npiet port
This commit is contained in:
Noah Rosamilia 2022-01-06 18:27:35 -05:00 committed by Andreas Kling
parent 0631d3fed5
commit e570f9abc5
3 changed files with 20 additions and 0 deletions

View file

@ -77,6 +77,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`libexpat`](libexpat/) | Expat | 2.2.9 | https://libexpat.github.io/ |
| [`libffi`](libffi/) | libffi | 3.4.2 | https://www.sourceware.org/libffi/ |
| [`libgcrypt`](libgcrypt/) | libgcrypt | 1.9.2 | https://gnupg.org/software/libgcrypt/index.html |
| [`libgd`](libgd/) | libgd | 2.3.3 | https://libgd.github.io/ |
| [`libgpg-error`](libgpg-error/) | libgpg-error | 1.42 | https://gnupg.org/software/libgpg-error/index.html |
| [`libiconv`](libiconv/) | GNU libiconv | 1.16 | https://www.gnu.org/software/libiconv/ |
| [`libicu`](libicu/) | ICU | 69.1 | http://site.icu-project.org/ |

7
Ports/libgd/package.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=libgd
version=2.3.3
useconfigure=true
files="https://github.com/libgd/libgd/releases/download/gd-${version}/libgd-${version}.tar.gz libgd-${version}.tar.gz dd3f1f0bb016edcc0b2d082e8229c822ad1d02223511997c80461481759b1ed2"
auth_type=sha256
depends=("libpng")

View file

@ -0,0 +1,12 @@
diff -ruN libgd-2.3.3/config/config.sub libgd-2.3.3.patched/config/config.sub
--- libgd-2.3.3/config/config.sub 2021-09-11 01:12:11.000000000 -0400
+++ libgd-2.3.3.patched/config/config.sub 2022-01-05 15:38:17.115307773 -0500
@@ -1390,7 +1390,7 @@
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
| -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
- | -midnightbsd*)
+ | -midnightbsd* | -serenity*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)