git: c17e10e09e91 - main - graphics/libheif: Clean up port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 04 Jul 2022 21:50:47 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c17e10e09e91817fe5574ea60f5f34aa275f10e8

commit c17e10e09e91817fe5574ea60f5f34aa275f10e8
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-07-04 21:45:57 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-07-04 21:50:03 +0000

    graphics/libheif: Clean up port
    
    Adjust port to make it consistent again
    
    Approved by:    portmgr (blanket)
    Fixes:          6564fb037602976d7127bf70b0c640d87067dd4b
---
 graphics/libheif/Makefile  | 12 +-----------
 graphics/libheif/pkg-plist |  8 ++++++++
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/graphics/libheif/Makefile b/graphics/libheif/Makefile
index 605c27c72008..55d218a439d1 100644
--- a/graphics/libheif/Makefile
+++ b/graphics/libheif/Makefile
@@ -22,7 +22,6 @@ GH_ACCOUNT=	strukturag
 
 OPTIONS_DEFINE=		AOM DAV1D EXAMPLES LIBDE265 RAV1E X265
 OPTIONS_DEFAULT=	AOM DAV1D LIBDE265 X265
-OPTIONS_SUB=		yes
 
 AOM_DESC=		AV1 encoding/decoding via libaom
 DAV1D_DESC=		Build dav1e decoder
@@ -38,16 +37,7 @@ DAV1D_CMAKE_BOOL=	WITH_DAV1D
 
 EXAMPLES_LIB_DEPENDS=	libpng16.so:graphics/png
 EXAMPLES_USES=		jpeg
-EXAMPLES_CMAKE_ON=	-DWITH_EXAMPLES:bool=ON
-EXAMPLES_CMAKE_OFF=	-DWITH_EXAMPLES:bool=OFF
-EXAMPLES_PLIST_FILES=	bin/heif-convert \
-			bin/heif-enc \
-			bin/heif-info \
-			bin/heif-thumbnailer \
-			share/man/man1/heif-convert.1.gz \
-			share/man/man1/heif-enc.1.gz \
-			share/man/man1/heif-info.1.gz \
-			share/man/man1/heif-thumbnailer.1.gz
+EXAMPLES_CMAKE_BOOL=	WITH_EXAMPLES
 
 LIBDE265_LIB_DEPENDS=	libde265.so:multimedia/libde265
 LIBDE265_CMAKE_BOOL=	WITH_LIBDE265
diff --git a/graphics/libheif/pkg-plist b/graphics/libheif/pkg-plist
index b23d601e35be..6b9cf3255e8a 100644
--- a/graphics/libheif/pkg-plist
+++ b/graphics/libheif/pkg-plist
@@ -1,3 +1,7 @@
+%%PORTEXAMPLES%%bin/heif-convert
+%%PORTEXAMPLES%%bin/heif-enc
+%%PORTEXAMPLES%%bin/heif-info
+%%PORTEXAMPLES%%bin/heif-thumbnailer
 include/libheif/heif.h
 include/libheif/heif_cxx.h
 include/libheif/heif_plugin.h
@@ -10,6 +14,10 @@ lib/libheif.so
 lib/libheif.so.1
 lib/libheif.so.1.12.0.0
 libdata/pkgconfig/libheif.pc
+%%PORTEXAMPLES%%share/man/man1/heif-convert.1.gz
+%%PORTEXAMPLES%%share/man/man1/heif-enc.1.gz
+%%PORTEXAMPLES%%share/man/man1/heif-info.1.gz
+%%PORTEXAMPLES%%share/man/man1/heif-thumbnailer.1.gz
 share/mime/packages/avif.xml
 share/mime/packages/heif.xml
 share/thumbnailers/heif.thumbnailer