void-packages/srcpkgs/rr/template
2016-07-16 17:37:23 +02:00

32 lines
1,001 B
Bash

# Template file for 'rr'
pkgname=rr
version=4.3.0
revision=1
build_style=cmake
cmake_args="-DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE}"
only_for_archs="i686 x86_64"
hostmakedepends="cmake 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=46933cdd706d71c3de05b55937c85ee055c08e67e5c1e6a1278c7feb187ca37a
nopie=yes
case "$XBPS_MACHINE" in
x86_64*) hostmakedepends+=" gcc-multilib gcc-c++-multilib" ;;
esac
pre_configure() {
sed -i -e 's|WILL_RUN_TESTS ON|WILL_RUN_TESTS OFF|g' \
-e 's|${CMAKE_SYSTEM_PROCESSOR}|CMAKE_SYSTEM_PROCESSOR|g' CMakeLists.txt
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
export PKG_CONFIG_LIBDIR="${XBPS_CROSS_BASE}/usr/lib/pkgconfig"
}
post_install() {
vlicense LICENSE
}