File: rules

package info (click to toggle)
sdlgfx 2.0.25-11.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,484 kB
  • sloc: ansic: 18,523; sh: 13,444; makefile: 83; javascript: 37; perl: 5
file content (48 lines) | stat: -rwxr-xr-x 1,268 bytes parent folder | download | duplicates (3)
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
43
44
45
46
47
48
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk

LIBPKG = libsdl-gfx1.2-5


%:
	dh $@

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_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_auto_build:
	dh_auto_build
	GZIP=-n tar -cvz --transform='s,^Test,examples,' --owner=0 --group=0 --mode=go=rX,u+rw,a-s --mtime="@$(SOURCE_DATE_EPOCH)" --sort=name -f debian/examples.tar.gz Test

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/examples.tar.gz

override_dh_install:
	dh_install -XlibSDL_gfx.la -Xjquery.js

override_dh_installdocs:
	dh_installdocs -plibsdl-gfx1.2-doc --doc-main-package=libsdl-gfx1.2-doc
	dh_installdocs --remaining-packages

override_dh_missing:
	dh_missing --fail-missing -XlibSDL_gfx.la -Xjquery.js

override_dh_link:
	# fix lintian warning dev-pkg-without-shlib-symlink
	dh_link -p$(LIBPKG) usr/lib/$(DEB_HOST_MULTIARCH)/libSDL_gfx.so.15.9.1 \
		usr/lib/$(DEB_HOST_MULTIARCH)/libSDL_gfx.so.5
	dh_link -plibsdl-gfx1.2-doc usr/share/javascript/jquery/jquery.js \
		usr/share/doc/libsdl-gfx1.2-doc/html/jquery.js
	dh_link --remaining-packages