Files
haikuports/dev-libs/libuv/libuv-1.10.1.recipe

75 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-2016 Ryan Dahl and others"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/libuv/libuv/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="4b5f71939dd4272ebcfb8e04833e9a273a08b1bf1277d37d14085d7b04b19832"
PATCHES="libuv-$portVersion.patchset"
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:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export LDFLAGS="-lroot -lnetwork -lbsd"
export CFLAGS="-D_BSD_SOURCE"
./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
}