2015-10-24 21:50:28 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# x265
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-06-10 12:28:14 +02:00
|
|
|
X265_VERSION = 2.8
|
2015-10-24 21:50:28 +02:00
|
|
|
X265_SOURCE = x265_$(X265_VERSION).tar.gz
|
|
|
|
X265_SITE = https://bitbucket.org/multicoreware/x265/downloads
|
2017-03-30 15:43:32 +02:00
|
|
|
X265_LICENSE = GPL-2.0+
|
2015-10-24 21:50:28 +02:00
|
|
|
X265_LICENSE_FILES = COPYING
|
|
|
|
X265_SUBDIR = source
|
|
|
|
X265_INSTALL_STAGING = YES
|
2018-10-01 22:57:39 +02:00
|
|
|
X265_MAKE = $(MAKE1)
|
2015-10-24 21:50:28 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_i386)$(BR2_x86_64),y)
|
2018-03-01 21:11:01 +01:00
|
|
|
X265_DEPENDENCIES += host-nasm
|
2015-10-24 21:50:28 +02:00
|
|
|
endif
|
|
|
|
|
2017-07-23 22:03:38 +02:00
|
|
|
# disable altivec, it has build issues
|
|
|
|
# https://bitbucket.org/multicoreware/x265/issues/320/
|
|
|
|
ifeq ($(BR2_powerpc64)$(BR2_powerpc64le),y)
|
|
|
|
X265_CONF_OPTS += -DENABLE_ALTIVEC=OFF
|
|
|
|
endif
|
|
|
|
|
2015-10-24 21:50:28 +02:00
|
|
|
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
2015-10-26 21:16:38 +01:00
|
|
|
X265_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_PIC=ON
|
2015-10-24 21:50:28 +02:00
|
|
|
else
|
2015-10-26 21:16:38 +01:00
|
|
|
X265_CONF_OPTS += -DENABLE_SHARED=OFF
|
2015-10-24 21:50:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_X265_CLI),y)
|
2015-10-26 21:16:38 +01:00
|
|
|
X265_CONF_OPTS += -DENABLE_CLI=ON
|
2015-10-24 21:50:28 +02:00
|
|
|
else
|
2015-10-26 21:16:38 +01:00
|
|
|
X265_CONF_OPTS += -DENABLE_CLI=OFF
|
2015-10-24 21:50:28 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|