aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/vlc/x264_r2245.bb
blob: 21e5a0ec77f4c6839251b1fce47b797d86b2ce06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
DESCRIPTION = "H.264 encoder"
LICENSE = "GPL"
PR = "r8"

X264PV = "snapshot-20100531-2245"

SRC_URI = "http://download.videolan.org/pub/videolan/x264/snapshots/x264-${X264PV}.tar.bz2"
SRC_URI_append_avr32 = " file://uclibc_log2f_fix.HACK.patch" 

SRC_URI[md5sum] = "d1ccb8122bd418291a9576a2bffdf662"
SRC_URI[sha256sum] = "929e946947701a0b3a336a4b9cfe65daf4c52480f45d4363335ae2a3d5596fa9"

S = "${WORKDIR}/${PN}-${X264PV}"

inherit autotools lib_package pkgconfig

# default --extra-cflags
X264_ECFLAGS = ""
X264_ECFLAGS_mips = "-fPIC"
X264_ECFLAGS_mipsel = "-fPIC"

# disable use of assembler written functions
X264_DISABLE_ASM = "--disable-asm"
# use assembler written functions for those archs supporting this
X264_DISABLE_ASM_x86 = ""
DEPENDS_append_x86 = " yasm-native"

EXTRA_OECONF = '--enable-shared ${X264_DISABLE_ASM} --extra-cflags="${X264_ECFLAGS}"'

do_configure_append() {
	eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "/_LARGEFILE_SOURCE/d" ${S}/common/osdep.h', d)}"
	eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "/_FILE_OFFSET_BITS/d" ${S}/common/osdep.h', d)}"
}