mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
100 lines
2.4 KiB
Bash
100 lines
2.4 KiB
Bash
SUMMARY="UPnP IGD client lightweight library"
|
|
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/
|
|
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
|
|
https://miniupnp.tuxfamily.org/files/miniupnpc-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="b0c3a27056840fd0ec9328a5a9bac3dc5e0ec6d2e8733349cf577b0aa1e70ac1"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
pythonVersion="3.10"
|
|
pythonPackage="python310"
|
|
|
|
PROVIDES="
|
|
miniupnpc$secondaryArchSuffix = $portVersion
|
|
cmd:external_ip.sh$secondaryArchSuffix = $portVersion
|
|
lib:libminiupnpc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
miniupnpc${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libminiupnpc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
miniupnpc$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
SUMMARY_python310="Python bindings for miniupnpc"
|
|
PROVIDES_python310="
|
|
miniupnpc${secondaryArchSuffix}_python310 = $portVersion
|
|
"
|
|
REQUIRES_python310="
|
|
miniupnpc$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python$pythonVersion
|
|
setuptools_$pythonPackage
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=release \
|
|
$cmakeDirArgs \
|
|
-DUPNPC_BUILD_STATIC=OFF \
|
|
-DUPNPC_BUILD_TESTS=OFF \
|
|
-DUPNPC_BUILD_SAMPLE=OFF \
|
|
-Wno-dev
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# GENERIC: all python_setuptools-based installs need this
|
|
python=python$pythonVersion
|
|
installLocation=$prefix/lib/$python/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
mkdir -p $installLocation
|
|
$python setup.py build install \
|
|
--root=/ --prefix=$prefix
|
|
|
|
prepareInstalledDevelLib \
|
|
libminiupnpc
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$documentationDir \
|
|
$libDir/cmake
|
|
|
|
packageEntries python310 \
|
|
$installLocation
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
true
|
|
# make check #currently broken
|
|
}
|