Rev 18 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18 | Rev 19 | ||
---|---|---|---|
1 | #!/usr/bin/make -f |
1 | #!/usr/bin/make -f |
2 | # -*- makefile -*- |
2 | # -*- makefile -*- |
3 | 3 | ||
4 | # Uncomment this to turn on verbose mode. |
4 | # Uncomment this to turn on verbose mode. |
5 | #export DH_VERBOSE=1 |
5 | #export DH_VERBOSE=1 |
6 | 6 | ||
7 | # set some variables |
7 | # set some variables |
8 | ICONDIR=usr/share/icons |
8 | ICONDIR=usr/share/icons |
9 | SHAREDIR=usr/share/crystalcursors |
9 | SHAREDIR=usr/share/crystalcursors |
10 | WRAPPERDIR=etc/X11/cursors |
10 | WRAPPERDIR=etc/X11/cursors |
11 | 11 | ||
12 | build: build-indep |
12 | build: build-indep |
13 | 13 | ||
14 | build-arch: |
14 | build-arch: |
15 | build-indep: build-stamp |
15 | build-indep: build-stamp |
16 | build-stamp: |
16 | build-stamp: |
17 | dh_testdir |
17 | dh_testdir |
18 | 18 | ||
19 | $(MAKE) |
19 | $(MAKE) |
20 | 20 | ||
21 | touch build-stamp |
21 | touch build-stamp |
22 | 22 | ||
23 | clean: |
23 | clean: |
24 | dh_testdir |
24 | dh_testdir |
25 | dh_testroot |
25 | dh_testroot |
26 | rm -f build-stamp configure-stamp |
26 | rm -f build-stamp configure-stamp |
27 | 27 | ||
28 | $(MAKE) clean |
28 | $(MAKE) clean |
29 | 29 | ||
30 | dh_clean |
30 | dh_clean |
31 | 31 | ||
32 | install: build-indep |
32 | install: build-indep |
33 | dh_testdir |
33 | dh_testdir |
34 | dh_testroot |
34 | dh_testroot |
35 | dh_prep |
35 | dh_prep |
36 | dh_installdirs |
36 | dh_installdirs |
37 | 37 | ||
38 | # Add here commands to install the package into debian/crystalcursors. |
38 | # Add here commands to install the package into debian/crystalcursors. |
39 | $(MAKE) install PREFIX=$(CURDIR)/debian/crystalcursors/$(ICONDIR) |
39 | $(MAKE) install PREFIX=$(CURDIR)/debian/crystalcursors/$(ICONDIR) |
40 | find $(CURDIR)/debian/crystalcursors/$(ICONDIR) -type f -exec chmod 644 {} \; |
40 | find $(CURDIR)/debian/crystalcursors/$(ICONDIR) -type f -exec chmod 644 {} \; |
41 | find $(CURDIR)/debian/crystalcursors/$(ICONDIR) -type d -exec chmod 755 {} \; |
41 | find $(CURDIR)/debian/crystalcursors/$(ICONDIR) -type d -exec chmod 755 {} \; |
42 | 42 | ||
43 | # Don't overwrite system's default xcursor, just provide the directory |
43 | # Don't overwrite system's default xcursor, just provide the directory |
44 | rm -r $(CURDIR)/debian/crystalcursors/$(ICONDIR)/default/* |
44 | rm -r $(CURDIR)/debian/crystalcursors/$(ICONDIR)/default/* |
45 | 45 | ||
46 | # There are no left-hand "cross" cursors, so don't symlink to them: |
46 | # There are no left-hand "cross" cursors, so don't symlink to them: |
47 | rm $(CURDIR)/debian/crystalcursors/$(ICONDIR)/crystal*left/cursors/plus |
47 | rm $(CURDIR)/debian/crystalcursors/$(ICONDIR)/crystal*left/cursors/plus |
48 | 48 | ||
49 | # Find *.theme and copy 'em to wrapper-location (see #365072) |
49 | # Find *.theme and copy 'em to wrapper-location (see #365072) |
50 | # We have to change the Inherits line in (only) in the wrapper *.themes: |
50 | # We have to change the Inherits line in (only) in the wrapper *.themes: |
51 | # 1) find .themes |
51 | # 1) find .themes |
52 | # 2) remove lines with "Inherits" and save as tmp |
52 | # 2) remove lines with "Inherits" and save as tmp |
53 | # 3) write new Inherits-line with name of the directory in /usr/share/icons |
53 | # 3) write new Inherits-line with name of the directory in /usr/share/icons |
54 | # -- I know this is tricky, but I have not yet found a more elegant way to make |
54 | # -- I know this is tricky, but I have not yet found a more elegant way to make |
55 | # crystalcursors work with debian's update-alternative |
55 | # crystalcursors work with debian's update-alternative |
56 | # In addition, add new symlinks that Qt 4 looks for |
56 | # In addition, add new symlinks that Qt 4 looks for |
57 | 57 | ||
58 | cd $(CURDIR)/debian/crystalcursors/$(ICONDIR); \ |
58 | cd $(CURDIR)/debian/crystalcursors/$(ICONDIR); \ |
59 | for theme in crystal*; do \ |
59 | for theme in crystal*; do \ |
60 | grep -v Inherits $(CURDIR)/debian/crystalcursors/$(ICONDIR)/$${theme}/index.theme > tmp ; \ |
60 | grep -v Inherits $(CURDIR)/debian/crystalcursors/$(ICONDIR)/$${theme}/index.theme > tmp ; \ |
61 | echo "Inherits = $${theme}" >> tmp ; \ |
61 | echo "Inherits = $${theme}" >> tmp ; \ |
62 | install -m 644 tmp $(CURDIR)/debian/crystalcursors/$(WRAPPERDIR)/$${theme}.theme; \ |
62 | install -m 644 tmp $(CURDIR)/debian/crystalcursors/$(WRAPPERDIR)/$${theme}.theme; \ |
63 | rm tmp; \ |
63 | rm tmp; \ |
64 | while read target link; do \ |
64 | while read target link; do \ |
65 | if [ -e $$theme/cursors/$$target ]; then ln -sf $$target $$theme/cursors/$$link; fi; \ |
65 | if [ -e $$theme/cursors/$$target ]; then ln -sf $$target $$theme/cursors/$$link; fi; \ |
66 | done < $(CURDIR)/debian/extra_symlinks;\ |
66 | done < $(CURDIR)/debian/extra_symlinks;\ |
67 | done |
67 | done |
68 | 68 | ||
69 | binary-indep: build-indep install |
69 | binary-indep: build-indep install |
70 | dh_testdir |
70 | dh_testdir |
71 | dh_testroot |
71 | dh_testroot |
72 | dh_installchangelogs CHANGELOG |
72 | dh_installchangelogs CHANGELOG |
73 | dh_installdocs |
73 | dh_installdocs |
74 | # dh_install |
74 | # dh_install |
75 | dh_compress |
75 | dh_compress |
76 | dh_fixperms |
76 | dh_fixperms |
77 | dh_installdeb |
77 | dh_installdeb |
78 | dh_shlibdeps |
78 | dh_shlibdeps |
79 | dh_gencontrol |
79 | dh_gencontrol |
80 | dh_md5sums |
80 | dh_md5sums |
81 | dh_builddeb |
81 | dh_builddeb |
82 | 82 | ||
83 | binary-arch: |
83 | binary-arch: |
84 | # No arch-dependent packages |
84 | # No arch-dependent packages |
85 | 85 | ||
86 | binary: binary-indep |
86 | binary: binary-indep |
87 | .PHONY: build-indep build clean binary-indep binary-arch binary install configure |
87 | .PHONY: build-indep build clean binary-indep binary-arch binary install configure |