mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
libnatpmp: added a recipe for version 20140401
This commit is contained in:
64
net-libs/libnatpmp/libnatpmp-20140401.recipe
Normal file
64
net-libs/libnatpmp/libnatpmp-20140401.recipe
Normal file
@@ -0,0 +1,64 @@
|
||||
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)"
|
||||
SRC_URI="http://miniupnp.free.fr/files/download.php?file=libnatpmp-$portVersion.tar.gz"
|
||||
SRC_FILENAME="libnatpmp-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b2ce5e626a21c795cba2d118f26e54aaa89de29d4611c440fafc49a2a5bedabb"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PATCHES="libnatpmp-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
libnatpmp$secondaryArchSuffix = $portVersion
|
||||
lib:libnatpmp$secondaryArchSuffix = 1
|
||||
cmd:natpmpc
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
"
|
||||
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
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
libnatpmp${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libnatpmp$secondaryArchSuffix = 1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libnatpmp$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user