~ubuntu-branches/ubuntu/oneiric/avidemux/oneiric-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-08-20 08:42:44 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090820084244-bhh15xxd7x2vbcuh
Tags: 1:2.5.1+repack-0ubuntu1
* New upstream bugfix release (LP: #416066):
  - Re-enabled several video and audio encoders (regression introduced
    in 2.5.0)
  - Updated the FFmpeg libraries
  - More video encoders are now plugins
  - DV video encoder now supports more profiles
  - Fixed loading and saving issues with LAME, x264 and Xvid options
    (regression introduced in 2.5.0)
  - Fraps video decoding support
  - Lowpass-5 mode added to libavcodec deinterlacer filter plugin
  - Fixed formatting of parameters for various filters on 64-bit platforms
  - Updated libass
  - Fixed sizing of the bitrate control on various video encoder configure
    windows (regression introduced in 2.5.0)
  - Improved filter dialog for GTK+ interface
  - New navigation icons for GTK+ interface
  - Fixed the behaviour of several GTK+ open/save dialogs (regression
    introduced in 2.5.0)
  - asharp filter's Block Adaptive mode can now be disabled using the Qt
    interface
  - Re-enabled the colour chooser dialog using the Qt interface (regression
    introduced in 2.5.0)
  - GCC 4.4 support
  - Fixed issues with CMake build scripts when using multiple make jobs
    (regression introduced in 2.5.0)
* Remove debian/patches dir and drop all patches, now applied by upstream.
* Drop quilt support.
* debian/libavidemux0.install: Also install missing libraries.
* Move debian/install to debian/avidemux.install.
* debian/rules:
  - Build the internal ffmpeg version properly (thanks to Christian Marillat).
  - A bit of cleanup.
* debian/control:
  - Bump Standards-Version.
  - Update Homepage field.
  - Adjust libavidemux0 short description.
  - gtk -> GTK, qt -> QT.
  - Set myself as Maintainer.
* Repack the tarball to remove the debian/ dir provided by upstream:
  - Create debian/README.source.
  - Update debian/watch.
  - Add get-orig-source target to debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
4
2
 
5
3
#export DH_VERBOSE=1
6
4
 
7
 
include /usr/share/quilt/quilt.make
8
 
 
9
 
NCPUS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
10
 
 
11
 
CMAKE_SYSTEM_PROCESSOR = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
5
# Path to the debian directory
 
6
DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )
 
7
UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
12
8
 
13
9
configure: configure-stamp
14
 
configure-stamp: debian/stamp-patched
 
10
configure-stamp:
15
11
        dh_testdir
16
12
 
17
13
        mkdir build
 
14
        mkdir -p build/avidemux/ADM_libraries
 
15
        cp avidemux/ADM_libraries/ffmpeg_r19575.tar.gz build/avidemux/ADM_libraries
 
16
        cp avidemux/ADM_libraries/libswscale_r29474.tar.gz build/avidemux/ADM_libraries
18
17
 
19
 
        cd build && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" \
20
 
        cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_SKIP_RPATH:BOOL=YES
 
18
        cd build && cmake .. \
 
19
                -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_SKIP_RPATH:BOOL=YES
21
20
 
22
21
        touch $@
23
22
 
25
24
build-stamp: configure-stamp
26
25
        dh_testdir
27
26
 
 
27
        cd build && $(MAKE) ffmpeg
28
28
        cd build && $(MAKE)
29
29
 
30
30
        # all libraries are linked in a special directory
46
46
 
47
47
        touch $@
48
48
 
49
 
clean: unpatch
 
49
clean:
50
50
        dh_testdir
51
51
        dh_testroot
52
52
        rm -f build-stamp configure-stamp
113
113
        dh_md5sums -a
114
114
        dh_builddeb -a
115
115
 
 
116
get-orig-source:
 
117
        cd $(DEBIAN_DIR)/.. && uscan --force-download
 
118
        tar xf ../avidemux_$(UPSTREAM_VERSION).tar.gz
 
119
        rm ../avidemux_$(UPSTREAM_VERSION).tar.gz \
 
120
        ../avidemux_$(UPSTREAM_VERSION).orig.tar.gz
 
121
        mv avidemux_$(UPSTREAM_VERSION) avidemux-$(UPSTREAM_VERSION)+repack
 
122
        tar cf ../avidemux_$(UPSTREAM_VERSION)+repack.orig.tar \
 
123
        --exclude=debian avidemux-$(UPSTREAM_VERSION)+repack
 
124
        gzip -9fn ../avidemux_$(UPSTREAM_VERSION)+repack.orig.tar
 
125
        rm -r avidemux-$(UPSTREAM_VERSION)+repack
 
126
 
116
127
binary: binary-indep binary-arch
117
128
.PHONY: build clean binary-indep binary-arch binary install configure