File: rules

package info (click to toggle)
xracer 0.96.9.1-11
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 9,736 kB
  • sloc: makefile: 56
file content (72 lines) | stat: -rwxr-xr-x 2,122 bytes parent folder | download | duplicates (2)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/make -f

#export DH_VERBOSE=1
export QUILT_PATCH_DIR = debian/quilt_patches

SRCDIR=xracer-0.96.9

%:
	dh $@ --with quilt,python3

override_dh_quilt_patch: extract-stamp
	dh_quilt_patch

override_dh_quilt_unpatch:
	-dh_quilt_unpatch
	rm -rf $(CURDIR)/$(SRCDIR)
	rm -rf $(CURDIR)/.pc
	rm -rf $(CURDIR)/debian/.debhelper

override_dh_auto_configure:
	ln -sf /usr/share/gettext/config.rpath ./$(SRCDIR)
	cd $(SRCDIR) && libtoolize -f -c
	cd $(SRCDIR) && autoreconf -fi
	dh_auto_configure -D $(SRCDIR) \
		-- --program-transform-name='s/[.]pl$$//' \
		--bindir=/usr/games \
		--datadir=/usr/share/games \
		--libdir=/usr/lib/games

override_dh_auto_build: xracer-mktube.1 xracer-mktrack.1 xracer-mktrackscenery.1 xracer-mkmeshnotex.1
	dh_auto_build -B $(SRCDIR)
	pod2man $(SRCDIR)/tools/blender2track/xracer-blender2track.pl xracer-blender2track.1p
	pod2man $(SRCDIR)/tools/mkcraft/xracer-mkcraft.pl xracer-mkcraft.1p

override_dh_auto_install:
	dh_auto_install -D $(SRCDIR)

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/xracer-data
	rm -rf $(CURDIR)/$(SRCDIR)

extract: extract-stamp
extract-stamp: 
	tar -zxvf xracer-0.96.9.tar.gz
	#tar zxvf xracer-data.tar.gz
	touch $@

xracer-mktube.1: debian/xracer-mktube.sgml
	docbook-to-man $< > $@
xracer-mktrack.1: debian/xracer-mktrack.sgml
	docbook-to-man $< > $@
xracer-mktrackscenery.1: debian/xracer-mktrackscenery.sgml
	docbook-to-man $< > $@
xracer-mkmeshnotex.1: debian/xracer-mkmeshnotex.sgml
	docbook-to-man $< > $@

override_dh_makeshlibs:
	dh_makeshlibs -Xlibcraftsimple -Xlibtracksimple

get-orig-source:
	mkdir $(CURDIR)/xracer-0.96.9.orig
	cd $(CURDIR)/xracer-0.96.9.orig && wget -c \
		http://www.annexia.org/_file/xracer-0.96.9.tar.gz
	cd $(CURDIR)/xracer-0.96.9.orig && wget -c \
		http://www.annexia.org/_file/xracer-data.tar.gz
	cd $(CURDIR)/xracer-0.96.9.orig && wget -c \
		http://www.annexia.org/_file/xracer-data-source.tar.gz.part1
	cd $(CURDIR)/xracer-0.96.9.orig && wget -c \
		http://www.annexia.org/_file/xracer-data-source.tar.gz.part2
	tar -czvf xracer_0.96.9.orig.tar.gz xracer-0.96.9.orig
	rm -rf $(CURDIR)/xracer-0.96.9.orig