mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
74 lines
1.5 KiB
Bash
74 lines
1.5 KiB
Bash
SUMMARY="A new platform layer for Node"
|
|
DESCRIPTION="libuv is a multi-platform support library with a focus on \
|
|
asynchronous I/O. It was primarily developed for use by Node.js, but it's also \
|
|
used by Luvit, Julia, pyuv, and others."
|
|
HOMEPAGE="http://libuv.org/"
|
|
COPYRIGHT="2009-2017 Ryan Dahl and others"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/libuv/libuv/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="41ce914a88da21d3b07a76023beca57576ca5b376c6ac440c80bc581cbca1250"
|
|
PATCHES="libuv-$portVersion.patchset"
|
|
|
|
# libuv requires platform-specific implementations, no piggy-back, really broken
|
|
ARCHITECTURES="!x86_gcc2 !x86 !x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 !x86"
|
|
|
|
PROVIDES="
|
|
libuv$secondaryArchSuffix = $portVersion
|
|
lib:libuv$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libuv${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libuv$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libuv$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm -f $libDir/libuv.la
|
|
|
|
prepareInstalledDevelLib libuv
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check #|| true # Test suite doesn't pass
|
|
}
|