~ubuntu-branches/ubuntu/natty/vlc/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-03-07 16:26:55 UTC
  • mfrom: (3.5.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100307162655-y3v4nvzo4i6wivpt
Tags: 1.0.5-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - build and install the libx264 plugin
  - add Xb-Npp header to vlc package

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
 
120
120
# A few shortcuts
121
121
VIDDIR := usr/share/vlc
122
 
PIXDIR := usr/share/pixmaps
123
122
 
124
123
build: build-stamp
125
124
build-stamp: $(QUILT_STAMPFN)
188
187
        ln -s /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf debian/tmp/usr/share/vlc/skins2/fonts/FreeSans.ttf
189
188
        ln -s /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf debian/tmp/usr/share/vlc/skins2/fonts/FreeSansBold.ttf
190
189
        rm -rf debian/tmp/usr/share/man/man1
191
 
        # Move stuff around
192
 
        mkdir -p debian/tmp/$(PIXDIR)
193
 
        mv debian/tmp/$(VIDDIR)/vlc48x48.png debian/tmp/$(PIXDIR)/vlc.png
 
190
        # Move icons around
 
191
        mkdir -p debian/tmp/usr/share/icons/hicolor/16x16/apps
 
192
        mv debian/tmp/$(VIDDIR)/vlc16x16.png debian/tmp/usr/share/icons/hicolor/16x16/apps/vlc.png
 
193
        mkdir -p debian/tmp/usr/share/icons/hicolor/32x32/apps
 
194
        mv debian/tmp/$(VIDDIR)/vlc32x32.png debian/tmp/usr/share/icons/hicolor/32x32/apps/vlc.png
 
195
        mkdir -p debian/tmp/usr/share/icons/hicolor/48x48/apps
 
196
        mv debian/tmp/$(VIDDIR)/vlc48x48.png debian/tmp/usr/share/icons/hicolor/48x48/apps/vlc.png
 
197
        mv debian/tmp/$(VIDDIR)/vlc48x48-christmas.png debian/tmp/usr/share/icons/hicolor/48x48/apps/vlc-christmas.png
 
198
        mkdir -p debian/tmp/usr/share/icons/hicolor/128x128/apps
 
199
        mv debian/tmp/$(VIDDIR)/vlc128x128.png debian/tmp/usr/share/icons/hicolor/128x128/apps/vlc.png
 
200
        mv debian/tmp/$(VIDDIR)/vlc128x128-christmas.png debian/tmp/usr/share/icons/hicolor/128x128/apps/vlc-christmas.png
194
201
        mv debian/tmp/$(VIDDIR)/vlc32x32.xpm debian/tmp/$(VIDDIR)/vlc.xpm
195
202
        # Install stuff
196
203
        dh_install -si --fail-missing --sourcedir=debian/tmp
200
207
        ln -s /etc/vlc/http/.hosts debian/vlc-data/usr/share/vlc/http/.hosts
201
208
 
202
209
        #install BTS stuff
203
 
        mkdir -p  debian/vlc-nox/usr/share/bug/vlc-nox
204
 
        cp debian/bug/* debian/vlc-nox/usr/share/bug/vlc-nox
205
 
        # Clean up
206
 
        rm -f debian/vlc/$(VIDDIR)/*.png
 
210
        for pkg in vlc-nox vlc-data; do \
 
211
            mkdir -p  debian/$${pkg}/usr/share/bug/$${pkg}; \
 
212
            cp debian/bug/* debian/$${pkg}/usr/share/bug/$${pkg}; \
 
213
        done
207
214
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
208
215
        # Check that we did not install a plugin linked with libX11 in vlc-nox
209
216
        BORKED=no; \