File: rules

package info (click to toggle)
r-cran-rcppparallel 5.1.7%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 544 kB
  • sloc: cpp: 1,852; sh: 19; makefile: 11
file content (19 lines) | stat: -rwxr-xr-x 825 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export TBB_ROOT=/usr

%:
	dh $@ --buildsystem R

override_dh_gencontrol:
	echo "DEBUG"
	cat debian/*substvars
	# As per bug #1058751 we need to pin the libtbb version that was used at Build time of r-cran-rcppparallel
	# Alternatively we need to replace the symlinks with copied of the library
	#
	tbbversion=`dpkg -l libtbb-dev | grep 'ii' | sed 's/^.*libtbb-dev:[a-z0-9]\+[[:space:]]\+\([0-9.]\+\)-[0-9]\+[[:space:]]\+.*/\1/'`; \
	sed -i -e "s/libtbb12 ([^)]\+)/libtbb12 (>= $${tbbversion}), libtbb12 (<< $${tbbversion}-99)/" -e "s/libtbb-dev ([^)]\+)/libtbb-dev (>= $${tbbversion}), libtbb-dev (>= $${tbbversion}-99)/" debian/*substvars
	dh_gencontrol
	echo "DEBUG 2"
	cat debian/*substvars
	# However, the means above might be strict - see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055922#68