From e570f9abc56b84590fff14117dacc85d91c6dab3 Mon Sep 17 00:00:00 2001 From: Noah Rosamilia Date: Thu, 6 Jan 2022 18:27:35 -0500 Subject: [PATCH] Ports: Add libgd Required for npiet port --- Ports/AvailablePorts.md | 1 + Ports/libgd/package.sh | 7 +++++++ Ports/libgd/patches/configure.patch | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100755 Ports/libgd/package.sh create mode 100644 Ports/libgd/patches/configure.patch diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index ac16c314a8..c4d00cc694 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -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/ | diff --git a/Ports/libgd/package.sh b/Ports/libgd/package.sh new file mode 100755 index 0000000000..9b666b0583 --- /dev/null +++ b/Ports/libgd/package.sh @@ -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") diff --git a/Ports/libgd/patches/configure.patch b/Ports/libgd/patches/configure.patch new file mode 100644 index 0000000000..9bca019e10 --- /dev/null +++ b/Ports/libgd/patches/configure.patch @@ -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*)