mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
libnpupnp: new recipe (#5649)
This commit is contained in:
93
net-libs/libnpupnp/libnpupnp-4.0.14.recipe
Normal file
93
net-libs/libnpupnp/libnpupnp-4.0.14.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user