diff options
author | ryoon <ryoon@pkgsrc.org> | 2020-08-31 17:24:12 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2020-08-31 17:24:12 +0000 |
commit | 9d68de14466c55ac0b88b23babcaf24f0da16d63 (patch) | |
tree | eb139771879c1ac99dfadf7b0426d25a601b13e9 /graphics/libheif | |
parent | 2dfb8fe0110dc2e7a4efb34e867a817d717b8b5d (diff) | |
download | pkgsrc-9d68de14466c55ac0b88b23babcaf24f0da16d63.tar.gz |
graphics/libheif: import libheif-1.8.0
libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File
Format) file format decoder and encoder.
HEIF and AVIF are new image file formats employing HEVC (h.265) or
AV1 image coding, respectively, for the best compression ratios
currently possible.
libheif makes use of libde265 for HEIF image decoding and x265 for
encoding. For AVIF, libaom is used as encoder and decoder.
Alternative codecs for, e.g., AVC and JPEG can be provided as
plugins.
Diffstat (limited to 'graphics/libheif')
-rw-r--r-- | graphics/libheif/DESCR | 11 | ||||
-rw-r--r-- | graphics/libheif/Makefile | 26 | ||||
-rw-r--r-- | graphics/libheif/PLIST | 18 | ||||
-rw-r--r-- | graphics/libheif/buildlink3.mk | 17 | ||||
-rw-r--r-- | graphics/libheif/distinfo | 7 | ||||
-rw-r--r-- | graphics/libheif/patches/patch-configure | 15 |
6 files changed, 94 insertions, 0 deletions
diff --git a/graphics/libheif/DESCR b/graphics/libheif/DESCR new file mode 100644 index 00000000000..7b41afdcb29 --- /dev/null +++ b/graphics/libheif/DESCR @@ -0,0 +1,11 @@ +libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File +Format) file format decoder and encoder. + +HEIF and AVIF are new image file formats employing HEVC (h.265) or +AV1 image coding, respectively, for the best compression ratios +currently possible. + +libheif makes use of libde265 for HEIF image decoding and x265 for +encoding. For AVIF, libaom is used as encoder and decoder. +Alternative codecs for, e.g., AVC and JPEG can be provided as +plugins. diff --git a/graphics/libheif/Makefile b/graphics/libheif/Makefile new file mode 100644 index 00000000000..3ca9fe81234 --- /dev/null +++ b/graphics/libheif/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2020/08/31 17:24:12 ryoon Exp $ + +DISTNAME= libheif-1.8.0 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_GITHUB:=strukturag/} +GITHUB_PROJECT= libheif +GITHUB_RELEASE= v${PKGVERSION_NOREV} + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= https://github.com/strukturag/libheif/ +COMMENT= HEIF and AVIF file format decoder and encoder library +LICENSE= gnu-lgpl-v3 + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ + +PKGCONFIG_OVERRIDE+= libheif.pc.in + +.include "../../mk/jpeg.buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../multimedia/libaom/buildlink3.mk" +.include "../../multimedia/libde265/buildlink3.mk" +.include "../../multimedia/x265/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/libheif/PLIST b/graphics/libheif/PLIST new file mode 100644 index 00000000000..5b24217fab9 --- /dev/null +++ b/graphics/libheif/PLIST @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST,v 1.1 2020/08/31 17:24:12 ryoon Exp $ +bin/heif-convert +bin/heif-enc +bin/heif-info +bin/heif-thumbnailer +include/libheif/heif.h +include/libheif/heif_cxx.h +include/libheif/heif_plugin.h +include/libheif/heif_version.h +lib/libheif.la +lib/pkgconfig/libheif.pc +man/man1/heif-convert.1 +man/man1/heif-enc.1 +man/man1/heif-info.1 +man/man1/heif-thumbnailer.1 +share/mime/packages/avif.xml +share/mime/packages/heif.xml +share/thumbnailers/heif.thumbnailer diff --git a/graphics/libheif/buildlink3.mk b/graphics/libheif/buildlink3.mk new file mode 100644 index 00000000000..6339443b1eb --- /dev/null +++ b/graphics/libheif/buildlink3.mk @@ -0,0 +1,17 @@ +# $NetBSD: buildlink3.mk,v 1.1 2020/08/31 17:24:12 ryoon Exp $ + +BUILDLINK_TREE+= libheif + +.if !defined(LIBHEIF_BUILDLINK3_MK) +LIBHEIF_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libheif+= libheif>=1.8.0 +BUILDLINK_PKGSRCDIR.libheif?= ../../graphics/libheif + +.include "../../graphics/png/buildlink3.mk" +.include "../../multimedia/libaom/buildlink3.mk" +.include "../../multimedia/libde265/buildlink3.mk" +.include "../../multimedia/x265/buildlink3.mk" +.endif # LIBHEIF_BUILDLINK3_MK + +BUILDLINK_TREE+= -libheif diff --git a/graphics/libheif/distinfo b/graphics/libheif/distinfo new file mode 100644 index 00000000000..b50f77cc659 --- /dev/null +++ b/graphics/libheif/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2020/08/31 17:24:12 ryoon Exp $ + +SHA1 (libheif-1.8.0.tar.gz) = 22476e2697faebee6802169ee1746cdcdd7953fa +RMD160 (libheif-1.8.0.tar.gz) = 68d53be124be293348023946ada37acee7432ea2 +SHA512 (libheif-1.8.0.tar.gz) = e6edf03c0baf7d55ace57b8de1cf05d3b6708a0bd58d4191599960ad3924509dd7e9528a021586012b768a5a5b253e5bab470b944a2ead45f85274842da4913a +Size (libheif-1.8.0.tar.gz) = 1544438 bytes +SHA1 (patch-configure) = 859f4ae06e77a79a723f2760d426c88787916a9c diff --git a/graphics/libheif/patches/patch-configure b/graphics/libheif/patches/patch-configure new file mode 100644 index 00000000000..576c779a94a --- /dev/null +++ b/graphics/libheif/patches/patch-configure @@ -0,0 +1,15 @@ +$NetBSD: patch-configure,v 1.1 2020/08/31 17:24:12 ryoon Exp $ + +* POSIX shell portability. + +--- configure.orig 2020-08-14 12:12:13.000000000 +0000 ++++ configure +@@ -17595,7 +17595,7 @@ if test "x$enable_tests" = "xyes"; then + CFLAG_VISIBILITY= + + fi +- if test "x$HAVE_TESTS" == "x1"; then ++ if test "x$HAVE_TESTS" = "x1"; then + HAVE_TESTS_TRUE= + HAVE_TESTS_FALSE='#' + else |