summaryrefslogtreecommitdiff
path: root/recipes/ffmpeg/ffmpeg_0.4.9-pre1.bb
blob: 63bfde17e8ba722df43e54368726e76b9bb5ea8a (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
require ffmpeg.inc

PR = "${INC_PR}.0"

SRC_URI = "${SOURCEFORGE_MIRROR}/ffmpeg/ffmpeg-${PV}.tar.gz \
           file://configure.patch;apply=yes \
           file://gcc4.patch;apply=yes \
           file://soname.patch;apply=yes \
	   file://Makefile-avformat-use-LDFLAGS.patch;apply=yes \
           file://Makefile-add-liblame.patch;apply=yes \
           file://install-must-not-strip.patch;apply=yes \
          "

EXTRA_OECONF += " \
        \
        --prefix=${D}${prefix} \
        --mandir=${D}${prefix}/share/man \
        \
        --enable-mp3lame \
        --enable-vorbis \
        --enable-faad \
        --enable-faadbin \
        --enable-faac \
        --enable-a52 \
        --enable-a52bin \
        --enable-shared-pp \
        --disable-amr_nb \
        --enable-amr_nb-fixed \
        --disable-amr_wb \
        \
        --cpu=${TARGET_ARCH} \
        --tune=${PACKAGE_ARCH} \
        --extra-libs="-la52" \
        --extra-ldflags="-L${STAGING_LIBDIR}" \
        \
        --disable-audio-beos \
        --disable-v4l \
        --disable-dv1394 \
"

EXTRA_OECONF_append_x86 += " \
        --disable-mmx \
"

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
}

PACKAGES += "libavcodec libavcodec-dev \ 
             libavformat libavformat-dev"

FILES_libavcodec = "${libdir}/libavcodec*.so.*"
FILES_libavcodec-dev = "${libdir}/libavcodec*.so"
FILES_libavformat = "${libdir}/libavformat*.so.*"
FILES_libavformat-dev = "${libdir}/libavformat*.so"

SRC_URI[md5sum] = "ea5587e3c66d50b1503b82ac4179c303"
SRC_URI[sha256sum] = "0e9e771114a75c461e813538f129eb05a251b8fc6591a5563420700b8e312da0"