~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
#export DH_VERBOSE=1
4
4
 
5
 
include /usr/share/dpatch/dpatch.make
 
5
include /usr/share/quilt/quilt.make
6
6
 
7
7
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8
8
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
17
        NCPUS:=1
18
18
endif
19
19
 
20
 
CFLAGS = -Wall -g
 
20
CFLAGS += -I/usr/include/ffmpeg
21
21
 
22
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23
 
        CFLAGS += -O0
 
22
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
 
23
        CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
24
24
else
25
 
        CFLAGS += -O2
 
25
        CROSS= --build $(DEB_BUILD_GNU_TYPE)
26
26
endif
27
27
 
28
28
configure: configure-stamp
29
 
configure-stamp: patch-stamp
 
29
configure-stamp: debian/stamp-patched
30
30
        dh_testdir
31
31
 
32
 
        CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
33
 
        --mandir=\$${prefix}/share/man --host=$(DEB_HOST_GNU_TYPE) \
34
 
        --build=$(DEB_BUILD_GNU_TYPE) --without-forced-embedded-ffmpeg
 
32
        ./configure --prefix=/usr $(CROSS) --mandir=\$${prefix}/share/man \
 
33
        --without-forced-embedded-ffmpeg LDFLAGS="-Wl,--as-needed" \
 
34
        CFLAGS="$(CFLAGS)" LIBS="-lavdevice"
35
35
 
36
36
        touch configure-stamp
37
37
 
57
57
        find -name *.a | xargs -r rm
58
58
        -rm ffmpeg/config.{log,h,err}
59
59
 
60
 
        find ffmpeg -type l | xargs -r rm 
 
60
        find ffmpeg -type l | xargs -r rm
61
61
 
62
62
        debian/rules unpatch
63
63
 
64
64
        dh_clean intltool-extract intltool-update intltool-merge \
65
 
        ffmpeg/version.h
 
65
        ffmpeg/version.h net.jarre_de_the.Xvidcap.service
66
66
 
67
67
install: build
68
68
        dh_testdir
99
99
        dh_builddeb
100
100
 
101
101
binary: binary-indep binary-arch
102
 
.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch
 
102
.PHONY: build clean binary-indep binary-arch binary install configure