File: rules

package info (click to toggle)
r-cran-randomfieldsutils 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,956 kB
  • sloc: ansic: 7,119; cpp: 6,437; fortran: 3,403; makefile: 7; sh: 1
file content (13 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

%:
	dh $@ --buildsystem R

ifeq (,$(filter $(DEB_HOST_ARCH), amd64 i386 x82))
override_dh_auto_configure:
	# Enable linking on arm64, armel, armhf, mips64el, mipsel, ppc64el and s390x and others
	dh_auto_configure -- --configure-args=-DREQUIRED_SIMD=0
	# seems that the means above do not work ... may be since configure is called later again.
	# so just hack in the wanted SERVER_FLAG
	sed -i 's/^\(MY_PKG_FLAGS.*\)$${SERVER_FLAG}/\1-DREQUIRED_SIMD=0/' configure
endif