summaryrefslogtreecommitdiff
path: root/ports/curl
diff options
context:
space:
mode:
Diffstat (limited to 'ports/curl')
-rw-r--r--ports/curl/patches/0-autoconf.patch10
-rw-r--r--ports/curl/patches/1-includes.patch10
-rwxr-xr-xports/curl/port22
-rw-r--r--ports/curl/sha256sums1
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