2023-07-08 22:04:42 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libheif
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-12-26 16:07:17 +01:00
|
|
|
LIBHEIF_VERSION = 1.17.6
|
2023-07-08 22:04:42 +02:00
|
|
|
LIBHEIF_SITE = https://github.com/strukturag/libheif/releases/download/v$(LIBHEIF_VERSION)
|
|
|
|
LIBHEIF_LICENSE = LGPL-3.0+
|
|
|
|
LIBHEIF_LICENSE_FILES = COPYING
|
2023-09-14 22:28:25 +02:00
|
|
|
LIBHEIF_CPE_ID_VENDOR = struktur
|
2023-07-08 22:04:42 +02:00
|
|
|
LIBHEIF_INSTALL_STAGING = YES
|
|
|
|
LIBHEIF_CONF_OPTS = \
|
|
|
|
-DCMAKE_CXX_FLAGS="-std=c++11" \
|
|
|
|
-DENABLE_PLUGIN_LOADING=OFF \
|
|
|
|
-DWITH_AOM_DECODER=OFF \
|
|
|
|
-DWITH_AOM_ENCODER=OFF \
|
|
|
|
-DWITH_DEFLATE_HEADER_COMPRESSION=OFF \
|
|
|
|
-DWITH_EXAMPLES=OFF \
|
|
|
|
-DWITH_GDK_PIXBUF=OFF \
|
|
|
|
-DWITH_LIBSHARPYUV=OFF \
|
|
|
|
-DWITH_RAV1E=OFF \
|
|
|
|
-DWITH_REDUCED_VISIBILITY=ON \
|
|
|
|
-DWITH_SvtEnc=OFF
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DAV1D),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_DAV1D=ON
|
|
|
|
LIBHEIF_DEPENDENCIES += dav1d
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_DAV1D=OFF
|
|
|
|
endif
|
|
|
|
|
2023-12-04 22:13:00 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_FFMPEG_DECODER=ON
|
|
|
|
LIBHEIF_DEPENDENCIES += ffmpeg
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_FFMPEG_DECODER=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_KVAZAAR),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_KVAZAAR=ON
|
|
|
|
LIBHEIF_DEPENDENCIES += kvazaar
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_KVAZAAR=OFF
|
|
|
|
endif
|
|
|
|
|
2023-07-08 22:04:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBDE265),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_LIBDE265=ON
|
|
|
|
LIBHEIF_DEPENDENCIES += libde265
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_LIBDE265=OFF
|
|
|
|
endif
|
|
|
|
|
2024-01-31 21:07:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2023-12-04 22:13:00 +01:00
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_JPEG_DECODER=ON -DWITH_JPEG_ENCODER=ON
|
2024-01-31 21:07:54 +01:00
|
|
|
LIBHEIF_DEPENDENCIES += jpeg
|
2023-12-04 22:13:00 +01:00
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_JPEG_DECODER=OFF -DWITH_JPEG_ENCODER=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_OpenJPEG_DECODER=ON -DWITH_OpenJPEG_ENCODER=ON
|
|
|
|
LIBHEIF_DEPENDENCIES += openjpeg
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_OpenJPEG_DECODER=OFF -DWITH_OpenJPEG_ENCODER=OFF
|
|
|
|
endif
|
|
|
|
|
2023-07-08 22:04:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_X265),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_X265=ON
|
|
|
|
LIBHEIF_DEPENDENCIES += x265
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DWITH_X265=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DENABLE_MULTITHREADING_SUPPORT=ON
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_64735),y)
|
|
|
|
LIBHEIF_CONF_OPTS += -DENABLE_PARALLEL_TILE_DECODING=OFF
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += -DENABLE_PARALLEL_TILE_DECODING=ON
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LIBHEIF_CONF_OPTS += \
|
|
|
|
-DENABLE_MULTITHREADING_SUPPORT=OFF \
|
|
|
|
-DENABLE_PARALLEL_TILE_DECODING=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|