x264_git.bb 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. SUMMARY = "H.264/MPEG-4 AVC video encoder"
  2. DESCRIPTION = "A free software library and application for encoding video streams into the H.264/MPEG-4 AVC format."
  3. HOMEPAGE = "http://www.videolan.org/developers/x264.html"
  4. LICENSE = "GPLv2"
  5. LICENSE_FLAGS = "commercial"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
  7. DEPENDS = "yasm-native"
  8. SRC_URI = "git://github.com/mirror/x264;branch=stable \
  9. file://don-t-default-to-cortex-a9-with-neon.patch \
  10. file://Fix-X32-build-by-disabling-asm.patch \
  11. "
  12. UPSTREAM_VERSION_UNKNOWN = "1"
  13. SRCREV = "2b741f81e51f92d053d87a49f59ff1026553a0f6"
  14. PV = "r2731+git${SRCPV}"
  15. S = "${WORKDIR}/git"
  16. inherit lib_package pkgconfig perlnative
  17. X264_DISABLE_ASM = ""
  18. X264_DISABLE_ASM_armv4 = "--disable-asm"
  19. X264_DISABLE_ASM_armv5 = "--disable-asm"
  20. X264_DISABLE_ASM_powerpc = "${@bb.utils.contains("TUNE_FEATURES", "spe", "--disable-asm", "", d)}"
  21. X264_DISABLE_ASM_mipsarch = "${@bb.utils.contains("TUNE_FEATURES", "r6", "", "--disable-asm", d)}"
  22. EXTRA_OECONF = '--prefix=${prefix} \
  23. --host=${HOST_SYS} \
  24. --libdir=${libdir} \
  25. --cross-prefix=${TARGET_PREFIX} \
  26. --sysroot=${STAGING_DIR_TARGET} \
  27. --enable-shared \
  28. --enable-static \
  29. --disable-lavf \
  30. --disable-swscale \
  31. --disable-opencl \
  32. --enable-pic \
  33. ${X264_DISABLE_ASM} \
  34. '
  35. do_configure() {
  36. ./configure ${EXTRA_OECONF}
  37. }
  38. do_install() {
  39. oe_runmake install DESTDIR=${D}
  40. }
  41. AS[unexport] = "1"