Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
| 5 | LICENSE = "GPLv2" |
| 6 | LICENSE_FLAGS = "commercial" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 8 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 9 | DEPENDS = "nasm-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | SRC_URI = "git://github.com/mirror/x264;branch=stable \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | file://don-t-default-to-cortex-a9-with-neon.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | file://Fix-X32-build-by-disabling-asm.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | UPSTREAM_CHECK_COMMITS = "1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 17 | SRCREV = "e9a5903edf8ca59ef20e6f4894c196f135af735e" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | PV = "r2854+git${SRCPV}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
| 21 | S = "${WORKDIR}/git" |
| 22 | |
| 23 | inherit lib_package pkgconfig perlnative |
| 24 | |
| 25 | X264_DISABLE_ASM = "" |
| 26 | X264_DISABLE_ASM_armv4 = "--disable-asm" |
| 27 | X264_DISABLE_ASM_armv5 = "--disable-asm" |
| 28 | X264_DISABLE_ASM_powerpc = "${@bb.utils.contains("TUNE_FEATURES", "spe", "--disable-asm", "", d)}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | X264_DISABLE_ASM_mipsarch = "${@bb.utils.contains("TUNE_FEATURES", "r6", "", "--disable-asm", d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
| 31 | EXTRA_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 40 | --disable-opencl \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 41 | --enable-pic \ |
| 42 | ${X264_DISABLE_ASM} \ |
| 43 | ' |
| 44 | |
| 45 | do_configure() { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 46 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} |
| 47 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 48 | ./configure ${EXTRA_OECONF} |
| 49 | } |
| 50 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 51 | do_install() { |
| 52 | oe_runmake install DESTDIR=${D} |
| 53 | } |
| 54 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 55 | AS[unexport] = "1" |