diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-12-18 21:16:10 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-12-23 07:50:16 +0000 |
commit | dd64b07acd8e193dee234b0bba35429fab135a3a (patch) | |
tree | 88baa3864a86897c4eb5c14bdc50c9e055d4e4b2 | |
parent | b282640c5353f37b706d3395718e80db244644b2 (diff) | |
download | packages-dd64b07acd8e193dee234b0bba35429fab135a3a.tar.gz packages-dd64b07acd8e193dee234b0bba35429fab135a3a.tar.bz2 packages-dd64b07acd8e193dee234b0bba35429fab135a3a.tar.xz packages-dd64b07acd8e193dee234b0bba35429fab135a3a.zip |
system/c-ares: Build with CMake instead
The ares_nameser.h header isn't installed by the autotools backend.
This file is needed to build at least Node 18.
-rw-r--r-- | system/c-ares/APKBUILD | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/system/c-ares/APKBUILD b/system/c-ares/APKBUILD index 33ef7b331..71a799909 100644 --- a/system/c-ares/APKBUILD +++ b/system/c-ares/APKBUILD @@ -2,30 +2,31 @@ # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=c-ares pkgver=1.18.1 -pkgrel=0 +pkgrel=1 pkgdesc="Asynchronous DNS/name resolver library" url="https://c-ares.org/" arch="all" options="!checkroot" license="MIT" depends="" -makedepends="" +makedepends="cmake" subpackages="$pkgname-doc $pkgname-dev" source="https://c-ares.org/download/$pkgname-$pkgver.tar.gz" build() { - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --enable-shared + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCARES_BUILD_TESTS=ON \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + . make } check() { - test/arestest --gtest_filter=-*.Live* + bin/arestest --gtest_filter=-*.Live* } package() { |