~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-03-13 09:18:28 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090313091828-n4ktby5eca487uhv
Tags: 3:0.svn20090303-1ubuntu1+unstripped1
merge from ubuntu.jaunty branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
DEB_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
8
8
UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -r 's/[^:]+://; s/-[^-]+$$//')
9
9
SVN_VERSION := $(shell echo $(UPSTREAM_VERSION) | sed -nr 's/^[0-9.:-]+\.svn([0-9]+)$$/\1/p')
10
 
SHLIBS_VERSION := $(EPOCH)0.svn20090128-1
 
10
SHLIBS_VERSION := $(EPOCH)0.svn20090303-1
11
11
 
12
12
LIB_PKGS := $(shell sed -nr 's/^Package:[[:space:]]*(lib(avutil|avcodec|avdevice|avformat|avfilter|postproc|swscale)(-unstripped-)?[0-9]+)[[:space:]]*$$/\1/p' debian/control)
13
13
 
16
16
DEB_BUILD_OPTIONS += ,internalencoders
17
17
endif
18
18
 
 
19
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
20
NUMJOBS = -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
21
else
 
22
# on i386 and amd64, we query the system unless overriden by DEB_BUILD_OPTIONS
 
23
ifeq      ($(DEB_HOST_ARCH),i386)
 
24
NUMJOBS := -j$(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
 
25
else ifeq ($(DEB_HOST_ARCH),amd64)
 
26
NUMJOBS := -j$(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
 
27
endif
 
28
endif
 
29
 
19
30
internalencoders := $(findstring internalencoders,$(DEB_BUILD_OPTIONS))
20
31
 
21
32
include debian/confflags
47
58
build-%: build-stamp-%
48
59
build-stamp-%: configure-stamp-%
49
60
        dh_testdir
50
 
        $(MAKE) -C debian-$* -j $(NJOBS)
 
61
        $(MAKE) -C debian-$* $(NUMJOBS)
51
62
        touch $@
52
63
 
53
64
debian-shared/tools/qt-faststart: build-stamp-shared
136
147
endif
137
148
        dh_compress
138
149
        dh_fixperms
139
 
        dh_installdeb
140
150
# strict internal dependencies
141
151
ifeq ($(DEB_SOURCE),ffmpeg-debian)
142
152
        for pkg in $(LIB_PKGS); do \
161
171
            dh_makeshlibs -p"$$pkg" -V"$$pkg (>= $(SHLIBS_VERSION))"; \
162
172
        done
163
173
endif
 
174
        dh_installdeb
164
175
        dh_gencontrol -- -Vlib1394-dev="$(lib1394-dev)"
165
176
        dh_md5sums
166
177
        dh_builddeb