mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-21 15:51:34 +01:00
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
pkgname=cgal
|
|
pkgver=5.4
|
|
pkgrel=1
|
|
pkgdesc="Efficient and reliable geometric algorithms as C++ library"
|
|
url="https://www.cgal.org/"
|
|
# lib is header-only as of version 5.4
|
|
arch="noarch"
|
|
license="GPL-3.0-or-later custom" # Dual licensed under GPL-3.0+ and commercial
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
makedepends="mpfr-dev gmp-dev mesa-dev glu-dev boost-dev cmake zlib-dev ninja"
|
|
source="$pkgname-$pkgver.tar.xz::https://github.com/CGAL/cgal/releases/download/v$pkgver/CGAL-$pkgver.tar.xz"
|
|
builddir="$srcdir/CGAL-$pkgver"
|
|
# Citing from https://github.com/CGAL/cgal/wiki/Testing#test-suite-directory
|
|
# > The test/ directory is not part of external releases.
|
|
options="!check"
|
|
|
|
build() {
|
|
cmake -B build \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
install -t "$pkgdir"/usr/share/licenses/$pkgname -Dm644 LICENSE*
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
amove usr/bin/cgal_create_CMakeLists
|
|
amove usr/bin/cgal_create_cmake_script
|
|
amove usr/bin/cgal_make_macosx_app
|
|
}
|
|
|
|
sha512sums="
|
|
ecaa7a130365e066c098f500751e5be89d908ed7e3c4ea9b50fbe2b1e13f4dd2bca0319157d0de8ec2eb7847c88b9190f369ff97c33c0c5e326f2d470104386d cgal-5.4.tar.xz
|
|
"
|