~team-xbmc-gutsy/xbmc/debian

« back to all changes in this revision

Viewing changes to rules

  • Committer: Oumar Aziz OUATTARA
  • Date: 2008-05-31 21:51:04 UTC
  • Revision ID: wattazoum@wattazoum-laptop-20080531215104-b8y3r8frfvzqlwjf
libbz2 added

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
23
23
 
24
24
 
25
 
config.status: patch configure
 
25
config.status: configure
26
26
        dh_testdir
27
27
        # Add here commands to configure the package.
28
28
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
43
43
        $(MAKE) 
44
44
        touch $@
45
45
 
46
 
 
47
 
clean: clean-patched unpatch
48
 
clean-patched:
 
46
build-indep: build-indep-stamp
 
47
build-indep-stamp:  config.status
 
48
 
 
49
        # Add here commands to compile the indep part of the package.
 
50
        #$(MAKE) doc
 
51
        touch $@
 
52
 
 
53
clean:
49
54
        dh_testdir
50
55
        dh_testroot
51
 
        rm -f build-arch-stamp
 
56
        rm -f build-arch-stamp build-indep-stamp 
52
57
 
53
58
        # Add here commands to clean up after the build process.
54
59
        -$(MAKE) distclean
56
61
 
57
62
        dh_clean 
58
63
 
59
 
patch: patch-stamp
60
 
patch-stamp:
61
 
        dpatch apply-all
62
 
        dpatch cat-all >patch-stamp
63
 
 
64
 
unpatch:
65
 
        dpatch deapply-all
66
 
        rm -rf patch-stamp debian/patched
67
 
 
68
 
install: install-arch
 
64
install: install-indep install-arch
 
65
install-indep:
 
66
        dh_testdir
 
67
        dh_testroot
 
68
        dh_clean -k -i 
 
69
        dh_installdirs -i
 
70
 
 
71
        # Add here commands to install the arch part of the package into 
 
72
        # debian/tmp/usr/share/xbmc
 
73
        make install-datas prefix=$(CURDIR)/debian/tmp/usr/
 
74
        make eventclients prefix=$(CURDIR)/debian/tmp/usr/ installdir=/usr
 
75
        mkdir -p $(CURDIR)/debian/tmp/usr/share/applications $(CURDIR)/debian/tmp/usr/share/pixmaps
 
76
        cp -a $(CURDIR)/tools/Linux/xbmc.png $(CURDIR)/debian/tmp/usr/share/pixmaps/
 
77
        cp -a $(CURDIR)/tools/Linux/xbmc.desktop $(CURDIR)/debian/tmp/usr/share/applications/
 
78
 
 
79
        dh_install -i --sourcedir=$(CURDIR)/debian/tmp
69
80
 
70
81
install-arch:
71
82
        dh_testdir
99
110
        dh_gencontrol
100
111
        dh_md5sums
101
112
        dh_builddeb
102
 
 
 
113
# Build architecture independant packages using the common target.
 
114
binary-indep: build-indep install-indep
 
115
        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 
116
        
103
117
# Build architecture dependant packages using the common target.
104
118
binary-arch: build-arch install-arch
105
119
        $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
106
120
 
107
 
binary: binary-arch
108
 
.PHONY: build clean binary-arch binary install install-arch 
 
121
binary: binary-arch binary-indep
 
122
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch