File: rules

package info (click to toggle)
libsdl2-gfx 1.0.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,736 kB
  • sloc: ansic: 13,385; sh: 12,631; makefile: 93
file content (42 lines) | stat: -rwxr-xr-x 1,188 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND := -lm
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

%:
	dh $@ --dbgsym-migration='libsdl2-gfx-dbg (<< 1.0.1+dfsg-5~)'

CONFIGURE_FLAGS ?=--disable-mmx

ifeq ($(DEB_HOST_ARCH), i386)
	CONFIGURE_FLAGS =--enable-mmx
endif
ifeq ($(DEB_HOST_ARCH), amd64)
	CONFIGURE_FLAGS =--enable-mmx
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf Docs/html

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_auto_build-indep:
	tar -cvz --transform='s,^test,examples,' -f debian/examples.tar.gz --clamp-mtime --mtime="@$(SOURCE_DATE_EPOCH)" --sort=name --mode=go=rX,u+rw,a-s --owner=root --group=root --numeric-owner test
	(cd Docs && doxygen html.doxyfile)

override_dh_install:
	dh_install -XlibSDL2_gfx.la

override_dh_installdocs-indep:
	dh_installdocs --doc-main-package=libsdl2-gfx-doc -plibsdl2-gfx-doc

override_dh_installdocs-arch:
	dh_installdocs --doc-main-package=libsdl2-gfx-doc -plibsdl2-gfx-dev
	dh_installdocs --doc-main-package=libsdl2-gfx-doc -plibsdl2-gfx-1.0-0

override_dh_missing:
	dh_missing --fail-missing -XlibSDL2_gfx.la