File: rules

package info (click to toggle)
libm4ri 20140914-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 2,240 kB
  • ctags: 589
  • sloc: sh: 11,353; ansic: 8,965; makefile: 175
file content (21 lines) | stat: -rwxr-xr-x 527 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
#!/usr/bin/make -f

UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)

DPKG_EXPORT_BUILDFLAGS = 1

DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)

# disable sse2 except on amd64
ifneq ($(DEB_HOST_ARCH_CPU),amd64)
additional_confflags := --disable-sse2
endif

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(additional_confflags)

override_dh_strip:
	dh_strip --dbg-package=libm4ri-0.0.$(UPSTREAM_VERSION)-dbg