mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
63 lines
1.4 KiB
Bash
63 lines
1.4 KiB
Bash
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-2011 Thomas Bernard"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="http://miniupnp.free.fr/files/libnatpmp-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0"
|
|
SOURCE_FILENAME="libnatpmp-$portVersion.tar.gz"
|
|
PATCHES="libnatpmp-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libnatpmp$secondaryArchSuffix = $portVersion
|
|
cmd:natpmpc$secondaryArchSuffix = $portVersion
|
|
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()
|
|
{
|
|
mkdir -p "$binDir" "$includeDir" "$libDir"
|
|
|
|
make install INSTALLPREFIX="$prefix" \
|
|
INSTALLDIRINC="$includeDir" \
|
|
INSTALLDIRLIB="$libDir" \
|
|
INSTALLDIRBIN="$binDir"
|
|
|
|
prepareInstalledDevelLibs libnatpmp
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|