aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-01-13 23:51:27 +0100
committerJakub Jirutka <jakub@jirutka.cz>2022-02-12 16:57:41 +0000
commit529c06eead574954aad4f784ecb5e04eafcdb0e6 (patch)
tree36d372d0d3dc8ec8f07550db21c2177bb484044d
parentd87ac56b66084d62a8239209dab580d97cdd33ed (diff)
downloadaports-529c06eead574954aad4f784ecb5e04eafcdb0e6.tar.gz
aports-529c06eead574954aad4f784ecb5e04eafcdb0e6.tar.bz2
aports-529c06eead574954aad4f784ecb5e04eafcdb0e6.tar.xz
main/libogg: build with ninja
-rw-r--r--main/libogg/APKBUILD23
1 files changed, 15 insertions, 8 deletions
diff --git a/main/libogg/APKBUILD b/main/libogg/APKBUILD
index c26aa506c4..943a518337 100644
--- a/main/libogg/APKBUILD
+++ b/main/libogg/APKBUILD
@@ -2,28 +2,35 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libogg
pkgver=1.3.5
-pkgrel=0
+pkgrel=1
pkgdesc="Ogg bitstream and framing library"
url="https://xiph.org/ogg/"
arch="all"
license="BSD-3-Clause"
+makedepends="cmake samurai"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.xiph.org/releases/ogg/libogg-$pkgver.tar.gz"
build() {
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr
- make
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ $CMAKE_CROSSOPTS
+ cmake --build build
}
check() {
- make check
+ cmake --build build --target test
}
package() {
- make -j1 DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --build build --target install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}