void-packages/srcpkgs/rr/template

30 lines
804 B
Bash

# Template file for 'rr'
pkgname=rr
version=4.5.0
revision=1
build_style=cmake
configure_args="-DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE} -DBUILD_TESTS=OFF"
only_for_archs="i686 x86_64"
hostmakedepends="pkg-config python"
makedepends="python-pexpect zlib-devel"
short_desc="Nondeterministic debugger"
maintainer="Spencer Hill <spencernh77@gmail.com>"
license="MIT, BSD"
homepage="http://rr-project.org/"
distfiles="https://github.com/mozilla/${pkgname}/archive/${version}.tar.gz"
checksum=19f28259c0aa562c9518ae51207377fa93071a7dc270a0738d8d39e45ae2b1c0
nopie=yes
case "$XBPS_MACHINE" in
x86_64*) hostmakedepends+=" gcc-multilib" ;;
esac
pre_configure() {
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
}
post_install() {
vlicense LICENSE
}