void-packages/srcpkgs/m4ri/template
Gonzalo Tornaría c4e88a9e72 m4ri: fix m4ri-devel depends and i686 check
1.  add ${makedepends} to m4ri-devel depends

For instance, building m4rie fails without this, since libgomp-devel is
missing but it is needed to compile with m4ri-devel.

2. patch tests/Makefile to use SIMD_CFLAGS

Without the patch running make check fails on i686, because the library
is compiled with -msse2 but tests are not.
2021-11-10 12:29:29 +01:00

25 lines
836 B
Bash

# Template file for 'm4ri'
pkgname=m4ri
version=20200125
revision=2
build_style=gnu-configure
configure_args="--enable-openmp ax_cv_have_sse3_ext=no ax_cv_have_ssse3_ext=no"
hostmakedepends="pkg-config"
makedepends="libgomp-devel libpng-devel"
short_desc="Library for fast arithmetic with dense matrices over GF(2)"
maintainer="Eloi Torrents <eloitorrentsj@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://bitbucket.org/malb/m4ri"
distfiles="https://bitbucket.org/malb/m4ri/downloads/${pkgname}-${version}.tar.gz"
checksum=0dfb34aed351882a0f2281535ea6f81c690a5efeb14edab131d9ba0dffe44863
m4ri-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/libm4ri.so
vmove usr/lib/pkgconfig
}
}