~motumedia/libav/packaging-trunk

« back to all changes in this revision

Viewing changes to rules

  • Committer: Rico Tzschichholz
  • Date: 2015-05-12 05:37:12 UTC
  • Revision ID: ricotz@ubuntu.com-20150512053712-tphjidjvvph7hiq1
Merge with 6:11.3-3

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 := $(EPOCH)10~beta1~
 
7
SHLIBS_VERSION := $(EPOCH)11~beta1
8
8
 
9
9
# The libavcodec-extra package is necessary because it links against
10
10
# libraries that are GPLv3 licensed. Make sure that you do not link
147
147
        $(foreach flavor,$(filter-out static,$(FLAVORS)),$(call install_flavor_extra,$(flavor)))
148
148
        dh_install $(addprefix -p,$(LIB_EXTRA_PKGS)) --fail-missing \
149
149
                --sourcedir=debian/tmp/extra
150
 
        $(call call_and_install_avconv_dump,libavformat55,formats)
151
 
        $(call call_and_install_avconv_dump,libavcodec55,codecs)
152
 
        $(call call_and_install_avconv_dump,libavcodec-extra-55,codecs)
 
150
        $(call call_and_install_avconv_dump,libavformat56,formats)
 
151
        $(call call_and_install_avconv_dump,libavcodec56,codecs)
 
152
        $(call call_and_install_avconv_dump,libavcodec-extra-56,codecs)
153
153
 
154
154
binary-indep:
155
155
        dh_testdir
184
184
        # operate e.g. the -extra- packages, produce shlibs that have alternative dependencies
185
185
        for pkg in $(LIB_EXTRA_PKGS); do \
186
186
            npkg=$$(echo "$$pkg" | sed -r 's/-extra-//'); \
187
 
            dh_makeshlibs -p"$$pkg" -V"$$npkg (>= $(SHLIBS_VERSION)) | $$pkg (>= $(EPOCH)$(UPSTREAM_VERSION))"; \
 
187
            dh_makeshlibs -p"$$pkg" -V"$$npkg (>= $(SHLIBS_VERSION)) | $$pkg (>= $(SHLIBS_VERSION))"; \
188
188
        done
189
189
        # operate on packages with -extra- variants such as libavcodec54 - produce shlibs that have alternative dependencies
190
190
        for pkg in $(LIB_PKGS2); do \
191
191
            upkg=$$(echo "$$pkg" | sed -r 's/([0-9]+)$$/-extra-\1/'); \
192
 
            dh_makeshlibs -p"$$pkg" -V"$$pkg (>= $(SHLIBS_VERSION)) | $$upkg (>= $(EPOCH)$(UPSTREAM_VERSION))"; \
 
192
            dh_makeshlibs -p"$$pkg" -V"$$pkg (>= $(SHLIBS_VERSION)) | $$upkg (>= $(SHLIBS_VERSION))"; \
193
193
        done
194
194
        dh_shlibdeps
195
195
        dh_installdeb -a