Skip to content

Commit

Permalink
graphics/libheif: Install example binaries
Browse files Browse the repository at this point in the history
The example binaries are very useful to end users. For example,
heif-convert is a popular tool to convert HEIF to JPG.

PR:		245387
Reported by:	Marián Černý <majo-bugs.freebsd.org@cerny.sk>
Approved by:	portmgr blanket (maintainer timeout)
  • Loading branch information
0mp committed Jul 4, 2022
1 parent 82c2423 commit 6564fb0
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions graphics/libheif/Makefile
Expand Up @@ -2,7 +2,7 @@ PORTNAME= libheif
DISTVERSIONPREFIX= v
DISTVERSION= 1.12.0-62
DISTVERSIONSUFFIX= -g0082fea
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics

MAINTAINER= makc@FreeBSD.org
Expand All @@ -17,12 +17,10 @@ CPE_VENDOR= struktur
USE_GNOME= gdkpixbuf2 glib20
USE_LDCONFIG= yes

CMAKE_OFF= WITH_EXAMPLES

USE_GITHUB= yes
GH_ACCOUNT= strukturag

OPTIONS_DEFINE= AOM DAV1D LIBDE265 RAV1E X265
OPTIONS_DEFINE= AOM DAV1D EXAMPLES LIBDE265 RAV1E X265
OPTIONS_DEFAULT= AOM DAV1D LIBDE265 X265
OPTIONS_SUB= yes

Expand All @@ -38,6 +36,19 @@ AOM_CMAKE_BOOL= WITH_AOM
DAV1D_LIB_DEPENDS= libdav1d.so:multimedia/dav1d
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

LIBDE265_LIB_DEPENDS= libde265.so:multimedia/libde265
LIBDE265_CMAKE_BOOL= WITH_LIBDE265

Expand Down

0 comments on commit 6564fb0

Please sign in to comment.