diff options
author | dzwdz | 2023-12-25 18:36:02 +0100 |
---|---|---|
committer | dzwdz | 2023-12-25 18:36:02 +0100 |
commit | 4e1a6f1b3c543b9fbeb882a9e97551f7c58ca65a (patch) | |
tree | 8c2048c751db8b98e3033a61b6ad5bbd11a303a9 /ports/curl | |
parent | 64d4330810a37dd9c41a82ae6cc420850ca1e7da (diff) |
ports: curl :^)
had to do a lot of hacky stuff, but it's there.
worked on this on and off for a while now
Diffstat (limited to 'ports/curl')
-rw-r--r-- | ports/curl/patches/0-autoconf.patch | 10 | ||||
-rw-r--r-- | ports/curl/patches/1-includes.patch | 10 | ||||
-rwxr-xr-x | ports/curl/port | 22 | ||||
-rw-r--r-- | ports/curl/sha256sums | 1 |
4 files changed, 43 insertions, 0 deletions
diff --git a/ports/curl/patches/0-autoconf.patch b/ports/curl/patches/0-autoconf.patch new file mode 100644 index 0000000..25ab95f --- /dev/null +++ b/ports/curl/patches/0-autoconf.patch @@ -0,0 +1,10 @@ +--- config.sub.orig 2023-11-20 20:42:24.667820565 +0100 ++++ config.sub 2023-11-20 20:42:38.215040191 +0100 +@@ -1754,6 +1754,7 @@ + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ ++ | camellia* \ + | fiwix* ) + ;; + # This one is extra strict with allowed versions diff --git a/ports/curl/patches/1-includes.patch b/ports/curl/patches/1-includes.patch new file mode 100644 index 0000000..009ef5c --- /dev/null +++ b/ports/curl/patches/1-includes.patch @@ -0,0 +1,10 @@ +--- lib/select.h.orig 2023-11-20 23:12:27.240289500 +0100 ++++ lib/select.h 2023-11-20 23:12:38.096619073 +0100 +@@ -31,6 +31,7 @@ + #elif defined(HAVE_SYS_POLL_H) + #include <sys/poll.h> + #endif ++#include <sys/select.h> + + /* + * Definition of pollfd struct and constants for platforms lacking them. diff --git a/ports/curl/port b/ports/curl/port new file mode 100755 index 0000000..befd017 --- /dev/null +++ b/ports/curl/port @@ -0,0 +1,22 @@ +#!/bin/sh +. ports/pre + +pkg=curl +tarball=curl-8.4.0.tar.gz +tarball_dir=curl-8.4.0 +url=https://curl.se/download/${tarball} + +configure() { + test -e $tarball_dir/configured && return + (cd $tarball_dir && CFLAGS=-g ./configure \ + --host=x86_64-camellia \ + --without-ssl \ + --disable-threaded-resolver \ + --disable-ipv6 \ + --disable-tftp \ + 'ac_cv_header_termios_h=no' + ) + touch $tarball_dir/configured +} + +. ports/post diff --git a/ports/curl/sha256sums b/ports/curl/sha256sums new file mode 100644 index 0000000..1b0bc2a --- /dev/null +++ b/ports/curl/sha256sums @@ -0,0 +1 @@ +816e41809c043ff285e8c0f06a75a1fa250211bbfb2dc0a037eeef39f1a9e427 curl-8.4.0.tar.gz |