~ubuntu-branches/ubuntu/raring/libav-extra/raring-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler, Fabian Greffrath, Reinhard Tartler
  • Date: 2012-01-24 08:02:29 UTC
  • Revision ID: package-import@ubuntu.com-20120124080229-d519ykp525paw56f
Tags: 4:0.8.0.1
[ Fabian Greffrath ]
* Properly set the library paths for multiarch and shared libs in
  debian/*.install instead of using brace expansion and asterisks.
* Fix debian/*.install file generation on archs (e.g. armel) that build
  more than only one optimized shared library (Closes: #656184).

[ Reinhard Tartler ]
* Add breaks on old mplayer versions (Closes: #657326)
* extend package description to include a note what libav actually is
* Urgency medium because new upstream releases fixes security issues
* Rebuild against libav 0.8
* Tighten build dependency on libav-source (>= 0.8-1~)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
DEB_SOURCE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
5
5
DEB_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
6
6
UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -r 's/[^:]+://; s/-[^-]+$$//')
7
 
SHLIBS_VERSION := 4:0.8~beta1~
8
 
 
9
7
BUILT_USING=$(shell dpkg-query --showformat='$${Source} (= $${Version})' --show libav-source)
 
8
SHLIBS_VERSION := 4:0.8-1~
10
9
 
11
10
LIB_PKGS := $(shell sed -nr 's/^Package:[[:space:]]*(lib(avutil|avcodec|avdevice|avformat|avfilter|postproc|swscale)(-extra-)?[0-9]+)[[:space:]]*$$/\1/p' debian/control)
 
11
DEV_PKGS := $(shell echo $(LIB_PKGS) | sed 's/[0-9]\+\>/-dev/g')
12
12
 
13
13
# Support multiple makes at once
14
14
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
23
23
endif
24
24
 
25
25
include debian/confflags
 
26
OPT_FLAVORS := $(filter-out static shared, $(FLAVORS))
26
27
 
27
28
$(info FLAVORS = $(FLAVORS))
28
29
$(info DEB_BUILD_OPTIONS = $(DEB_BUILD_OPTIONS))
33
34
libav/configure:
34
35
        tar xvf /usr/src/libav-source.tar.gz
35
36
 
 
37
define dh_install_file_opt_flavor
 
38
          grep @DEB_HOST_MULTIARCH_OPT@ < $(1).in | \
 
39
          sed 's:@DEB_HOST_MULTIARCH_OPT@:$(DEB_HOST_MULTIARCH)/$($(2)_shlibdir):g' >> $(1)
 
40
 
 
41
endef
 
42
 
 
43
DH_INSTALL_FILES := $(foreach pkg, $(LIB_PKGS), debian/$(pkg).install)
 
44
$(DH_INSTALL_FILES):
 
45
        sed 's/@DEB_HOST_MULTIARCH\(_OPT\)\?@/$(DEB_HOST_MULTIARCH)/g' $@.in > $@
 
46
        $(foreach opt_flavor,$(OPT_FLAVORS),$(call dh_install_file_opt_flavor,$@,$(opt_flavor)))
 
47
 
36
48
configure-%: configure-stamp-%
37
49
configure-stamp-%: libav/configure
38
50
        dh_testdir
66
78
            $(addprefix configure-stamp-, $(FLAVORS)) \
67
79
            build-doxy-stamp
68
80
        rm -rf $(addprefix debian-, $(FLAVORS)) doxy libav
69
 
        dh_clean
 
81
        dh_clean $(DH_INSTALL_FILES)
70
82
 
71
83
get-orig-source:
72
84
        dh_testdir
79
91
 
80
92
endef
81
93
 
82
 
install: build
 
94
install: build $(DH_INSTALL_FILES)
83
95
        dh_testdir
84
96
        dh_testroot
85
97
        dh_prep