2015-03-20 13:35:19 +01:00
|
|
|
################################################################################
|
2014-10-05 18:29:56 +02:00
|
|
|
#
|
|
|
|
# x264
|
|
|
|
#
|
2015-03-20 13:35:19 +01:00
|
|
|
################################################################################
|
2014-10-05 18:29:56 +02:00
|
|
|
|
|
|
|
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
|
2015-02-07 10:01:14 +01:00
|
|
|
X264_CONF_OPTS = --disable-avs
|
2014-10-05 18:29:56 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_i386)$(BR2_x86_64),y)
|
2014-10-08 21:37:06 +02:00
|
|
|
X264_DEPENDENCIES += host-yasm
|
2014-10-21 22:27:04 +02:00
|
|
|
else ifeq ($(BR2_ARM_CPU_ARMV7A),y)
|
2014-10-09 10:41:24 +02:00
|
|
|
# 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
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),)
|
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 \
|
2014-11-19 20:53:56 +01:00
|
|
|
--disable-opencl \
|
2014-10-05 18:29:56 +02:00
|
|
|
$(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))
|