SUMMARY="A C library for asynchronous DNS requests" DESCRIPTION="This is c-ares, an asynchronous resolver library. It is intended \ for applications which need to perform DNS queries without blocking, or need \ to perform multiple DNS queries in parallel. The primary examples of such \ applications are servers which communicate with multiple clients and programs \ with graphical user interfaces." HOMEPAGE="https://c-ares.haxx.se/" COPYRIGHT="2004-2018 by Daniel Stenberg et al 1998-2013 by the Massachusetts Institute of Technology 1987-2001 The Regents of the University of California 1996-2004 by Internet Software Consortium 2009 by Jakub Hrozek 2010 Jeremy Lal 2012 Marko Kreen 2005 Dominick Meglio" LICENSE="MIT" REVISION="2" SOURCE_URI="https://c-ares.haxx.se/download/c-ares-$portVersion.tar.gz" CHECKSUM_SHA256="321700399b72ed0e037d0074c629e7741f6b2ec2dda92956abe3e9671d3e268e" SOURCE_DIR="c-ares-$portVersion" PATCHES="c_ares-$portVersion.patchset" ARCHITECTURES="all x86_gcc2" SECONDARY_ARCHITECTURES="x86_gcc2 x86" libVersion="2.6.1" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" c_ares$secondaryArchSuffix = $portVersion compat >= 1 lib:libcares$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix " PROVIDES_devel=" c_ares${secondaryArchSuffix}_devel = $portVersion compat >= 1 devel:libcares$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" c_ares$secondaryArchSuffix == $portVersion base " if [ -z "$secondaryArchSuffix" ]; then PROVIDES_tools=" c_ares${secondaryArchSuffix}_tools = $portVersion compat >= 1 cmd:acountry$secondaryArchSuffix = $portVersion cmd:adig$secondaryArchSuffix = $portVersion cmd:ahost$secondaryArchSuffix = $portVersion " REQUIRES_tools="$REQUIRES c_ares$secondaryArchSuffix == $portVersion base " fi BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:cmake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make " defineDebugInfoPackage c_ares$secondaryArchSuffix \ "$libDir"/libcares.so.$libVersion BUILD() { if [ "$targetArchitecture" = x86_gcc2 ]; then tests=OFF else tests=ON fi cmake -Bbuild -S. -DCMAKE_BUILD_TYPE='RelWithDebInfo' \ $cmakeDirArgs \ -DCARES_BUILD_TESTS=$tests \ -Wno-dev make -C build $jobArgs } INSTALL() { make -C build install prepareInstalledDevelLib libcares fixPkgconfig packageEntries devel \ "$developDir" \ "$libDir/cmake" \ "$manDir/man3" if [ -z "$secondaryArchSuffix" ]; then packageEntries tools \ "$documentationDir" \ "$binDir" fi if [ -n "$secondaryArchSuffix" ]; then rm -rf "$documentationDir" "$binDir" fi } TEST() { # [==========] 498 tests from 23 test suites ran. (307376 ms total) # [ PASSED ] 390 tests. # [ FAILED ] 108 tests, listed below: build/bin/arestest }