source: tuxpaint/trunk/fuentes/debian/rules @ 219

Last change on this file since 219 was 219, checked in by mabarracus, 4 years ago

added sources from trusty

  • Property svn:executable set to *
File size: 4.4 KB
Line 
1#!/usr/bin/make -f
2# Sample debian/rules that uses debhelper.
3# GNU copyright 1997 to 1999 by Joey Hess.
4
5# Uncomment this to turn on verbose mode.
6#export DH_VERBOSE=1
7
8include /usr/share/quilt/quilt.make
9
10
11export DH_ALWAYS_EXCLUDE=CVS
12
13ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
14        DEBUG_FLAGS += -g
15endif
16ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
17        INSTALL_PROGRAM += -s
18endif
19
20configure: configure-stamp
21configure-stamp:
22        dh_testdir
23        # Add here commands to configure the package.
24
25        touch configure-stamp
26
27
28build-arch: configure-stamp build-arch-stamp
29build-arch-stamp: $(QUILT_STAMPFN)
30        dh_testdir
31
32        # Add here commands to compile the package.
33        $(MAKE) clean
34        $(MAKE) all PREFIX=/usr DEBUG_FLAGS="$(DEBUG_FLAGS)"
35
36        touch build-arch-stamp
37
38
39build-indep: configure-stamp build-indep-stamp
40build-indep-stamp:
41        dh_testdir
42
43        # Nothing to do here.
44
45        touch build-indep-stamp
46
47
48build: build-arch build-indep
49
50clean: unpatch
51        dh_testdir
52        dh_testroot
53        rm -f build-arch-stamp build-indep-stamp configure-stamp
54
55        $(MAKE) clean
56
57        dh_clean
58
59install: build
60        dh_testdir
61        dh_testroot
62        dh_clean -k
63        dh_installdirs -A
64
65        # tuxpaint:
66        # - Note: install-icon is called here even though it seems
67        #   it belongs in tuxpaint-data as it is needed for the menu
68        #   icon.
69        $(MAKE) install-bin install-gnome install-kde install-icon \
70          install-importscript install-default-config \
71          PREFIX=$(CURDIR)/debian/tuxpaint/usr \
72          CONFDIR=$(CURDIR)/debian/tuxpaint/etc/tuxpaint \
73          GNOME_PREFIX=$(CURDIR)/debian/tuxpaint/usr \
74          KDE_PREFIX=$(CURDIR)/debian/tuxpaint/usr/share/applnk \
75          X11_ICON_PREFIX=$(CURDIR)/debian/tuxpaint/usr/share/pixmaps/
76
77        $(MAKE) install-magic-plugins \
78          PREFIX=$(CURDIR)/debian/tuxpaint-plugins-default/usr
79        # Puzzle plugin is disabled incorrectly so a non-functional puzzle.so
80        # is generated that spews errors when tuxpaint starts.  Until upstream
81        # provides a working way to disable plugins, (or fixes the plugin,) we
82        # just remove it.
83        rm -f $(CURDIR)/debian/tuxpaint-plugins-default/usr/lib/tuxpaint/plugins/puzzle.so
84
85        $(MAKE) install-magic-plugin-dev \
86          PREFIX=$(CURDIR)/debian/tuxpaint-dev/usr
87
88        # tuxpaint-data:
89        $(MAKE) install-data install-gettext install-kde-icons \
90          install-example-stamps install-example-starters \
91          PREFIX=$(CURDIR)/debian/tuxpaint-data/usr \
92          KDE_ICON_PREFIX=$(CURDIR)/debian/tuxpaint-data/usr/share/icons \
93          GNOME_PREFIX=$(CURDIR)/debian/tuxpaint-data/usr
94
95        # Cleanup after install-data, as we will symlink these fonts
96        # to the ones provided by ttf-freefont and other font packages:
97        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/*.ttf
98        rm -rf $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/*_docs/
99        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/ar.ttf
100        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/el.ttf
101        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/ka.ttf
102        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/ko.ttf
103        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/ta.ttf
104        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/te.ttf
105        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/th.ttf
106        rm -f $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/fonts/locale/zh_TW.ttf
107
108        # We already have an opendesktop-compliant desktop file, so this
109        # one for KDE is redundant.
110        rm -rf $(CURDIR)/debian/tuxpaint/usr/share/applnk
111
112# Build architecture-independent files here.
113binary-indep: build install
114        dh_testdir -i
115        dh_testroot -i
116        dh_installdocs -i
117        dh_installchangelogs -i
118        dh_installmenu -i
119        dh_installman -p tuxpaint-dev src/manpage/tp-magic-config.1
120        dh_link -i
121        dh_compress -i
122        dh_fixperms -i
123        # remove unnecessary executable permission
124        chmod 644 $(CURDIR)/debian/tuxpaint-data/usr/share/tuxpaint/starters/skyline-sf-dusk-back.jpeg
125        dh_installdeb -i
126        dh_gencontrol -i
127        dh_md5sums -i
128        dh_builddeb -i
129
130# Build architecture-dependent files here.
131binary-arch: build install
132        dh_testdir -a
133        dh_testroot -a
134        dh_installdocs -a
135        dh_installchangelogs -a docs/CHANGES.txt
136        dh_installmenu -a
137        dh_installcron -a
138        dh_installman -a src/manpage/tuxpaint.1 src/manpage/tuxpaint-import.1
139        dh_icons -a
140        dh_link -a
141        dh_strip -a
142        dh_compress -a
143        dh_fixperms -a
144        dh_installdeb -a
145        dh_shlibdeps -a
146        dh_gencontrol -a
147        dh_md5sums -a
148        dh_builddeb -a
149
150binary: binary-indep binary-arch
151.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.