32 lines
978 B
Bash
32 lines
978 B
Bash
# Template file for 'rr'
|
|
pkgname=rr
|
|
version=4.4.0
|
|
revision=2
|
|
build_style=cmake
|
|
cmake_args="-DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE}"
|
|
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=b2b24a3f67df47576126421746cd2942a458d2825faa76e8bb3ca43edffa03d3
|
|
nopie=yes
|
|
|
|
case "$XBPS_MACHINE" in
|
|
x86_64*) hostmakedepends+=" gcc-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
|
|
}
|