summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-10-04 08:18:57 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-10-04 09:18:57 +0200
commit4288cfa65aaad41473e26cbcc64bae4a36f77592 (patch)
tree441c706ce1acc8a88353c161b60a8f3dcbd5725b
parentd68c1effcb874f0d0180447e62d2336edac73589 (diff)
downloadserenity-4288cfa65aaad41473e26cbcc64bae4a36f77592.zip
Ports: Add expat port (#628)
-rw-r--r--Ports/libexpat/fix-autoconf.patch19
-rwxr-xr-xPorts/libexpat/package.sh12
2 files changed, 31 insertions, 0 deletions
diff --git a/Ports/libexpat/fix-autoconf.patch b/Ports/libexpat/fix-autoconf.patch
new file mode 100644
index 0000000000..8d5d03d2a3
--- /dev/null
+++ b/Ports/libexpat/fix-autoconf.patch
@@ -0,0 +1,19 @@
+--- conftools/config.sub.orig 2019-10-03 23:14:02.281000072 +0100
++++ conftools/config.sub 2019-10-03 23:14:36.896816822 +0100
+@@ -2,7 +2,7 @@
+ # Configuration validation subroutine script.
+ # Copyright 1992-2018 Free Software Foundation, Inc.
+
+-timestamp='2018-02-22'
++timestamp='2019-10-03'
+
+ # This file is free software; you can redistribute it and/or modify it
+ # under the terms of the GNU General Public License as published by
+@@ -1364,6 +1364,7 @@
+ # Each alternative MUST end in a * to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
++ | -serenity* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+ | -sym* | -kopensolaris* | -plan9* \
diff --git a/Ports/libexpat/package.sh b/Ports/libexpat/package.sh
new file mode 100755
index 0000000000..68c9d14695
--- /dev/null
+++ b/Ports/libexpat/package.sh
@@ -0,0 +1,12 @@
+#!/bin/bash ../.port_include.sh
+port=libexpat
+version=2.2.9
+useconfigure=true
+files="https://codeload.github.com/libexpat/libexpat/tar.gz/R_2_2_9 expat-2.2.9.tar.gz"
+workdir=libexpat-R_2_2_9/expat/
+
+configure() {
+ run ./buildconf.sh
+ run patch -p 0 < fix-autoconf.patch
+ run ./"$configscript" --host=i686-pc-serenity $configopts
+}