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 35 36 37 38 39
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
CONFFLAGS = \
-Dintrospection=enabled \
$(NULL)
ifneq (,$(filter libgraphene-doc,$(shell dh_listpackages)))
CONFFLAGS+=-Dgtk_doc=true
else
CONFFLAGS+=-Dgtk_doc=false
endif
# https://github.com/ebassi/graphene/issues/97
# https://github.com/ebassi/graphene/issues/215
ifneq (,$(filter $(DEB_HOST_ARCH),armhf))
CONFFLAGS += -Darm_neon=false
endif
# As of 2021, Debian's i386 baseline has no MMX or SSE
ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386))
CONFFLAGS += -Dsse2=false
endif
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
CONFFLAGS += --cross-file=$(DEB_HOST_GNU_TYPE)-gobject-introspection.ini
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(CONFFLAGS)
override_dh_python3:
dh_python3 /usr/libexec/installed-tests/graphene-1.0
|