From 4e1a6f1b3c543b9fbeb882a9e97551f7c58ca65a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Dec 2023 18:36:02 +0100 Subject: ports: curl :^) had to do a lot of hacky stuff, but it's there. worked on this on and off for a while now --- ports/curl/patches/0-autoconf.patch | 10 ++++++++++ ports/curl/patches/1-includes.patch | 10 ++++++++++ ports/curl/port | 22 ++++++++++++++++++++++ ports/curl/sha256sums | 1 + ports/pre | 2 +- 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 ports/curl/patches/0-autoconf.patch create mode 100644 ports/curl/patches/1-includes.patch create mode 100755 ports/curl/port create mode 100644 ports/curl/sha256sums (limited to 'ports') 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 + #endif ++#include + + /* + * 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 diff --git a/ports/pre b/ports/pre index fd77784..c30ddd8 100644 --- a/ports/pre +++ b/ports/pre @@ -39,7 +39,7 @@ patch() { if test -d $portdir/patches/; then for patch in $portdir/patches/*; do echo $patch - command patch -d $tarball_dir/ <$patch + command patch -p0 -d $tarball_dir/ <$patch done fi post_patch -- cgit v1.2.3