File: rules

package info (click to toggle)
gap-float 0.9.1%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 612 kB
  • sloc: ansic: 2,537; cpp: 1,998; xml: 184; makefile: 99; sh: 1
file content (34 lines) | stat: -rwxr-xr-x 849 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
29
30
31
32
33
34
#!/usr/bin/make -f

CGAP = /usr/bin/gap

DEB_BUILD_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
DEB_BUILD_GAP_INFO_ARCH ?= $(shell echo 'Print(GAPInfo.Architecture);' | $(CGAP) -A -q -T)

default:
	@uscan --no-conf --dehs --report || true

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-gaproot=/usr/lib/gap \
		--with-mpfr=yes \
		--with-mpc=yes \
		--with-mpfi=yes \
		--with-fplll=yes \
		--with-cxsc=no

override_dh_prep:
	cat makedoc.g | $(CGAP) -A -q -T
	dh_prep

override_dh_auto_install:
	dh_auto_install --destdir debian/tmp/

override_dh_link:
	dh_link -p gap-float \
		/usr/lib/$(DEB_BUILD_MULTIARCH)/gap/pkg/float/bin /usr/lib/gap/pkg/float/bin/$(DEB_BUILD_GAP_INFO_ARCH) \
		/usr/lib/gap/pkg/float/bin /usr/share/gap/pkg/float/bin \
		/usr/share/gap/pkg/float/doc /usr/share/doc/gap-float/doc