File: rules

package info (click to toggle)
renpy 6.10.2.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,468 kB
  • ctags: 5,383
  • sloc: python: 17,801; ansic: 7,116; makefile: 127; sh: 15
file content (164 lines) | stat: -rwxr-xr-x 5,329 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PYVERS=$(shell pyversions -vs)

patch:
	dh_testdir
	$(MAKE) -f /usr/share/quilt/quilt.make patch

configure: configure-stamp
configure-stamp:
	dh_testdir
	$(MAKE) -f /usr/share/quilt/quilt.make patch
	chmod 644 `find */ -name "*.py"`
	touch configure-stamp

build: build-stamp
build-stamp: configure $(PYVERS:%=build-python%)
	dh_testdir
	touch build-stamp

build-python%: configure-stamp
	dh_testdir
	export RENPY_DEPS_INSTALL="/usr"; cd module && python$* setup.py build
	touch $@

clean: configure
	dh_testdir
	dh_testroot
	rm -rf `find . -name "*.rpyc"`
	rm -f build-stamp configure-stamp
	rm -f build-python* install-python*
	-export RENPY_DEPS_INSTALL="/usr"; cd module && python setup.py clean
	rm -rf module/build/
	$(MAKE) -f /usr/share/quilt/quilt.make unpatch
	dh_clean 

install-indep:
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs

	# common/ - A directory containing common script files that help Ren'Py work.
	dh_install -prenpy common/* usr/share/games/renpy/common/

	# renpy/ - Contains the python source code for Ren'Py.
	dh_install -prenpy  renpy/* usr/share/games/renpy/renpy/
	# data/ - Contains the data for the launcher.
	dh_install -prenpy  launcher/* usr/share/games/renpy/launcher/
	# Scripts that give additional features.
	dh_install -prenpy  template/* usr/share/games/renpy/template/

	dh_install -prenpy-demo tutorial/* usr/share/games/renpy/demo/
	chmod +x debian/renpy-demo.sh
	dh_install -prenpy-demo debian/renpy-demo.sh usr/share/games/renpy/

	dh_install -prenpy-thequestion the_question/* usr/share/games/renpy/the_question/
	chmod +x debian/renpy-the_question.sh
	dh_install -prenpy-thequestion debian/renpy-the_question.sh usr/share/games/renpy/

	dh_install -prenpy  renpy.py usr/share/games/renpy/
	dh_link -prenpy  usr/share/games/renpy/renpy.py usr/games/renpy
	dh_link -prenpy-demo usr/share/games/renpy/renpy-demo.sh usr/games/renpy-demo
	dh_link -prenpy-thequestion usr/share/games/renpy/renpy-the_question.sh usr/games/the_question

	dh_install -prenpy debian/renpy.xpm usr/share/pixmaps
	dh_install -prenpy debian/renpy.desktop usr/share/applications
	dh_install -prenpy-demo debian/renpy-demo.xpm usr/share/pixmaps
	dh_install -prenpy-demo debian/renpy-demo.desktop usr/share/applications
	dh_install -prenpy-thequestion debian/renpy-thequestion.xpm usr/share/pixmaps
	dh_install -prenpy-thequestion debian/renpy-thequestion.desktop usr/share/applications

	rm -f $(CURDIR)/debian/renpy/usr/share/games/renpy/common/DejaVuSans.ttf
	dh_link -prenpy /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
		usr/share/games/renpy/common/DejaVuSans.ttf

	rm -f $(CURDIR)/debian/renpy/usr/share/games/renpy/launcher/DejaVuSans.ttf
	dh_link -prenpy /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
		usr/share/games/renpy/launcher/DejaVuSans.ttf

	rm -f $(CURDIR)/debian/renpy/usr/share/games/renpy/launcher/DejaVuSerif.ttf
	dh_link -prenpy /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf \
		usr/share/games/renpy/launcher/DejaVuSerif.ttf

	dh_install -prenpy-doc doc/* usr/share/doc/renpy/html

install-arch: build $(PYVERS:%=install-python%)

install-python%:
	dh_testdir
	dh_testroot
	export RENPY_DEPS_INSTALL="/usr"; cd module && python$* setup.py install \
		--no-compile \
		--root=$(CURDIR)/debian/python-renpy \
		;
	touch $@

install: install-arch install-indep

# Build architecture-independent files here.
binary-indep: install-indep
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGELOG.txt -i
	dh_installdocs -i
	dh_installexamples -i
	dh_installmenu -i
	dh_installman -prenpy debian/renpy.6
	dh_installman -prenpy-demo debian/renpy-demo.6
	dh_installman -prenpy-thequestion debian/the_question.6
	#dh_installdirs -prenpy usr/share/lintian/overrides/
	#dh_install -prenpy debian/overrides/renpy usr/share/lintian/overrides/
	dh_compress -i
	dh_fixperms -i
	dh_pysupport -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build install-arch
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGELOG.txt -a
	dh_installdocs -a
	dh_installexamples -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_pysupport -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

VERSIONID=6.10.2

get-orig-source:
	rm -f renpy-$(VERSIONID)-sdk.tar.bz2
	dget http://www.renpy.org/dl/$(VERSIONID)/renpy-$(VERSIONID)-sdk.tar.bz2
	rm -rf renpy-$(VERSIONID)
	tar xvfj renpy-$(VERSIONID)-sdk.tar.bz2
	rm renpy-$(VERSIONID)-sdk.tar.bz2
	cd renpy-$(VERSIONID) && rm -rf renpy.app lib jedit
	rm -rf `find renpy-$(VERSIONID) -name "*.exe"`
	rm -rf `find renpy-$(VERSIONID) -name "*.dll"`
	rm -rf `find renpy-$(VERSIONID) -name "*.lib"`
	rm -rf `find renpy-$(VERSIONID) -name "*.pyc"`
	rm -rf `find renpy-$(VERSIONID) -name "*.rpyc"`
	rm -rf `find renpy-$(VERSIONID) -name "*.rpymc"`
	rm -rf `find renpy-$(VERSIONID) -name "*.pyo"`
	rm -rf `find renpy-$(VERSIONID) -name "*.so"`
	rm -rf ../renpy_$(VERSIONID).dfsg1.orig.tar.gz
	tar cvfz ../renpy_$(VERSIONID).dfsg1.orig.tar.gz renpy-$(VERSIONID)
	rm -r renpy-$(VERSIONID)

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install-indep install-arch install configure get-doc
.PHONY: get-orig-source