39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'igraph'
|
|
pkgname=igraph
|
|
version=0.10.12
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DIGRAPH_ENABLE_TLS=on -DIGRAPH_ENABLE_LTO=on -DBUILD_SHARED_LIBS=ON
|
|
-DBLA_VENDOR=$(vopt_if openblas 'OpenBLAS' 'Generic')"
|
|
make_check_target=check
|
|
makedepends="arpack-ng-devel glpk-devel gmp-devel libgomp-devel libxml2-devel
|
|
$(vopt_if openblas 'openblas-devel' 'lapack-devel')"
|
|
short_desc="Graph library"
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://igraph.org/c/"
|
|
changelog="https://github.com/igraph/igraph/releases"
|
|
distfiles="https://github.com/igraph/igraph/releases/download/${version}/igraph-${version}.tar.gz"
|
|
checksum=b011f7f9f38a3e59924cc9ff652e6d33105fa03fcaf3792f47d752626a0a4625
|
|
|
|
build_options="openblas"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*|i686*|aarch64*|armv[67]*|ppc64*)
|
|
# Prefer accelerated routines where available
|
|
build_options_default="openblas"
|
|
;;
|
|
*) ;;
|
|
esac
|
|
|
|
igraph-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|