blob: bfd68eb3e21c0fb461c60e388b3c9632178dbba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#Remove the dash after cvs below when 0.4.9 changes in PV
PV = "0.4.9-pre1+cvs-${SRCDATE}"
DESCRIPTION = "ffmpeg"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "zlib libvorbis faac liba52 lame"
LICENSE = "GPL"
PR = "r1"
S = "${WORKDIR}/ffmpeg"
DEFAULT_PREFERENCE = "-1"
inherit autotools
SRC_URI = "cvs://anonymous@mplayerhq.hu/cvsroot/ffmpeg;module=ffmpeg \
file://configure.patch;patch=0 \
file://common.patch;patch=1 \
file://soname.patch;patch=1 \
"
TARGET_LDFLAGS_append = " -lm -la52 "
EXTRA_OECONF=" \
--enable-mp3lame \
--enable-vorbis \
--enable-faac \
--enable-a52 \
--enable-a52bin \
--enable-pp \
# --enable-shared-pp \
--enable-shared \
--disable-amr_nb \
--enable-amr_nb-fixed \
--disable-amr_wb \
--enable-pthreads \
--enable-gpl \
--enable-zlib \
\
--disable-audio-beos \
--disable-v4l \
--disable-dv1394 \
--disable-debug \
--disable-ffserver \
--disable-ffplay \
\
--cross-prefix=${TARGET_PREFIX} \
--extra-cflags=\$(TARGET_CFLAGS) \
--extra-ldflags=\$(TARGET_LDFLAGS) \
--extra-libs=\$(TARGET_LDFLAGS) \
\
--cpu=${PACKAGE_ARCH} \
--prefix=${D}${prefix} \
--mandir=${D}${prefix}/share/man \
"
PACKAGES += "libavcodec libavcodec-dev libavformat libavformat-dev"
FILES_${PN} = "${bindir}"
FILES_${PN}-dev = "${includedir}"
FILES_libavcodec = "${libdir}/libavcodec*.so.*"
FILES_libavcodec-dev = "${libdir}/libavcodec*.so ${libdir}/libavcodec*.la ${libdir}/libavcodec*.a"
FILES_libavformat = "${libdir}/libavformat*.so.*"
FILES_libavformat-dev = "${libdir}/libavformat*.so ${libdir}/libavformat*.la ${libdir}/libavformat*.a"
# We do this because the install program is called with -s which causes it to call "strip" and it then mangles cross compiled stuff..
PATH_prepend="${CROSS_DIR}/${TARGET_SYS}/bin:"
do_configure_prepend() {
export CC="${CC}"
}
do_stage() {
oe_libinstall -a -so -C libavcodec libavcodec ${STAGING_LIBDIR}
oe_libinstall -a -so -C libavformat libavformat ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/ffmpeg
install -m 0644 ${S}/libavcodec/avcodec.h ${STAGING_INCDIR}/ffmpeg/avcodec.h
install -m 0644 ${S}/libavcodec/common.h ${STAGING_INCDIR}/ffmpeg/common.h
install -m 0644 ${S}/libavcodec/rational.h ${STAGING_INCDIR}/ffmpeg/rational.h
install -m 0644 ${S}/libavformat/avformat.h ${STAGING_INCDIR}/ffmpeg/avformat.h
install -m 0644 ${S}/libavformat/avio.h ${STAGING_INCDIR}/ffmpeg/avio.h
install -m 0644 ${S}/libavformat/rtp.h ${STAGING_INCDIR}/ffmpeg/rtp.h
install -m 0644 ${S}/libavformat/rtsp.h ${STAGING_INCDIR}/ffmpeg/rtsp.h
install -m 0644 ${S}/libavformat/rtspcodes.h ${STAGING_INCDIR}/ffmpeg/rtspcodes.h
}
|