mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
72 lines
1.4 KiB
Bash
72 lines
1.4 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://github.com/libuv/libuv"
|
|
COPYRIGHT="2009-2015 Ryan Dahl and others"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="git://github.com/hamishm/libuv#d48e9ae4bd504aadc25e26f06e83e9c2c86921ac"
|
|
SOURCE_DIR="libuv-v1.2.0"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libuv$secondaryArchSuffix = $portVersion
|
|
lib:libuv$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libuv${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libuv$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
libuv$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:autoconf
|
|
cmd:python
|
|
cmd:automake
|
|
cmd:libtoolize
|
|
cmd:gyp
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -rf out
|
|
./gyp_uv.py -f make -Dcomponent=shared_library -Duv_library=shared_library
|
|
make -C out BUILDTYPE=Release
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $includeDir
|
|
cp -rf include/* $includeDir/
|
|
|
|
mkdir -p $libDir
|
|
cp -rf out/Release/lib.target/libuv.so $libDir/
|
|
|
|
prepareInstalledDevelLibs libuv
|
|
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
true
|
|
#./out/Debug/run-tests
|
|
# Test suite doesn't pass
|
|
}
|