summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorjonno85uk <jonnobleuk@gmail.com>2021-02-17 21:54:04 +0000
committerGitHub <noreply@github.com>2021-02-17 22:54:04 +0100
commit6e1117a688385bb509900a2fcb985e2974061b20 (patch)
tree2dedaa8f8bd8bd720c65fcf970feda3e6b74dd38 /Ports
parentfe266e03b6954f3eb8ee8994445498db299cff67 (diff)
downloadserenity-6e1117a688385bb509900a2fcb985e2974061b20.zip
Ports: Add libtiff (#5383)
Diffstat (limited to 'Ports')
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/libtiff/package.sh9
-rw-r--r--Ports/libtiff/patches/system-detect.patch11
3 files changed, 21 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index e8e37b7be7..9cc3f768f1 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -35,6 +35,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`libffi`](libffi/) | libffi | 3.3 | https://www.sourceware.org/libffi/ |
| [`libiconv`](libiconv/) | GNU libiconv | 1.16 | https://www.gnu.org/software/libiconv/ |
| [`libpuffy`](libpuffy/) | libpuffy | 1.0 | https://github.com/ibara/libpuffy |
+| [`libtiff`](libtiff/) | libtiff | 4.2.0 | http://www.libtiff.org/ |
| [`links`](links/) | Links web browser | 2.19 | http://links.twibright.com/ |
| [`lua`](lua/) | Lua | 5.3.5 | https://www.lua.org/ |
| [`m4`](m4/) | GNU M4 | 1.4.9 | https://www.gnu.org/software/m4/ |
diff --git a/Ports/libtiff/package.sh b/Ports/libtiff/package.sh
new file mode 100755
index 0000000000..258cb25f10
--- /dev/null
+++ b/Ports/libtiff/package.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=tiff
+version=4.2.0
+useconfigure=true
+files="http://download.osgeo.org/libtiff/tiff-${version}.tar.gz tiff-${version}.tar.gz
+http://download.osgeo.org/libtiff/tiff-${version}.tar.gz.sig tiff-${version}.tar.gz.sig"
+auth_type="sig"
+auth_import_key="EBDFDB21B020EE8FD151A88DE301047DE1198975"
+auth_opts="tiff-${version}.tar.gz.sig tiff-${version}.tar.gz"
diff --git a/Ports/libtiff/patches/system-detect.patch b/Ports/libtiff/patches/system-detect.patch
new file mode 100644
index 0000000000..2feb9db5c1
--- /dev/null
+++ b/Ports/libtiff/patches/system-detect.patch
@@ -0,0 +1,11 @@
+--- tiff-4.2.0/config/config.sub.orig 2021-02-16 23:55:55.240259207 +0000
++++ tiff-4.2.0/config/config.sub 2021-02-16 23:55:59.792227377 +0000
+@@ -1393,7 +1393,7 @@
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos* | -serenity* )
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)