summaryrefslogtreecommitdiff
path: root/system/c-ares/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-12-18 21:16:10 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-12-23 07:50:16 +0000
commitdd64b07acd8e193dee234b0bba35429fab135a3a (patch)
tree88baa3864a86897c4eb5c14bdc50c9e055d4e4b2 /system/c-ares/APKBUILD
parentb282640c5353f37b706d3395718e80db244644b2 (diff)
downloadpackages-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.
Diffstat (limited to 'system/c-ares/APKBUILD')
-rw-r--r--system/c-ares/APKBUILD21
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() {