File: rules

package info (click to toggle)
r-cran-treescape 1.10.18%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,396 kB
  • sloc: cpp: 24; makefile: 22; sh: 10
file content (28 lines) | stat: -rwxr-xr-x 975 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk
VERSION   := $(shell echo '$(DEB_VERSION)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
BUILDARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)

HUGESTACK := false

ifeq ($(VERSION),1.10.18)
ifeq ($(BUILDARCH),$(filter $(BUILDARCH), armhf i386 mipsel mips64el))
	HUGESTACK := true
endif
endif

%:
	dh $@ --buildsystem R

override_dh_auto_install:
ifeq ($(HUGESTACK),true)
	echo "****************** Version = 1.10.18, Architecture armhf or i386 or mipsel ***********************************"
	echo "****************** Set stack usage to be drastically higher on 32bit LE platforms (see bug #845753 ***********"
	/bin/sh -c "ulimit -S -s 200000 ; exec \
	    xvfb-run --auto-servernum --server-num=20 -s '-screen 0 1024x768x24 -ac +extension GLX +render -noreset' \
	    dh_auto_install"
else
	xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" \
	    dh_auto_install
endif