File: rules

package info (click to toggle)
geany-plugins 1.29%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 19,068 kB
  • ctags: 11,433
  • sloc: ansic: 98,529; sh: 4,256; makefile: 1,481; python: 899
file content (100 lines) | stat: -rwxr-xr-x 2,623 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
#!/usr/bin/make -f

include /usr/share/dpkg/buildflags.mk

export LDFLAGS += -Wl,--as-needed -Wl,-z,defs

GEANY_VERSION = $(shell pkg-config --modversion geany)

override_dh_autoreconf:
	rm -rf build/cache
	dh_autoreconf --as-needed

# specify libexecdir to avoid cascading geany-plugins directories in /usr/lib
override_dh_auto_configure:
	dh_auto_configure --				\
		--libexecdir='$${exec_prefix}/lib'	\
		--enable-addons				\
		--enable-autoclose			\
		--enable-automark			\
		--enable-codenav			\
		--enable-commander			\
		--enable-debugger			\
		--enable-defineformat			\
		--enable-devhelp			\
		--enable-geanyctags			\
		--enable-geanydoc			\
		--enable-geanyextrasel			\
		--enable-geanygendoc			\
		--enable-geanyinsertnum			\
		--enable-geanylatex			\
		--enable-lipsum				\
		--enable-geanylua			\
		--enable-geanymacro			\
		--enable-geanyminiscript		\
		--enable-geanynumberedbookmarks		\
		--enable-geanypg			\
		--enable-geanyprj			\
		--enable-geanypy			\
		--enable-sendmail			\
		--enable-geanyvc			\
		--enable-geniuspaste			\
		--enable-gitchangebar			\
		--enable-gtkspell			\
		--enable-largefile			\
		--enable-lineoperations			\
		--enable-markdown			\
		--disable-peg-markdown			\
		--enable-multiterm			\
		--enable-overview			\
		--enable-pairtaghighlighter		\
		--enable-pohelper			\
		--enable-pretty_printer			\
		--enable-projectorganizer		\
		--enable-scope				\
		--enable-shiftcolumn			\
		--enable-spellcheck			\
		--enable-tableconvert			\
		--enable-treebrowser			\
		--enable-updatechecker			\
		--enable-webhelper			\
		--enable-xmlsnippets

# install separate ChangeLogs for each different plugin
override_dh_installchangelogs:
	for changelog in */ChangeLog; do \
		[ ! -s $$changelog ] && continue; \
		if [ $$changelog = po/ChangeLog ]; then \
			pkg=geany-plugins-common; \
		else \
			pkg=geany-plugin-$$(dirname $$changelog | sed -e's/^geany//'); \
		fi; \
		dh_installchangelogs \
			-p$$pkg \
			$$changelog; \
	done
	dh_installchangelogs

# add geany:Version substvar to debian/*.substvars
debian/dumpabiver: debian/dumpabiver.c
	$(CC) -o $@ $< $(shell pkg-config --cflags geany)

debian/abiversion.sh: debian/dumpabiver
	$< > $@

override_dh_gencontrol: debian/abiversion.sh
	. debian/abiversion.sh && \
	dh_gencontrol -- \
		"-Vgeany:Version=$(GEANY_VERSION)" \
		"-Vgeany:API=$${GEANY_ABI}" \
		"-Vgeany:ABI=$${GEANY_ABI}"

# Don't make shlibs (false positive on pretty-printer.so
override_dh_makeshlibs:

override_dh_install:
	find debian/tmp/ -name '*.pyc' -delete
	dh_install --list-missing -Xusr/share/doc/geany-plugins/ -X.la

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