File: rules

package info (click to toggle)
exult 1.12.0-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 43,608 kB
  • sloc: cpp: 169,917; xml: 7,400; yacc: 2,850; makefile: 2,419; java: 1,901; ansic: 1,654; lex: 673; sh: 539; objc: 416
file content (47 lines) | stat: -rwxr-xr-x 1,358 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
43
44
45
46
47
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_CXXFLAGS_MAINT_APPEND = -fpermissive
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with autoreconf --parallel

override_dh_auto_configure:
	dh_auto_configure -- \
		DEBUG_FLAGS="-g" \
		--prefix=/usr \
		--bindir=\$${prefix}/games \
		--mandir=\$${prefix}/share/man \
		--datadir=\$${prefix}/share/games \
		--with-desktopdir=\$${prefix}/share/applications \
		--with-usecode-debugger=yes \
		--enable-shared \
		--enable-compiler \
		--enable-exult-studio \
		--enable-exult-studio-support \
		--disable-gimp-plugin \
		--enable-zip-support \
		--enable-midi-sfx \
		--enable-shp-thumbnailer \
		--enable-data \
		--enable-mods

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) maintainer-clean
	rm -f data/*flx.h
	rm -f configure config.log config.guess config.sub config.cache libtool \
	      ltmain.sh missing mkinstalldirs install-sh autoconfig.h.in \
	      config.status aclocal.m4
	find . -name Makefile.in -print0 | xargs -0 rm -f
	rm debian/files || true
	rm -f depcomp
	rm -f INSTALL

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
	dh_install --sourcedir=$(CURDIR)/debian/tmp
	cp $(CURDIR)/debian/tmp/usr/games/exult \
	   $(CURDIR)/debian/exult/usr/lib/games/exult
	cp $(CURDIR)/debian/exult.wrapper \
	   $(CURDIR)/debian/exult/usr/games/exult