Files
haikuports/dev-libs/libuv/libuv-1.10.2.recipe
miqlas ea482d4a38 libuv: bump version, improved patchset. (#1044)
* libuv: bump version, improved patchset.

* Fixed include
2017-01-14 12:39:52 -05:00

73 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="2d740a2adea0f1a19058626f55a076ac41a4ac1f95d4e57cae0c8a634a6cd63b"
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: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
}