Skip to content

Commit 2095685

Browse files
authored
add libheif
1 parent ebbf57f commit 2095685

File tree

5 files changed

+226
-0
lines changed

5 files changed

+226
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"). You may
4+
# only use this file in accordance with the terms of the CDDL.
5+
#
6+
# A full copy of the text of the CDDL should have accompanied this
7+
# source. A copy of the CDDL is also available via the Internet at
8+
# http://www.illumos.org/license/CDDL.
9+
#
10+
11+
#
12+
# Copyright 2019 Michal Nowak
13+
#
14+
15+
BUILD_STYLE= cmake
16+
USE_PARALLEL_BUILD= yes
17+
USE_DEFAULT_TEST_TRANSFORMS= yes
18+
include ../../../make-rules/shared-macros.mk
19+
20+
COMPONENT_NAME= libheif
21+
COMPONENT_VERSION= 1.19.5
22+
COMPONENT_SUMMARY= libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format) file format decoder and encoder
23+
COMPONENT_PROJECT_URL= https://github.com/strukturag/$(COMPONENT_NAME)
24+
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25+
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26+
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
27+
COMPONENT_ARCHIVE_HASH= sha256:d3cf0a76076115a070f9bc87cf5259b333a1f05806500045338798486d0afbaf
28+
COMPONENT_FMRI= library/video/$(COMPONENT_NAME)
29+
COMPONENT_CLASSIFICATION= System/Multimedia Libraries
30+
COMPONENT_LICENSE= LGPL-3
31+
COMPONENT_LICENSE_FILE= COPYING
32+
33+
include $(WS_MAKE_RULES)/encumbered.mk
34+
include $(WS_MAKE_RULES)/common.mk
35+
36+
CFLAGS += $(XPG6MODE)
37+
38+
CMAKE_OPTIONS += -DWITH_LIBDE265_PLUGIN=ON
39+
CMAKE_OPTIONS += -DWITH_X265_PLUGIN=ON
40+
CMAKE_OPTIONS += -DWITH_DAV1D=ON
41+
CMAKE_OPTIONS += -DWITH_JPEG_DECODER=ON
42+
CMAKE_OPTIONS += -DWITH_UNCOMPRESSED_CODEC=ON
43+
44+
# Auto-generated dependencies
45+
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
46+
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
47+
REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
48+
REQUIRED_PACKAGES += codec/dav1d
49+
REQUIRED_PACKAGES += image/library/libpng16
50+
REQUIRED_PACKAGES += image/library/libtiff
51+
REQUIRED_PACKAGES += image/library/openjpeg
52+
REQUIRED_PACKAGES += library/brotli
53+
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
54+
REQUIRED_PACKAGES += library/glib2
55+
REQUIRED_PACKAGES += library/libwebp
56+
REQUIRED_PACKAGES += library/video/libde265
57+
REQUIRED_PACKAGES += library/video/x265-41
58+
REQUIRED_PACKAGES += library/zlib
59+
REQUIRED_PACKAGES += system/library
60+
REQUIRED_PACKAGES += system/library/math
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
#
11+
12+
#
13+
# Copyright 2024 Andreas Wacknitz
14+
#
15+
16+
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
17+
set name=pkg.human-version value=$(HUMAN_VERSION)
18+
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
19+
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
20+
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
21+
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
22+
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
23+
24+
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
25+
26+
link path=usr/bin/heif-convert target=heif-dec
27+
file path=usr/bin/heif-dec
28+
file path=usr/bin/heif-enc
29+
file path=usr/bin/heif-info
30+
file path=usr/bin/heif-thumbnailer
31+
file path=usr/include/libheif/heif.h
32+
file path=usr/include/libheif/heif_cxx.h
33+
file path=usr/include/libheif/heif_items.h
34+
file path=usr/include/libheif/heif_plugin.h
35+
file path=usr/include/libheif/heif_properties.h
36+
file path=usr/include/libheif/heif_regions.h
37+
file path=usr/include/libheif/heif_version.h
38+
file path=usr/lib/$(MACH64)/cmake/libheif/libheif-config-noconfig.cmake
39+
file path=usr/lib/$(MACH64)/cmake/libheif/libheif-config-version.cmake
40+
file path=usr/lib/$(MACH64)/cmake/libheif/libheif-config.cmake
41+
file path=usr/lib/$(MACH64)/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-heif.so
42+
link path=usr/lib/$(MACH64)/libheif.so target=libheif.so.1
43+
file path=usr/lib/$(MACH64)/libheif.so.$(HUMAN_VERSION)
44+
link path=usr/lib/$(MACH64)/libheif.so.1 target=libheif.so.$(HUMAN_VERSION)
45+
file path=usr/lib/$(MACH64)/libheif/libheif-dav1d.so
46+
file path=usr/lib/$(MACH64)/libheif/libheif-j2kdec.so
47+
file path=usr/lib/$(MACH64)/libheif/libheif-libde265.so
48+
file path=usr/lib/$(MACH64)/libheif/libheif-x265.so
49+
file path=usr/lib/$(MACH64)/pkgconfig/libheif.pc
50+
file path=usr/share/man/man1/heif-dec.1
51+
file path=usr/share/man/man1/heif-enc.1
52+
file path=usr/share/man/man1/heif-info.1
53+
file path=usr/share/man/man1/heif-thumbnailer.1
54+
file path=usr/share/thumbnailers/heif.thumbnailer
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
#
11+
12+
#
13+
# Copyright 2024 <contributor>
14+
#
15+
16+
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
17+
set name=pkg.human-version value=$(HUMAN_VERSION)
18+
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
19+
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
20+
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
21+
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
22+
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
23+
24+
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
25+
26+
link path=usr/bin/heif-convert target=heif-dec
27+
file path=usr/bin/heif-dec
28+
file path=usr/bin/heif-enc
29+
file path=usr/bin/heif-info
30+
file path=usr/bin/heif-thumbnailer
31+
file path=usr/include/libheif/heif.h
32+
file path=usr/include/libheif/heif_cxx.h
33+
file path=usr/include/libheif/heif_items.h
34+
file path=usr/include/libheif/heif_plugin.h
35+
file path=usr/include/libheif/heif_properties.h
36+
file path=usr/include/libheif/heif_regions.h
37+
file path=usr/include/libheif/heif_version.h
38+
file path=usr/lib/$(MACH64)/cmake/libheif/libheif-config-noconfig.cmake
39+
file path=usr/lib/$(MACH64)/cmake/libheif/libheif-config-version.cmake
40+
file path=usr/lib/$(MACH64)/cmake/libheif/libheif-config.cmake
41+
file path=usr/lib/$(MACH64)/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-heif.so
42+
link path=usr/lib/$(MACH64)/libheif.so target=libheif.so.1
43+
file path=usr/lib/$(MACH64)/libheif.so.$(HUMAN_VERSION)
44+
link path=usr/lib/$(MACH64)/libheif.so.1 target=libheif.so.$(HUMAN_VERSION)
45+
file path=usr/lib/$(MACH64)/libheif/libheif-dav1d.so
46+
file path=usr/lib/$(MACH64)/libheif/libheif-j2kdec.so
47+
file path=usr/lib/$(MACH64)/libheif/libheif-libde265.so
48+
file path=usr/lib/$(MACH64)/libheif/libheif-x265.so
49+
file path=usr/lib/$(MACH64)/pkgconfig/libheif.pc
50+
file path=usr/share/man/man1/heif-dec.1
51+
file path=usr/share/man/man1/heif-enc.1
52+
file path=usr/share/man/man1/heif-info.1
53+
file path=usr/share/man/man1/heif-thumbnailer.1
54+
file path=usr/share/thumbnailers/heif.thumbnailer

components/encumbered/libheif/pkg5

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"dependencies": [
3+
"codec/dav1d",
4+
"image/library/libjpeg8-turbo",
5+
"image/library/libpng16",
6+
"image/library/libtiff",
7+
"image/library/openjpeg",
8+
"library/brotli",
9+
"library/desktop/gdk-pixbuf",
10+
"library/glib2",
11+
"library/libwebp",
12+
"library/video/libde265",
13+
"library/video/x265-41",
14+
"library/zlib",
15+
"system/library",
16+
"system/library/g++-13-runtime",
17+
"system/library/gcc-13-runtime",
18+
"system/library/math"
19+
],
20+
"fmris": [
21+
"library/video/libheif"
22+
],
23+
"name": "libheif"
24+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Start 1: encode
2+
1/15 Test #1: encode ....................................***Skipped
3+
Start 2: extended_type
4+
2/15 Test #2: extended_type ............................. Passed
5+
Start 3: region
6+
3/15 Test #3: region ....................................***Failed
7+
Start 4: uncompressed_decode
8+
4/15 Test #4: uncompressed_decode ....................... Passed
9+
Start 5: uncompressed_decode_mono
10+
5/15 Test #5: uncompressed_decode_mono .................. Passed
11+
Start 6: uncompressed_decode_rgb
12+
6/15 Test #6: uncompressed_decode_rgb ................... Passed
13+
Start 7: uncompressed_decode_rgb16
14+
7/15 Test #7: uncompressed_decode_rgb16 ................. Passed
15+
Start 8: uncompressed_decode_rgb565
16+
8/15 Test #8: uncompressed_decode_rgb565 ................ Passed
17+
Start 9: uncompressed_decode_rgb7
18+
9/15 Test #9: uncompressed_decode_rgb7 .................. Passed
19+
Start 10: uncompressed_decode_ycbcr
20+
10/15 Test #10: uncompressed_decode_ycbcr ................. Passed
21+
Start 11: uncompressed_decode_ycbcr420
22+
11/15 Test #11: uncompressed_decode_ycbcr420 .............. Passed
23+
Start 12: uncompressed_decode_ycbcr422
24+
12/15 Test #12: uncompressed_decode_ycbcr422 .............. Passed
25+
Start 13: uncompressed_encode
26+
13/15 Test #13: uncompressed_encode ....................... Passed
27+
Start 14: uncompressed_decode_generic_compression
28+
14/15 Test #14: uncompressed_decode_generic_compression ... Passed
29+
Start 15: tiffdecode
30+
15/15 Test #15: tiffdecode ................................ Passed
31+
93% tests passed, 1 tests failed out of 15
32+
1 - encode (Skipped)
33+
3 - region (Failed)
34+
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

0 commit comments

Comments
 (0)