Ports: Add libxml2
This commit is contained in:
parent
60298121d8
commit
93e605e415
Notes:
sideshowbarker
2024-07-18 16:54:11 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/93e605e415c Pull-request: https://github.com/SerenityOS/serenity/pull/7778
4 changed files with 41 additions and 0 deletions
|
@ -68,6 +68,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
|
|||
| [`libtiff`](libtiff/) | libtiff | 4.2.0 | http://www.libtiff.org/ |
|
||||
| [`libtool`](libtool/) | libtool | 2.4 | https://www.gnu.org/software/libtool/ |
|
||||
| [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis |
|
||||
| [`libxml2`](libxml2/) | libxml2 | 2.9.12 | http://www.xmlsoft.org/ |
|
||||
| [`libzip`](libzip/) | libzip | 1.7.3 | https://libzip.org/ |
|
||||
| [`links`](links/) | Links web browser | 2.22 | http://links.twibright.com/ |
|
||||
| [`lua`](lua/) | Lua | 5.3.5 | https://www.lua.org/ |
|
||||
|
|
16
Ports/libxml2/package.sh
Executable file
16
Ports/libxml2/package.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=libxml2
|
||||
useconfigure="true"
|
||||
version="2.9.12"
|
||||
files="ftp://xmlsoft.org/libxml2/libxml2-${version}.tar.gz libxml2-${version}.tar.gz c8d6681e38c56f172892c85ddc0852e1fd4b53b4209e7f4ebf17f7e2eae71d92"
|
||||
auth_type=sha256
|
||||
depends="libiconv"
|
||||
configopts="--prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
||||
|
||||
install() {
|
||||
# Leave out DESTDIR - otherwise the prefix breaks
|
||||
run make install
|
||||
|
||||
# Link shared library
|
||||
run ${SERENITY_ARCH}-pc-serenity-gcc -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.so -Wl,-soname,libxml2.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.a -Wl,--no-whole-archive
|
||||
}
|
11
Ports/libxml2/patches/config.sub.patch
Normal file
11
Ports/libxml2/patches/config.sub.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- libxml2-2.9.12/config.sub 2021-05-13 20:54:55.000000000 +0200
|
||||
+++ libxml2-2.9.12-patched/config.sub 2021-06-04 14:55:35.184278060 +0200
|
||||
@@ -1360,7 +1360,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*)
|
13
Ports/libxml2/patches/nanohttp.c.patch
Normal file
13
Ports/libxml2/patches/nanohttp.c.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- libxml2-2.9.12/nanohttp.c 2020-07-17 17:18:23.000000000 +0200
|
||||
+++ libxml2-2.9.12-patched/nanohttp.c 2021-06-04 14:56:42.336021798 +0200
|
||||
@@ -121,6 +121,10 @@
|
||||
#define XML_NANO_HTTP_READ 2
|
||||
#define XML_NANO_HTTP_NONE 4
|
||||
|
||||
+#ifndef ESHUTDOWN
|
||||
+#define ESHUTDOWN ENOTCONN
|
||||
+#endif
|
||||
+
|
||||
typedef struct xmlNanoHTTPCtxt {
|
||||
char *protocol; /* the protocol name */
|
||||
char *hostname; /* the host name */
|
Loading…
Add table
Reference in a new issue