x264_git.bb 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 = "GPL-2.0-only"
  5. LICENSE_FLAGS = "commercial"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
  7. DEPENDS = "nasm-native"
  8. SRC_URI = "git://code.videolan.org/videolan/x264.git;branch=stable;protocol=https \
  9. file://32c3b801191522961102d4bea292cdb61068d0dd.patch \
  10. "
  11. UPSTREAM_CHECK_COMMITS = "1"
  12. SRCREV = "31e19f92f00c7003fa115047ce50978bc98c3a0d"
  13. PV = "r3039+git"
  14. inherit lib_package pkgconfig
  15. X264_DISABLE_ASM = ""
  16. X264_DISABLE_ASM:x86 = "--disable-asm"
  17. X264_DISABLE_ASM:armv4 = "--disable-asm"
  18. X264_DISABLE_ASM:armv5 = "--disable-asm"
  19. X264_DISABLE_ASM:powerpc = "${@bb.utils.contains("TUNE_FEATURES", "spe", "--disable-asm", "", d)}"
  20. X264_DISABLE_ASM:mipsarch = "${@bb.utils.contains("TUNE_FEATURES", "r6", "", "--disable-asm", d)}"
  21. PACKAGECONFIG ?= " \
  22. ffmpeg \
  23. ${@bb.utils.filter("DISTRO_FEATURES", "opencl", d)} \
  24. "
  25. PACKAGECONFIG[ffmpeg] = "--enable-lavf --enable-swscale,--disable-lavf --disable-swscale,ffmpeg"
  26. PACKAGECONFIG[opencl] = "--enable-opencl,--disable-opencl,"
  27. EXTRA_OECONF = '--prefix=${prefix} \
  28. --host=${HOST_SYS} \
  29. --libdir=${libdir} \
  30. --cross-prefix=${TARGET_PREFIX} \
  31. --sysroot=${STAGING_DIR_TARGET} \
  32. --enable-shared \
  33. --enable-static \
  34. --enable-pic \
  35. ${X264_DISABLE_ASM} \
  36. --extra-cflags="${TUNE_CCARGS}" \
  37. '
  38. do_configure() {
  39. install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
  40. install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
  41. ./configure ${EXTRA_OECONF}
  42. }
  43. do_install() {
  44. oe_runmake install DESTDIR=${D}
  45. }
  46. AS[unexport] = "1"
  47. COMPATIBLE_HOST:x86-x32 = "null"