mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
87 lines
2.1 KiB
Bash
87 lines
2.1 KiB
Bash
SUMMARY="Asynchronous C++ http requests library via CURL"
|
|
DESCRIPTION="Simple library to do http requests asynchronously via CURL in \
|
|
C++. (Eventually as coroutines, once all the compilers I need to support \
|
|
support them.)"
|
|
HOMEPAGE="https://www.nheko.im/nheko-reborn/coeurl"
|
|
COPYRIGHT="2021 Nicolas Werner"
|
|
LICENSE="MIT"
|
|
REVISION="3"
|
|
SOURCE_URI="https://www.nheko.im/nheko-reborn/coeurl/-/archive/v$portVersion/coeurl-v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="6203654c2eec7a286388a6cfa8d8ea5698c57b7b8be235b2cc165f0b4c7bee0b"
|
|
SOURCE_DIR="coeurl-v$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.3"
|
|
libVersionCompat="$libVersion compat >= ${libVersion}"
|
|
|
|
PROVIDES="
|
|
coeurl$secondaryArchSuffix = $portVersion
|
|
lib:libcoeurl$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libevent_2.1$secondaryArchSuffix
|
|
lib:libevent_core_2.1$secondaryArchSuffix
|
|
lib:libevent_pthreads_2.1$secondaryArchSuffix
|
|
lib:libfmt$secondaryArchSuffix
|
|
lib:libspdlog$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
coeurl${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libcoeurl$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
coeurl$secondaryArchSuffix == $portVersion base
|
|
devel:libcurl$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libevent_2.1$secondaryArchSuffix
|
|
devel:libevent_core_2.1$secondaryArchSuffix
|
|
devel:libevent_pthreads_2.1$secondaryArchSuffix
|
|
devel:libfmt$secondaryArchSuffix >= 11
|
|
devel:libspdlog$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson \
|
|
--prefix=$prefix \
|
|
--includedir=$includeDir \
|
|
--libdir=$libDir \
|
|
--libexecdir=$binDir \
|
|
--buildtype=release \
|
|
_build
|
|
ninja -C _build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C _build install
|
|
|
|
prepareInstalledDevelLib libcoeurl
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ninja -C _build test
|
|
}
|