File: rules

package info (click to toggle)
glib-d 2.4.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: makefile: 15; sh: 6
file content (24 lines) | stat: -rwxr-xr-x 617 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
22
23
24
#!/usr/bin/make -f

include /usr/share/dh-dlang/dlang-flags.mk

configure_options =
configure_options += --native-file=$(CURDIR)/debian/meson/girtod.ini

ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
configure_options += --cross-file=$(CURDIR)/debian/meson/girtod.ini
endif

# Filter out a flag that causes Ubuntu's amd64v3 build to fail LP: #2139491
LDFLAGS := $(filter-out -march%,$(LDFLAGS))

%:
	dh $@

debian/meson/%.ini: debian/meson/%.ini.in
	sed \
		-e 's/@DEB_HOST_MULTIARCH@/${DEB_HOST_MULTIARCH}/g' \
		< $< > $@

override_dh_auto_configure: debian/meson/girtod.ini
	dh_auto_configure -- $(configure_options)