| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 5 |
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 |
| 6 |
|
| 7 |
CONFFLAGS = \ |
| 8 |
-Dintrospection=enabled \ |
| 9 |
$(NULL) |
| 10 |
|
| 11 |
ifneq (,$(filter libgraphene-doc,$(shell dh_listpackages))) |
| 12 |
CONFFLAGS+=-Dgtk_doc=true |
| 13 |
else |
| 14 |
CONFFLAGS+=-Dgtk_doc=false |
| 15 |
endif |
| 16 |
|
| 17 |
# https://github.com/ebassi/graphene/issues/97 |
| 18 |
# https://github.com/ebassi/graphene/issues/215 |
| 19 |
ifneq (,$(filter $(DEB_HOST_ARCH),armhf)) |
| 20 |
CONFFLAGS += -Darm_neon=false |
| 21 |
endif |
| 22 |
|
| 23 |
# As of 2021, Debian's i386 baseline has no MMX or SSE |
| 24 |
ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386)) |
| 25 |
CONFFLAGS += -Dsse2=false |
| 26 |
endif |
| 27 |
|
| 28 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 29 |
CONFFLAGS += --cross-file=$(DEB_HOST_GNU_TYPE)-gobject-introspection.ini |
| 30 |
endif |
| 31 |
|
| 32 |
%: |
| 33 |
dh $@ |
| 34 |
|
| 35 |
override_dh_auto_configure: |
| 36 |
dh_auto_configure -- $(CONFFLAGS) |
| 37 |
|
| 38 |
override_dh_python3: |
| 39 |
dh_python3 /usr/libexec/installed-tests/graphene-1.0 |