1 PV = "0.4.9-pre1+cvs-${CVSDATE}"
5 DEPENDS = "zlib libvorbis faac liba52 lame"
8 S = "${WORKDIR}/ffmpeg"
9 DEFAULT_PREFERENCE = "-1"
13 SRC_URI = "cvs://anonymous@mplayerhq.hu/cvsroot/ffmpeg;module=ffmpeg \
14 file://configure.patch;patch=0 \
15 file://common.patch;patch=1 \
16 file://soname.patch;patch=1 \
19 TARGET_LDFLAGS_append = " -lm -la52 "
28 # --enable-shared-pp \
31 --enable-amr_nb-fixed \
37 --disable-audio-beos \
44 --cross-prefix=${TARGET_PREFIX} \
45 --extra-cflags=\$(TARGET_CFLAGS) \
46 --extra-ldflags=\$(TARGET_LDFLAGS) \
47 --extra-libs=\$(TARGET_LDFLAGS) \
49 --cpu=${PACKAGE_ARCH} \
50 --prefix=${D}${prefix} \
51 --mandir=${D}${prefix}/share/man \
54 PACKAGES += "libavcodec libavcodec-dev libavformat libavformat-dev"
55 FILES_${PN} = "${bindir}"
56 FILES_${PN}-dev = "${includedir}"
57 FILES_libavcodec = "${libdir}/libavcodec*.so.*"
58 FILES_libavcodec-dev = "${libdir}/libavcodec*.so ${libdir}/libavcodec*.la ${libdir}/libavcodec*.a"
59 FILES_libavformat = "${libdir}/libavformat*.so.*"
60 FILES_libavformat-dev = "${libdir}/libavformat*.so ${libdir}/libavformat*.la ${libdir}/libavformat*.a"
62 # We do this because the install program is called with -s which causes it to call "strip" and it then mangles cross compiled stuff..
63 PATH_prepend="${CROSS_DIR}/${TARGET_SYS}/bin:"
66 do_configure_prepend() {
71 oe_libinstall -a -so -C libavcodec libavcodec ${STAGING_LIBDIR}
72 oe_libinstall -a -so -C libavformat libavformat ${STAGING_LIBDIR}
74 install -d ${STAGING_INCDIR}/ffmpeg
75 install -m 0644 ${S}/libavcodec/avcodec.h ${STAGING_INCDIR}/ffmpeg/avcodec.h
76 install -m 0644 ${S}/libavcodec/common.h ${STAGING_INCDIR}/ffmpeg/common.h
77 install -m 0644 ${S}/libavcodec/rational.h ${STAGING_INCDIR}/ffmpeg/rational.h
78 install -m 0644 ${S}/libavformat/avformat.h ${STAGING_INCDIR}/ffmpeg/avformat.h
79 install -m 0644 ${S}/libavformat/avio.h ${STAGING_INCDIR}/ffmpeg/avio.h
80 install -m 0644 ${S}/libavformat/rtp.h ${STAGING_INCDIR}/ffmpeg/rtp.h
81 install -m 0644 ${S}/libavformat/rtsp.h ${STAGING_INCDIR}/ffmpeg/rtsp.h
82 install -m 0644 ${S}/libavformat/rtspcodes.h ${STAGING_INCDIR}/ffmpeg/rtspcodes.h