~ubuntu-branches/ubuntu/quantal/vlc/quantal

« back to all changes in this revision

Viewing changes to contrib/src/src/vpx/rules.mak

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-03-24 01:33:03 UTC
  • mfrom: (1.1.46) (3.5.39 sid)
  • Revision ID: package-import@ubuntu.com-20120324013303-km51kpl9kixydb8g
Tags: 2.0.1-2
Really add the preinst from Didier Raboud to vlc to drop it's doc directory
before unpacking a symlink to vlc-nox's over it. (Closes: #613121, #662217)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# libvpx
2
 
 
3
 
VPX_VERSION := v1.0.0
4
 
VPX_URL := http://webm.googlecode.com/files/libvpx-$(VPX_VERSION).tar.bz2
5
 
 
6
 
$(TARBALLS)/libvpx-$(VPX_VERSION).tar.bz2:
7
 
        $(call download,$(VPX_URL))
8
 
 
9
 
.sum-vpx: libvpx-$(VPX_VERSION).tar.bz2
10
 
 
11
 
ifneq ($(which bash),/bin/bash)
12
 
PATCH_BASH_LOCATION=sed -i.orig s,^\#!/bin/bash,\#!`which bash`,g `grep -Rl ^\#!/bin/bash libvpx-$(VPX_VERSION)`
13
 
else
14
 
PATCH_BASH_LOCATION=true #bash is in /bin
15
 
endif
16
 
 
17
 
libvpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx
18
 
        $(UNPACK)
19
 
        $(APPLY) $(SRC)/vpx/libvpx-no-cross.patch
20
 
        $(APPLY) $(SRC)/vpx/libvpx-no-abi.patch
21
 
        $(PATCH_BASH_LOCATION)
22
 
        $(MOVE)
23
 
 
24
 
DEPS_vpx =
25
 
 
26
 
ifdef HAVE_CROSS_COMPILE
27
 
VPX_CROSS := $(HOST)-
28
 
else
29
 
VPX_CROSS :=
30
 
endif
31
 
 
32
 
ifeq ($(ARCH),arm)
33
 
VPX_ARCH := armv7
34
 
else ifeq ($(ARCH),i386)
35
 
VPX_ARCH := x86
36
 
else ifeq ($(ARCH),mips)
37
 
VPX_ARCH := mips32
38
 
else ifeq ($(ARCH),ppc)
39
 
VPX_ARCH := ppc32
40
 
else ifeq ($(ARCH),ppc64)
41
 
VPX_ARCH := ppc64
42
 
else ifeq ($(ARCH),sparc)
43
 
VPX_ARCH := sparch
44
 
else ifeq ($(ARCH),x86_64)
45
 
VPX_ARCH := x86_64
46
 
endif
47
 
 
48
 
ifdef HAVE_LINUX
49
 
VPX_OS := linux
50
 
else ifdef HAVE_MACOSX
51
 
ifeq ($(ARCH),arm)
52
 
VPX_OS := darwin
53
 
else
54
 
ifeq ($(OSX_VERSION),10.5)
55
 
VPX_OS := darwin9
56
 
else
57
 
VPX_OS := darwin10
58
 
endif
59
 
endif
60
 
else ifdef HAVE_SOLARIS
61
 
VPX_OS := solaris
62
 
else ifdef HAVE_WIN64 # must be before WIN32
63
 
VPX_OS := win64
64
 
else ifdef HAVE_WIN32
65
 
VPX_OS := win32
66
 
else ifdef HAVE_BSD
67
 
VPX_OS := linux
68
 
endif
69
 
 
70
 
VPX_TARGET := generic-gnu
71
 
ifdef VPX_ARCH
72
 
ifdef VPX_OS
73
 
VPX_TARGET := $(VPX_ARCH)-$(VPX_OS)-gcc
74
 
endif
75
 
endif
76
 
 
77
 
VPX_CONF := \
78
 
        --enable-runtime-cpu-detect \
79
 
        --disable-install-bins \
80
 
        --disable-install-srcs \
81
 
        --disable-install-libs \
82
 
        --disable-install-docs \
83
 
        --disable-examples \
84
 
        --disable-vp8-decoder
85
 
ifndef HAVE_WIN32
86
 
VPX_CONF += --enable-pic
87
 
endif
88
 
 
89
 
.vpx: libvpx
90
 
        cd $< && CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \
91
 
                $(VPX_CONF)
92
 
        cd $< && $(MAKE) install
93
 
        rm -Rf -- "$(PREFIX)/include/vpx/"
94
 
        mkdir -p -- "$(PREFIX)/include/vpx/"
95
 
        # Of course! Why the hell would it be listed or in make install?
96
 
        cp $</vpx/*.h $</vpx_ports/*.h "$(PREFIX)/include/vpx/"
97
 
        rm -f -- "$(PREFIX)/include/vpx/config.h"
98
 
        $(RANLIB) $</libvpx.a
99
 
        # Of course! Why the hell would it be listed or in make install?
100
 
        mkdir -p -- "$(PREFIX)/lib"
101
 
        install -- $</libvpx.a "$(PREFIX)/lib/libvpx.a"
102
 
        touch $@