x264_git.bb 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 = "nasm-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_CHECK_COMMITS = "1"
  13. SRCREV = "e9a5903edf8ca59ef20e6f4894c196f135af735e"
  14. PV = "r2854+git${SRCPV}"
  15. S = "${WORKDIR}/git"
  16. inherit lib_package pkgconfig perlnative
  17. X264_DISABLE_ASM = ""
  18. X264_DISABLE_ASM_x86_libc-musl = "--disable-asm"
  19. X264_DISABLE_ASM_armv4 = "--disable-asm"
  20. X264_DISABLE_ASM_armv5 = "--disable-asm"
  21. X264_DISABLE_ASM_powerpc = "${@bb.utils.contains("TUNE_FEATURES", "spe", "--disable-asm", "", d)}"
  22. X264_DISABLE_ASM_mipsarch = "${@bb.utils.contains("TUNE_FEATURES", "r6", "", "--disable-asm", d)}"
  23. EXTRA_OECONF = '--prefix=${prefix} \
  24. --host=${HOST_SYS} \
  25. --libdir=${libdir} \
  26. --cross-prefix=${TARGET_PREFIX} \
  27. --sysroot=${STAGING_DIR_TARGET} \
  28. --enable-shared \
  29. --enable-static \
  30. --disable-lavf \
  31. --disable-swscale \
  32. --disable-opencl \
  33. --enable-pic \
  34. ${X264_DISABLE_ASM} \
  35. '
  36. do_configure() {
  37. install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
  38. install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
  39. ./configure ${EXTRA_OECONF}
  40. }
  41. do_install() {
  42. oe_runmake install DESTDIR=${D}
  43. }
  44. AS[unexport] = "1"