void-packages/srcpkgs/ispc/template
2025-03-16 00:30:54 +00:00

28 lines
941 B
Bash

# Template file for 'ispc'
pkgname=ispc
version=1.26.0
revision=1
_llvmver=19
archs="aarch64* x86_64*"
build_style=cmake
configure_args="-DISPC_INCLUDE_EXAMPLES=OFF -DISPC_INCLUDE_RT=OFF
-DCMAKE_PREFIX_PATH=${XBPS_CROSS_BASE}/usr/lib/llvm/${_llvmver}"
hostmakedepends="clang${_llvmver} clang-tools-extra${_llvmver} python3 m4 bison flex"
makedepends="llvm${_llvmver}-devel ncurses-devel ncurses-libtinfo-devel zlib-devel"
short_desc="Compiler for high-performance SIMD programming on the CPU"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BSD-3-Clause"
homepage="https://ispc.github.io"
distfiles="https://github.com/ispc/ispc/archive/v${version}.tar.gz"
checksum=f75b26894af1429a3dc6929ae03e2c9e99bb8c5930eda14add5d2f6674db7afb
nocross=yes
nopie=yes
# hack to make -m32 work so it can build 32-bit target
case "$XBPS_TARGET_MACHINE" in
x86_64) hostmakedepends+=" gcc-multilib";;
esac
post_install() {
vlicense LICENSE.txt
}