void-packages/srcpkgs/rr/template

33 lines
995 B
Bash
Raw Normal View History

2016-04-02 09:38:45 +02:00
# Template file for 'rr'
pkgname=rr
2016-10-30 23:16:54 +01:00
version=4.4.0
2016-04-02 09:38:45 +02:00
revision=1
build_style=cmake
2016-07-16 17:37:02 +02:00
cmake_args="-DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE}"
2016-04-02 09:38:45 +02:00
only_for_archs="i686 x86_64"
hostmakedepends="pkg-config python"
2016-04-02 09:38:45 +02:00
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"
2016-10-30 23:16:54 +01:00
checksum=b2b24a3f67df47576126421746cd2942a458d2825faa76e8bb3ca43edffa03d3
2016-07-16 17:37:02 +02:00
nopie=yes
2016-04-02 09:38:45 +02:00
2016-07-16 17:37:02 +02:00
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"
2016-04-02 09:38:45 +02:00
}
post_install() {
vlicense LICENSE
}