blob: c445d15e6940b5a54f4ef275ee7a17601cba239b [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "H.264/MPEG-4 AVC video encoder"
2DESCRIPTION = "A free software library and application for encoding video streams into the H.264/MPEG-4 AVC format."
3HOMEPAGE = "http://www.videolan.org/developers/x264.html"
4
5LICENSE = "GPLv2"
6LICENSE_FLAGS = "commercial"
7LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
8
Brad Bishop316dfdd2018-06-25 12:45:53 -04009DEPENDS = "nasm-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011SRC_URI = "git://github.com/mirror/x264;branch=stable \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012 file://don-t-default-to-cortex-a9-with-neon.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013 file://Fix-X32-build-by-disabling-asm.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 "
Brad Bishop316dfdd2018-06-25 12:45:53 -040015UPSTREAM_CHECK_COMMITS = "1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
Brad Bishop316dfdd2018-06-25 12:45:53 -040017SRCREV = "e9a5903edf8ca59ef20e6f4894c196f135af735e"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018
Brad Bishop316dfdd2018-06-25 12:45:53 -040019PV = "r2854+git${SRCPV}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020
21S = "${WORKDIR}/git"
22
23inherit lib_package pkgconfig perlnative
24
25X264_DISABLE_ASM = ""
26X264_DISABLE_ASM_armv4 = "--disable-asm"
27X264_DISABLE_ASM_armv5 = "--disable-asm"
28X264_DISABLE_ASM_powerpc = "${@bb.utils.contains("TUNE_FEATURES", "spe", "--disable-asm", "", d)}"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050029X264_DISABLE_ASM_mipsarch = "${@bb.utils.contains("TUNE_FEATURES", "r6", "", "--disable-asm", d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
31EXTRA_OECONF = '--prefix=${prefix} \
32 --host=${HOST_SYS} \
33 --libdir=${libdir} \
34 --cross-prefix=${TARGET_PREFIX} \
35 --sysroot=${STAGING_DIR_TARGET} \
36 --enable-shared \
37 --enable-static \
38 --disable-lavf \
39 --disable-swscale \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050040 --disable-opencl \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041 --enable-pic \
42 ${X264_DISABLE_ASM} \
43 '
44
45do_configure() {
Brad Bishop316dfdd2018-06-25 12:45:53 -040046 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
47 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048 ./configure ${EXTRA_OECONF}
49}
50
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051do_install() {
52 oe_runmake install DESTDIR=${D}
53}
54
Brad Bishop6e60e8b2018-02-01 10:27:11 -050055AS[unexport] = "1"