| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
|
| 5 |
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
| 6 |
CONFIGURE_FLAGS += --disable-optimize |
| 7 |
endif |
| 8 |
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386)) |
| 9 |
CONFIGURE_FLAGS += --enable-sse2 |
| 10 |
endif |
| 11 |
# Altivec is enabled on ppc64 but disabled on ppc64el, since the Altivec |
| 12 |
# variant of the recursion in dSFMT-common.h assumes big endian byte order. |
| 13 |
ifneq (,$(filter $(DEB_HOST_ARCH),powerpc ppc64)) |
| 14 |
CONFIGURE_FLAGS += --enable-altivec |
| 15 |
endif |
| 16 |
|
| 17 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow |
| 18 |
|
| 19 |
%: |
| 20 |
dh $@ |
| 21 |
|
| 22 |
override_dh_auto_configure: |
| 23 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 24 |
|
| 25 |
override_dh_installchangelogs: |
| 26 |
dh_installchangelogs CHANGE-LOG.txt |