diff options
Diffstat (limited to 'meta-oe/recipes-multimedia/libav/libav.inc')
| -rw-r--r-- | meta-oe/recipes-multimedia/libav/libav.inc | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/meta-oe/recipes-multimedia/libav/libav.inc b/meta-oe/recipes-multimedia/libav/libav.inc index 54307afda5..6e91061d0c 100644 --- a/meta-oe/recipes-multimedia/libav/libav.inc +++ b/meta-oe/recipes-multimedia/libav/libav.inc | |||
| @@ -15,10 +15,10 @@ INC_PR = "r8" | |||
| 15 | 15 | ||
| 16 | inherit autotools pkgconfig | 16 | inherit autotools pkgconfig |
| 17 | 17 | ||
| 18 | # --enable-libgsm | 18 | # --enable-libgsm |
| 19 | # --enable-libmp3lame | 19 | # --enable-libmp3lame |
| 20 | # --enable-libschroedinger | 20 | # --enable-libschroedinger |
| 21 | # --enable-libvpx | 21 | # --enable-libvpx |
| 22 | 22 | ||
| 23 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | 23 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" |
| 24 | 24 | ||
| @@ -29,28 +29,28 @@ EXTRA_FFCONF_armv7a = "--cpu=cortex-a8" | |||
| 29 | EXTRA_FFCONF ?= "" | 29 | EXTRA_FFCONF ?= "" |
| 30 | 30 | ||
| 31 | EXTRA_OECONF = " \ | 31 | EXTRA_OECONF = " \ |
| 32 | --enable-shared \ | 32 | --enable-shared \ |
| 33 | --enable-pthreads \ | 33 | --enable-pthreads \ |
| 34 | --enable-gpl \ | 34 | --enable-gpl \ |
| 35 | --enable-avfilter \ | 35 | --enable-avfilter \ |
| 36 | \ | 36 | \ |
| 37 | --cross-prefix=${TARGET_PREFIX} \ | 37 | --cross-prefix=${TARGET_PREFIX} \ |
| 38 | --prefix=${prefix} \ | 38 | --prefix=${prefix} \ |
| 39 | \ | 39 | \ |
| 40 | --enable-avserver \ | 40 | --enable-avserver \ |
| 41 | --enable-avplay \ | 41 | --enable-avplay \ |
| 42 | --enable-x11grab \ | 42 | --enable-x11grab \ |
| 43 | --enable-libtheora \ | 43 | --enable-libtheora \ |
| 44 | --enable-libvorbis \ | 44 | --enable-libvorbis \ |
| 45 | --enable-libx264 \ | 45 | --enable-libx264 \ |
| 46 | --arch=${TARGET_ARCH} \ | 46 | --arch=${TARGET_ARCH} \ |
| 47 | --target-os="linux" \ | 47 | --target-os="linux" \ |
| 48 | --enable-cross-compile \ | 48 | --enable-cross-compile \ |
| 49 | --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \ | 49 | --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \ |
| 50 | --extra-ldflags="${TARGET_LDFLAGS}" \ | 50 | --extra-ldflags="${TARGET_LDFLAGS}" \ |
| 51 | --sysroot="${STAGING_DIR_TARGET}" \ | 51 | --sysroot="${STAGING_DIR_TARGET}" \ |
| 52 | --enable-hardcoded-tables \ | 52 | --enable-hardcoded-tables \ |
| 53 | ${EXTRA_FFCONF} \ | 53 | ${EXTRA_FFCONF} \ |
| 54 | " | 54 | " |
| 55 | 55 | ||
| 56 | #| yasm not found, use --disable-yasm for a crippled build | 56 | #| yasm not found, use --disable-yasm for a crippled build |
| @@ -58,16 +58,16 @@ EXTRA_OECONF_append_x86-64 = " --disable-yasm" | |||
| 58 | EXTRA_OECONF_append_x86 = " --disable-yasm" | 58 | EXTRA_OECONF_append_x86 = " --disable-yasm" |
| 59 | 59 | ||
| 60 | do_configure() { | 60 | do_configure() { |
| 61 | # We don't have TARGET_PREFIX-pkgconfig | 61 | # We don't have TARGET_PREFIX-pkgconfig |
| 62 | sed -i '/pkg_config_default="${cross_prefix}${pkg_config_default}"/d' ${S}/configure | 62 | sed -i '/pkg_config_default="${cross_prefix}${pkg_config_default}"/d' ${S}/configure |
| 63 | mkdir -p ${B} | 63 | mkdir -p ${B} |
| 64 | cd ${B} | 64 | cd ${B} |
| 65 | ${S}/configure ${EXTRA_OECONF} | 65 | ${S}/configure ${EXTRA_OECONF} |
| 66 | sed -i -e s:Os:O4:g ${B}/config.h | 66 | sed -i -e s:Os:O4:g ${B}/config.h |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | do_install_append() { | 69 | do_install_append() { |
| 70 | install -m 0644 ${S}/libavfilter/*.h ${D}${includedir}/libavfilter/ | 70 | install -m 0644 ${S}/libavfilter/*.h ${D}${includedir}/libavfilter/ |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | FFMPEG_LIBS = "libavcodec libavdevice libavformat \ | 73 | FFMPEG_LIBS = "libavcodec libavdevice libavformat \ |
