2014-10-05 18:29:56 +02:00
|
|
|
###############################################################
|
|
|
|
#
|
|
|
|
# x264
|
|
|
|
#
|
|
|
|
###############################################################
|
|
|
|
|
|
|
|
X264_VERSION = 20140930-2245-stable
|
|
|
|
X264_SOURCE = x264-snapshot-$(X264_VERSION).tar.bz2
|
|
|
|
X264_SITE = ftp://ftp.videolan.org/pub/videolan/x264/snapshots
|
|
|
|
X264_LICENSE = GPLv2+
|
|
|
|
X264_DEPENDENCIES = host-pkgconf
|
|
|
|
X264_LICENSE_FILES = COPYING
|
|
|
|
X264_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_i386)$(BR2_x86_64),y)
|
2014-10-08 21:37:06 +02:00
|
|
|
X264_DEPENDENCIES += host-yasm
|
2014-10-09 10:41:24 +02:00
|
|
|
else ifeq ($(BR2_cortex_a5)$(BR2_cortex_a7)$(BR2_cortex_a8)$(BR2_cortex_a9)$(BR2_cortex_a12)$(BR2_cortex_a15),y)
|
|
|
|
# We need to pass gcc as AS, because the ARM assembly files have to be
|
|
|
|
# preprocessed
|
|
|
|
X264_CONF_ENV += AS="$(TARGET_CC)"
|
2014-10-05 18:29:56 +02:00
|
|
|
else
|
2014-10-08 21:37:06 +02:00
|
|
|
X264_CONF_OPTS += --disable-asm
|
2014-10-05 18:29:56 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),)
|
2014-10-08 21:37:06 +02:00
|
|
|
X264_CONF_OPTS += --enable-pic --enable-shared
|
2014-10-05 18:29:56 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_X264_CLI),)
|
2014-10-08 21:37:06 +02:00
|
|
|
X264_CONF_OPTS += --disable-cli
|
2014-10-05 18:29:56 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
2014-10-08 21:37:06 +02:00
|
|
|
X264_CONF_OPTS += --disable-thread
|
2014-10-05 18:29:56 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# the configure script is not generated by autoconf
|
|
|
|
define X264_CONFIGURE_CMDS
|
2014-10-09 10:41:24 +02:00
|
|
|
(cd $(@D); $(TARGET_CONFIGURE_OPTS) $(X264_CONF_ENV) ./configure \
|
2014-10-05 18:29:56 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--host="$(GNU_TARGET_NAME)" \
|
|
|
|
--cross-prefix="$(TARGET_CROSS)" \
|
|
|
|
--disable-ffms \
|
|
|
|
--enable-static \
|
|
|
|
$(X264_CONF_OPTS) \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define X264_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define X264_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define X264_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|