~motumedia/xine-ui/ubuntu

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Reinhard Tartler
  • Date: 2007-01-30 10:33:18 UTC
  • mfrom: (2541.1.34 xine-ui.0.99.4+cvs)
  • Revision ID: siretart@tauware.de-20070130103318-evmro8n4ydtj3cwb
merge debian changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
configure: configure-stamp
52
52
configure-stamp:
53
53
        dh_testdir
54
 
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
55
 
                    --enable-vdr-keys \
 
54
        ./autogen.sh \
 
55
                --prefix=/usr --mandir=\$${prefix}/share/man \
 
56
                --with-aalib \
 
57
                --enable-vdr-keys \
56
58
                    $(HOST_OPTION) || \
57
59
        (echo "=== config.log: ==="; cat config.log; false)
58
60
        touch configure-stamp
74
76
        dh_testroot
75
77
        rm -f build-stamp configure-stamp
76
78
        -$(MAKE) distclean
77
 
        # strange dangling symlinks
78
 
        rm -f doc/man/*/xine-bugreport.1
 
79
        # strange dangling symlinks  
 
80
        -find . -name Makefile.in -print | xargs rm
 
81
        rm -f doc/man/*/xine-bugreport.1 misc/xine-bugreport
 
82
        rm -f po/*.gmo src/xitk/xine-toolkit/po/*.gmo
 
83
        rm -f compile config.guess configure depcomp install-sh missing 
 
84
        rm -f misc/xine-check po/stamp-po src/xitk/xine-toolkit/po/stamp-po
79
85
        dh_clean
80
86
 
81
87
install: build
87
93
        mkdir -p debian/xine-ui/usr/share/doc/xine-ui
88
94
        install -m 644 README debian/xine-ui/usr/share/doc/xine-ui
89
95
        # these must not be compressed, or xine's online help will fail:
90
 
        cd debian/xine-ui/usr/share/doc/xine-ui; \
 
96
        -cd debian/xine-ui/usr/share/doc/xine-ui; \
91
97
        mkdir -p ../../xine/doc; \
92
 
        mv README.config_?? README_?? FAQ_?? ../../xine/doc; \
 
98
        mv README.config_?? README_?? ../../xine/doc; \
93
99
        ln -s ../../xine/doc/* .
94
100
        # install .desktop file where it belongs
95
101
        mkdir -p debian/xine-ui/usr/share/applications
122
128
        dh_builddeb
123
129
 
124
130
binary: binary-indep binary-arch
125
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
131
 
 
132
UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep ^Version | sed "s/Version: //" | sed "s/-.$$//")
 
133
#       this monstrum works for me, please double check it before using!
 
134
get-orig-source:
 
135
        current_dir=$(shell basename $(PWD)) ; cd .. ; \
 
136
        tar cz --exclude .bzr --exclude debian --exclude .cvsignore \
 
137
                -f xine-ui_$(UPSTREAM_VERSION).orig.tar.gz \
 
138
                $$current_dir
 
139
 
 
140
get-cvs-orig-source: get-orig-source
 
141
.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source