MiniUPnPc: bump to version 2.1. (#2279)

This commit is contained in:
miqlas
2018-07-04 15:16:38 +02:00
committed by fbrosson
parent 396d256ae6
commit 74071c6422
2 changed files with 37 additions and 24 deletions

View File

@@ -3,20 +3,25 @@ DESCRIPTION="The usage of the miniUPnP client library is useful whenever an \
application needs to listen for incoming connections.
Examples : P2P applications, FTP clients for active mode, IRC (for DCC)
or IM applications, network games, any server."
HOMEPAGE="http://miniupnp.free.fr"
COPYRIGHT="2005-2016 Thomas Bernard"
HOMEPAGE="http://miniupnp.free.fr/
https://miniupnp.tuxfamily.org/"
COPYRIGHT="2005-2018 Thomas Bernard"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://miniupnp.free.fr/files/miniupnpc-$portVersion.tar.gz"
CHECKSUM_SHA256='148517020581260c8a2fa532224870bc53e59004777affcaf27ef636a72825d4'
SOURCE_URI="http://miniupnp.free.fr/files/miniupnpc-$portVersion.tar.gz
https://miniupnp.tuxfamily.org/files/miniupnpc-$portVersion.tar.gz"
CHECKSUM_SHA256='e19fb5e01ea5a707e2a8cb96f537fbd9f3a913d53d804a3265e3aeab3d2064c6'
PATCHES="miniupnpc-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion=2.1
libVersionCompat="$libVersion compat >= 17"
PROVIDES="
miniupnpc$secondaryArchSuffix = $portVersion
lib:libminiupnpc$secondaryArchSuffix = 2.0.0 compat >= 2
lib:libminiupnpc$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -24,7 +29,7 @@ REQUIRES="
PROVIDES_devel="
miniupnpc${secondaryArchSuffix}_devel = $portVersion
devel:libminiupnpc$secondaryArchSuffix = 2.0.0 compat >= 2
devel:libminiupnpc$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
miniupnpc$secondaryArchSuffix == $portVersion base
@@ -34,9 +39,9 @@ BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:cmake
cmd:make
cmd:gcc$secondaryArchSuffix
"
BUILD()
@@ -46,6 +51,8 @@ BUILD()
-DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_BUILD_TYPE=release \
-Wno-dev \
-DUPNPC_BUILD_TESTS=OFF \
-DUPNPC_BUILD_SAMPLE=OFF \
..
make $jobArgs
}
@@ -68,3 +75,9 @@ INSTALL()
packageEntries devel \
$developDir
}
TEST()
{
cd build
# make check #currently broken
}

View File

@@ -5,12 +5,12 @@ Subject: Haiku got no IP_MREQN
diff --git a/minissdpc.c b/minissdpc.c
index 3479de8..8d9aebc 100644
index 35128a0..9b5ec9a 100644
--- a/minissdpc.c
+++ b/minissdpc.c
@@ -67,7 +67,7 @@ struct sockaddr_un {
#define PRINT_SOCKET_ERROR(x) perror(x)
#endif
@@ -62,7 +62,7 @@ struct sockaddr_un {
#include "miniupnpc_socketdef.h"
-#if !defined(__DragonFly__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__sun) && !defined(__GNU__) && !defined(__FreeBSD_kernel__)
+#if !defined(__DragonFly__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__sun) && !defined(__GNU__) && !defined(__FreeBSD_kernel__) && !defined(__HAIKU__)
@@ -18,7 +18,7 @@ index 3479de8..8d9aebc 100644
#endif
--
2.14.2
2.16.4
From 6469b592119544458368771223bfbf58ae8e8b7c Mon Sep 17 00:00:00 2001
@@ -28,10 +28,10 @@ Subject: On Haiku SIOCGIFADDR lives in sys/sockio.h
diff --git a/minissdpc.c b/minissdpc.c
index 8d9aebc..f492a27 100644
index 9b5ec9a..c58acc1 100644
--- a/minissdpc.c
+++ b/minissdpc.c
@@ -75,6 +75,8 @@ struct sockaddr_un {
@@ -70,6 +70,8 @@ struct sockaddr_un {
#include <sys/ioctl.h>
#if defined(__sun)
#include <sys/sockio.h>
@@ -41,7 +41,7 @@ index 8d9aebc..f492a27 100644
#endif
--
2.14.2
2.16.4
From ced64c1ef646fdce2a7a674514a4fba93ba33e0c Mon Sep 17 00:00:00 2001
@@ -98,7 +98,7 @@ index d1954f5..ac0ced7 100644
default:
break;
--
2.14.2
2.16.4
From adbacfa365ac35160e44a485b50c5113301eb859 Mon Sep 17 00:00:00 2001
@@ -108,12 +108,12 @@ Subject: Haiku got networking stuffs in -lnetwork
diff --git a/CMakeLists.txt b/CMakeLists.txt
index adb30ef..28ec485 100644
index c1061b1..83f197e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,6 +106,10 @@ if (WIN32)
# set (LDLIBS ${SOCKET_LIBRARY} ${NSL_LIBRARY} ${RESOLV_LIBRARY} ${LDLIBS})
endif (WIN32)
@@ -11,6 +11,10 @@ option (UPNPC_BUILD_TESTS "Build test executables" TRUE)
option (UPNPC_BUILD_SAMPLE "Build sample executables" TRUE)
option (NO_GETADDRINFO "Define NO_GETADDRINFO" FALSE)
+if (HAIKU)
+ list(APPEND LDLIBS -lnetwork)
@@ -121,7 +121,7 @@ index adb30ef..28ec485 100644
+
if (NOT UPNPC_BUILD_STATIC AND NOT UPNPC_BUILD_SHARED)
message (FATAL "Both shared and static libraries are disabled!")
endif (NOT UPNPC_BUILD_STATIC AND NOT UPNPC_BUILD_SHARED)
endif ()
--
2.14.2
2.16.4