mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
MiniUPnPc: bump to version 2.1. (#2279)
This commit is contained in:
@@ -3,20 +3,25 @@ DESCRIPTION="The usage of the miniUPnP client library is useful whenever an \
|
|||||||
application needs to listen for incoming connections.
|
application needs to listen for incoming connections.
|
||||||
Examples : P2P applications, FTP clients for active mode, IRC (for DCC)
|
Examples : P2P applications, FTP clients for active mode, IRC (for DCC)
|
||||||
or IM applications, network games, any server."
|
or IM applications, network games, any server."
|
||||||
HOMEPAGE="http://miniupnp.free.fr"
|
HOMEPAGE="http://miniupnp.free.fr/
|
||||||
COPYRIGHT="2005-2016 Thomas Bernard"
|
https://miniupnp.tuxfamily.org/"
|
||||||
|
COPYRIGHT="2005-2018 Thomas Bernard"
|
||||||
LICENSE="BSD (3-clause)"
|
LICENSE="BSD (3-clause)"
|
||||||
REVISION="1"
|
REVISION="1"
|
||||||
SOURCE_URI="http://miniupnp.free.fr/files/miniupnpc-$portVersion.tar.gz"
|
SOURCE_URI="http://miniupnp.free.fr/files/miniupnpc-$portVersion.tar.gz
|
||||||
CHECKSUM_SHA256='148517020581260c8a2fa532224870bc53e59004777affcaf27ef636a72825d4'
|
https://miniupnp.tuxfamily.org/files/miniupnpc-$portVersion.tar.gz"
|
||||||
|
CHECKSUM_SHA256='e19fb5e01ea5a707e2a8cb96f537fbd9f3a913d53d804a3265e3aeab3d2064c6'
|
||||||
PATCHES="miniupnpc-$portVersion.patchset"
|
PATCHES="miniupnpc-$portVersion.patchset"
|
||||||
|
|
||||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||||
SECONDARY_ARCHITECTURES="?x86"
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
libVersion=2.1
|
||||||
|
libVersionCompat="$libVersion compat >= 17"
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
miniupnpc$secondaryArchSuffix = $portVersion
|
miniupnpc$secondaryArchSuffix = $portVersion
|
||||||
lib:libminiupnpc$secondaryArchSuffix = 2.0.0 compat >= 2
|
lib:libminiupnpc$secondaryArchSuffix = $libVersionCompat
|
||||||
"
|
"
|
||||||
REQUIRES="
|
REQUIRES="
|
||||||
haiku$secondaryArchSuffix
|
haiku$secondaryArchSuffix
|
||||||
@@ -24,7 +29,7 @@ REQUIRES="
|
|||||||
|
|
||||||
PROVIDES_devel="
|
PROVIDES_devel="
|
||||||
miniupnpc${secondaryArchSuffix}_devel = $portVersion
|
miniupnpc${secondaryArchSuffix}_devel = $portVersion
|
||||||
devel:libminiupnpc$secondaryArchSuffix = 2.0.0 compat >= 2
|
devel:libminiupnpc$secondaryArchSuffix = $libVersionCompat
|
||||||
"
|
"
|
||||||
REQUIRES_devel="
|
REQUIRES_devel="
|
||||||
miniupnpc$secondaryArchSuffix == $portVersion base
|
miniupnpc$secondaryArchSuffix == $portVersion base
|
||||||
@@ -34,9 +39,9 @@ BUILD_REQUIRES="
|
|||||||
haiku${secondaryArchSuffix}_devel
|
haiku${secondaryArchSuffix}_devel
|
||||||
"
|
"
|
||||||
BUILD_PREREQUIRES="
|
BUILD_PREREQUIRES="
|
||||||
cmd:gcc$secondaryArchSuffix
|
|
||||||
cmd:cmake
|
cmd:cmake
|
||||||
cmd:make
|
cmd:make
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
@@ -46,6 +51,8 @@ BUILD()
|
|||||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||||
-DCMAKE_BUILD_TYPE=release \
|
-DCMAKE_BUILD_TYPE=release \
|
||||||
-Wno-dev \
|
-Wno-dev \
|
||||||
|
-DUPNPC_BUILD_TESTS=OFF \
|
||||||
|
-DUPNPC_BUILD_SAMPLE=OFF \
|
||||||
..
|
..
|
||||||
make $jobArgs
|
make $jobArgs
|
||||||
}
|
}
|
||||||
@@ -68,3 +75,9 @@ INSTALL()
|
|||||||
packageEntries devel \
|
packageEntries devel \
|
||||||
$developDir
|
$developDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST()
|
||||||
|
{
|
||||||
|
cd build
|
||||||
|
# make check #currently broken
|
||||||
|
}
|
||||||
@@ -5,12 +5,12 @@ Subject: Haiku got no IP_MREQN
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/minissdpc.c b/minissdpc.c
|
diff --git a/minissdpc.c b/minissdpc.c
|
||||||
index 3479de8..8d9aebc 100644
|
index 35128a0..9b5ec9a 100644
|
||||||
--- a/minissdpc.c
|
--- a/minissdpc.c
|
||||||
+++ b/minissdpc.c
|
+++ b/minissdpc.c
|
||||||
@@ -67,7 +67,7 @@ struct sockaddr_un {
|
@@ -62,7 +62,7 @@ struct sockaddr_un {
|
||||||
#define PRINT_SOCKET_ERROR(x) perror(x)
|
|
||||||
#endif
|
#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__)
|
||||||
+#if !defined(__DragonFly__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__sun) && !defined(__GNU__) && !defined(__FreeBSD_kernel__) && !defined(__HAIKU__)
|
+#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
|
#endif
|
||||||
|
|
||||||
--
|
--
|
||||||
2.14.2
|
2.16.4
|
||||||
|
|
||||||
|
|
||||||
From 6469b592119544458368771223bfbf58ae8e8b7c Mon Sep 17 00:00:00 2001
|
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
|
diff --git a/minissdpc.c b/minissdpc.c
|
||||||
index 8d9aebc..f492a27 100644
|
index 9b5ec9a..c58acc1 100644
|
||||||
--- a/minissdpc.c
|
--- a/minissdpc.c
|
||||||
+++ b/minissdpc.c
|
+++ b/minissdpc.c
|
||||||
@@ -75,6 +75,8 @@ struct sockaddr_un {
|
@@ -70,6 +70,8 @@ struct sockaddr_un {
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#if defined(__sun)
|
#if defined(__sun)
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
@@ -41,7 +41,7 @@ index 8d9aebc..f492a27 100644
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
--
|
--
|
||||||
2.14.2
|
2.16.4
|
||||||
|
|
||||||
|
|
||||||
From ced64c1ef646fdce2a7a674514a4fba93ba33e0c Mon Sep 17 00:00:00 2001
|
From ced64c1ef646fdce2a7a674514a4fba93ba33e0c Mon Sep 17 00:00:00 2001
|
||||||
@@ -98,7 +98,7 @@ index d1954f5..ac0ced7 100644
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
--
|
--
|
||||||
2.14.2
|
2.16.4
|
||||||
|
|
||||||
|
|
||||||
From adbacfa365ac35160e44a485b50c5113301eb859 Mon Sep 17 00:00:00 2001
|
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
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index adb30ef..28ec485 100644
|
index c1061b1..83f197e 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -106,6 +106,10 @@ if (WIN32)
|
@@ -11,6 +11,10 @@ option (UPNPC_BUILD_TESTS "Build test executables" TRUE)
|
||||||
# set (LDLIBS ${SOCKET_LIBRARY} ${NSL_LIBRARY} ${RESOLV_LIBRARY} ${LDLIBS})
|
option (UPNPC_BUILD_SAMPLE "Build sample executables" TRUE)
|
||||||
endif (WIN32)
|
option (NO_GETADDRINFO "Define NO_GETADDRINFO" FALSE)
|
||||||
|
|
||||||
+if (HAIKU)
|
+if (HAIKU)
|
||||||
+ list(APPEND LDLIBS -lnetwork)
|
+ list(APPEND LDLIBS -lnetwork)
|
||||||
@@ -121,7 +121,7 @@ index adb30ef..28ec485 100644
|
|||||||
+
|
+
|
||||||
if (NOT UPNPC_BUILD_STATIC AND NOT UPNPC_BUILD_SHARED)
|
if (NOT UPNPC_BUILD_STATIC AND NOT UPNPC_BUILD_SHARED)
|
||||||
message (FATAL "Both shared and static libraries are disabled!")
|
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
|
||||||
|
|
||||||
Reference in New Issue
Block a user