From e4ad7bc537d305667824d6f7f112055863214592 Mon Sep 17 00:00:00 2001 From: OscarL Date: Sun, 17 Nov 2024 11:16:59 -0300 Subject: [PATCH] libnatpmp: remove older (unused) recipe. (#11346) --- net-libs/libnatpmp/libnatpmp-20140401.recipe | 63 ------------------- .../patches/libnatpmp-20140401.patchset | 63 ------------------- 2 files changed, 126 deletions(-) delete mode 100644 net-libs/libnatpmp/libnatpmp-20140401.recipe delete mode 100644 net-libs/libnatpmp/patches/libnatpmp-20140401.patchset diff --git a/net-libs/libnatpmp/libnatpmp-20140401.recipe b/net-libs/libnatpmp/libnatpmp-20140401.recipe deleted file mode 100644 index 28cfff77e..000000000 --- a/net-libs/libnatpmp/libnatpmp-20140401.recipe +++ /dev/null @@ -1,63 +0,0 @@ -SUMMARY="NAT-PMP client library" -DESCRIPTION=" -libnatpmp is a portable client library implementing the protocol NAT-PMP. It \ -is based on non blocking sockets and all call of the API are asynchronous. -" -HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html" -COPYRIGHT=" - 2007-2009 Thomas Bernard -" -LICENSE="BSD (3-clause)" -REVISION="2" -SOURCE_URI="http://miniupnp.free.fr/files/download.php?file=libnatpmp-$portVersion.tar.gz" -CHECKSUM_SHA256="b2ce5e626a21c795cba2d118f26e54aaa89de29d4611c440fafc49a2a5bedabb" -SOURCE_FILENAME="libnatpmp-$portVersion.tar.gz" -PATCHES="libnatpmp-$portVersion.patchset" - -ARCHITECTURES="all" -SECONDARY_ARCHITECTURES="x86_gcc2 x86" - -PROVIDES=" - libnatpmp$secondaryArchSuffix = $portVersion - cmd:natpmpc - lib:libnatpmp$secondaryArchSuffix = 1 - " -REQUIRES=" - haiku$secondaryArchSuffix - " - -PROVIDES_devel=" - libnatpmp${secondaryArchSuffix}_devel = $portVersion - devel:libnatpmp$secondaryArchSuffix = 1 - " -REQUIRES_devel=" - libnatpmp$secondaryArchSuffix == $portVersion base - " - -BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel - " -BUILD_PREREQUIRES=" - cmd:gcc$secondaryArchSuffix - cmd:ld$secondaryArchSuffix - cmd:make - " - -BUILD() -{ - make $jobArgs -} - -INSTALL() -{ - make install INSTALLPREFIX=$prefix - - mkdir -p $(dirname $includeDir) - mv $prefix/include $includeDir - - prepareInstalledDevelLibs libnatpmp - - # devel package - packageEntries devel \ - $developDir -} diff --git a/net-libs/libnatpmp/patches/libnatpmp-20140401.patchset b/net-libs/libnatpmp/patches/libnatpmp-20140401.patchset deleted file mode 100644 index fdd8710b6..000000000 --- a/net-libs/libnatpmp/patches/libnatpmp-20140401.patchset +++ /dev/null @@ -1,63 +0,0 @@ -From 27c33d9ffa8503a44504bcb03d1d26b35cbd84b4 Mon Sep 17 00:00:00 2001 -From: Jerome Duval -Date: Fri, 5 Sep 2014 15:37:36 +0000 -Subject: Haiku patch - - -diff --git a/Makefile b/Makefile -index b67b3e8..181a9ef 100644 ---- a/Makefile -+++ b/Makefile -@@ -55,6 +55,9 @@ else - SONAMEFLAGS=-Wl,-soname,$(JNISHAREDLIB) - endif - endif -+ifeq ($(OS), Haiku) -+LDFLAGS += -lnetwork -+endif - - HEADERS = natpmp.h - -diff --git a/getgateway.c b/getgateway.c -index 45c6e6f..dd73356 100644 ---- a/getgateway.c -+++ b/getgateway.c -@@ -67,7 +67,7 @@ POSSIBILITY OF SUCH DAMAGE. - #undef USE_SYSCTL_NET_ROUTE - #endif - --#if !defined(USE_PROC_NET_ROUTE) && !defined(USE_SOCKET_ROUTE) && !defined(USE_SYSCTL_NET_ROUTE) -+#if !defined(USE_PROC_NET_ROUTE) && !defined(USE_SOCKET_ROUTE) && !defined(USE_SYSCTL_NET_ROUTE) && !defined(__HAIKU__) - int getdefaultgateway(in_addr_t * addr) - { - return -1; --- -2.2.2 - - -From 9e5a4dc47ad1e39958e874da94e5fa8fc5744a0f Mon Sep 17 00:00:00 2001 -From: Jerome Duval -Date: Wed, 2 Dec 2015 19:53:48 +0000 -Subject: gcc2 build fix - - -diff --git a/testgetgateway.c b/testgetgateway.c -index 24cbe7d..5a8dbb1 100644 ---- a/testgetgateway.c -+++ b/testgetgateway.c -@@ -37,10 +37,10 @@ POSSIBILITY OF SUCH DAMAGE. - - int main(int argc, char * * argv) - { -- (void)argc; -- (void)argv; - struct in_addr gatewayaddr; - int r; -+ (void)argc; -+ (void)argv; - #ifdef WIN32 - uint32_t temp = 0; - r = getdefaultgateway(&temp); --- -2.2.2 -