From ed18ea68372c082569e29fffa363900dd73e6534 Mon Sep 17 00:00:00 2001 From: extrowerk <5569059+extrowerk@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:13:39 +0100 Subject: [PATCH] libnpupnp: new recipe (#5649) --- net-libs/libnpupnp/libnpupnp-4.0.14.recipe | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 net-libs/libnpupnp/libnpupnp-4.0.14.recipe diff --git a/net-libs/libnpupnp/libnpupnp-4.0.14.recipe b/net-libs/libnpupnp/libnpupnp-4.0.14.recipe new file mode 100644 index 000000000..c73e27cfd --- /dev/null +++ b/net-libs/libnpupnp/libnpupnp-4.0.14.recipe @@ -0,0 +1,93 @@ +SUMMARY="A C++ base UPnP library, derived from Portable UPnP, a.k.a libupnp" +DESCRIPTION="npupnp (new pupnp or not pupnp ?) is an UPnP library derived from \ +the venerable pupnp." +HOMEPAGE="https://framagit.org/medoc92/npupnp" +COPYRIGHT="2000-2003 Intel Corporation + 2005-2006 Rémi Turboult + 2006 Michel Pfeiffer and others + 2020 Jean-Francois Dockes" +LICENSE="BSD (3-clause)" +REVISION="1" +SOURCE_URI="https://framagit.org/medoc92/npupnp/-/archive/libnpupnp-v${portVersion}/npupnp-libnpupnp-v${portVersion}.tar.bz2" +CHECKSUM_SHA256="6c19004bebc0d74900f9b6e025e8eb54030fe788341b58085a7992b3cdb2a9ed" +SOURCE_DIR="npupnp-libnpupnp-v$portVersion" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="4.0.2" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libnpupnp$secondaryArchSuffix = $portVersion + lib:libnpupnp$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcurl$secondaryArchSuffix + lib:libexpat$secondaryArchSuffix + lib:libgnutls_openssl$secondaryArchSuffix + lib:libidn2$secondaryArchSuffix + lib:libmicrohttpd$secondaryArchSuffix + lib:libnettle$secondaryArchSuffix + lib:libp11_kit$secondaryArchSuffix + lib:libtasn1$secondaryArchSuffix + " + +PROVIDES_devel=" + libnpupnp${secondaryArchSuffix}_devel = $portVersion + devel:libnpupnp$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libnpupnp$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcurl$secondaryArchSuffix + devel:libexpat$secondaryArchSuffix + devel:libgnutls_openssl$secondaryArchSuffix + devel:libidn2$secondaryArchSuffix + devel:libmicrohttpd$secondaryArchSuffix + devel:libnettle$secondaryArchSuffix + devel:libp11_kit$secondaryArchSuffix + devel:libtasn1$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage libnpupnp$secondaryArchSuffix \ + $libDir/libnpupnp.so.$libVersion + +BUILD() +{ + ./autogen.sh + LDFLAGS="-lnetwork" runConfigure ./configure + make +} + +INSTALL() +{ + make install + + rm $libDir/lib*.la + + # prepare development lib links + prepareInstalledDevelLib libnpupnp + fixPkgconfig + + # devel package + packageEntries devel $developDir +} + +TEST() +{ + make check +}