axel, bump version, add support for x86 secondary arch (#2636)

This commit is contained in:
Schrijvers Luc
2018-06-04 03:16:57 +02:00
committed by fbrosson
parent 3582a04140
commit c4b22f2b30
2 changed files with 29 additions and 26 deletions

View File

@@ -7,33 +7,37 @@ HOMEPAGE="https://github.com/axel-download-accelerator/axel/"
COPYRIGHT="2001-2007 Wilmer van der Gaast,
2007-2009 Giridhar Appaji Nag,
2008-2010 Philipp Hagemeister,
2015-2016 Joao Eriberto Mota Filho,
2016 Stephen Thirlwall, and others."
2015-2017 Joao Eriberto Mota Filho,
2016-2017 Stephen Thirlwall,
2017 Ismael Luceno,
2017 Antonio Quartulli, and others."
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/axel-download-accelerator/axel/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="0e223f18954e4c6c34b882a474c526b9c7d107168220c2f3892598248236a172"
CHECKSUM_SHA256="64529add74df3db828f704b42d4ec3fcdacb8142c84f051f9213637c337e706c"
SOURCE_FILENAME="axel-$portVersion.tar.gz"
PATCHES="axel-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
axel = $portVersion
cmd:axel = $portVersion
axel$secondaryArchSuffix = $portVersion
cmd:axel$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku
lib:libcrypto
lib:libintl
lib:libssl
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku_devel
devel:libcrypto
devel:libiconv
devel:libgettextlib
devel:libssl
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
@@ -41,10 +45,10 @@ BUILD_PREREQUIRES="
cmd:autoconf
cmd:awk
cmd:find
cmd:gcc
cmd:gettext
cmd:gcc$secondaryArchSuffix
cmd:gettext$secondaryArchSuffix
cmd:make
cmd:pkg_config
cmd:pkg_config$secondaryArchSuffix
"
BUILD()

View File

@@ -5,20 +5,19 @@ Subject: Fix for Haiku
diff --git a/src/tcp.c b/src/tcp.c
index 0fa13b3..c41993a 100644
index 6be557b..1c3f4b4 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -40,6 +40,10 @@
#include "axel.h"
@@ -47,6 +47,9 @@
#include <netdb.h>
#include <sys/ioctl.h>
+#ifdef __HAIKU__
+#include <sys/sockio.h>
+#endif
+
static void
tcp_error(char *buffer, char *hostname, int port, const char *reason)
{
--
2.14.2
@@ -30,10 +29,10 @@ Subject: Haiku specific lib
diff --git a/configure.ac b/configure.ac
index 2c2d592..3d97469 100644
index 9a311db..5c1cdad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,9 @@ HP-UX )
@@ -117,6 +117,9 @@ HP-UX )
fi
LDFLAGS="$LDFLAGS $AXEL_EXTRA_FLAGS -lpthread"
;;