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
|
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CONFIGURE_FLAGS += --disable-optimize
endif
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386))
CONFIGURE_FLAGS += --enable-sse2
endif
# Altivec is enabled on ppc64 but disabled on ppc64el, since the Altivec
# variant of the recursion in dSFMT-common.h assumes big endian byte order.
ifneq (,$(filter $(DEB_HOST_ARCH),powerpc ppc64))
CONFIGURE_FLAGS += --enable-altivec
endif
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
%:
dh $@ --with autoreconf
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_FLAGS)
override_dh_installchangelogs:
dh_installchangelogs CHANGE-LOG.txt
|