mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 16:50:06 +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.
79 lines
1.7 KiB
Bash
79 lines
1.7 KiB
Bash
SUMMARY="Cross-platform asynchronous I/O"
|
|
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="https://libuv.org/"
|
|
COPYRIGHT="2015-present libuv project contributors"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/libuv/libuv/archive/v$portVersion/libuv-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="70fe1c9ba4f2c509e8166c0ca2351000237da573bb6c82092339207a9715ba6b"
|
|
PATCHES="libuv-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libuv$secondaryArchSuffix = $portVersion
|
|
lib:libuv$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libuv${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libuv$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
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
|
|
"
|
|
|
|
defineDebugInfoPackage libuv$secondaryArchSuffix \
|
|
"$libDir"/libuv.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
|
|
LDFLAGS="-lnetwork" runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file and static library
|
|
rm -f $libDir/libuv.la $libDir/libuv.a
|
|
|
|
prepareInstalledDevelLib libuv
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|