1 ################################################################################
5 ################################################################################
7 X264_VERSION
= 97eaef2ab82a46d13ea5e00270712d6475fbe42b
8 X264_SITE
= git
://git.videolan.org
/x264.git
10 X264_DEPENDENCIES
= host-pkgconf
11 X264_LICENSE_FILES
= COPYING
12 X264_INSTALL_STAGING
= YES
13 X264_CONF_OPTS
= --disable-avs
15 ifeq ($(BR2_i386
)$(BR2_x86_64
),y
)
16 # yasm needed for assembly files
17 X264_DEPENDENCIES
+= host-yasm
18 X264_CONF_ENV
+= AS
="$(HOST_DIR)/usr/bin/yasm"
19 else ifeq ($(BR2_ARM_CPU_ARMV7A
)$(BR2_aarch64
),y
)
20 # We need to pass gcc as AS, because the ARM assembly files have to be
22 X264_CONF_ENV
+= AS
="$(TARGET_CC)"
24 X264_CONF_OPTS
+= --disable-asm
27 ifeq ($(BR2_STATIC_LIBS
),)
28 X264_CONF_OPTS
+= --enable-pic
--enable-shared
31 ifeq ($(BR2_PACKAGE_X264_CLI
),)
32 X264_CONF_OPTS
+= --disable-cli
35 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS
),)
36 X264_CONF_OPTS
+= --disable-thread
39 # the configure script is not generated by autoconf
40 define X264_CONFIGURE_CMDS
41 (cd
$(@D
); $(TARGET_CONFIGURE_OPTS
) $(X264_CONF_ENV
) .
/configure \
43 --host
="$(GNU_TARGET_NAME)" \
44 --cross-prefix
="$(TARGET_CROSS)" \
52 define X264_BUILD_CMDS
53 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
56 define X264_INSTALL_STAGING_CMDS
57 $(TARGET_MAKE_ENV
) $(MAKE
) DESTDIR
="$(STAGING_DIR)" -C
$(@D
) install
60 define X264_INSTALL_TARGET_CMDS
61 $(TARGET_MAKE_ENV
) $(MAKE
) DESTDIR
="$(TARGET_DIR)" -C
$(@D
) install
64 $(eval
$(generic-package
))