From owner-svn-ports-all@freebsd.org Sun Feb 24 18:42:07 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FAAC1506916; Sun, 24 Feb 2019 18:42:07 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E5A0C80DF4; Sun, 24 Feb 2019 18:42:06 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DA9279417; Sun, 24 Feb 2019 18:42:06 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1OIg6v6066423; Sun, 24 Feb 2019 18:42:06 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1OIg6nx066421; Sun, 24 Feb 2019 18:42:06 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201902241842.x1OIg6nx066421@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: Conrad Meyer Date: Sun, 24 Feb 2019 18:42:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493797 - head/graphics/libheif X-SVN-Group: ports-head X-SVN-Commit-Author: cem X-SVN-Commit-Paths: head/graphics/libheif X-SVN-Commit-Revision: 493797 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E5A0C80DF4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 18:42:07 -0000 Author: cem (src committer) Date: Sun Feb 24 18:42:06 2019 New Revision: 493797 URL: https://svnweb.freebsd.org/changeset/ports/493797 Log: graphics/libheif: Correct license, OPTIONize, add jpeg support Most of this is non-functional change pulling various features out into options. Part of that is correctly labeling the examples as GPL3+. In a later revision, they are relicensed to MIT, but not in this version of the port. Functional changes including adding a JPEG option and enabling it by default. libheif is the only utility we ship that can understand .heic images and converting photos to the more portable jpeg is a reasonable thing to enable by default. Approved by: maintainer timeout Differential Revision: https://reviews.freebsd.org/D18802 Modified: head/graphics/libheif/Makefile head/graphics/libheif/pkg-plist Modified: head/graphics/libheif/Makefile ============================================================================== --- head/graphics/libheif/Makefile Sun Feb 24 18:39:42 2019 (r493796) +++ head/graphics/libheif/Makefile Sun Feb 24 18:42:06 2019 (r493797) @@ -3,25 +3,57 @@ PORTNAME= libheif DISTVERSIONPREFIX= v DISTVERSION= 1.3.2 +PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= me@sebastiansteinmetz.ch COMMENT= Libheif is an ISO/IEC 23008-12:2017 HEIF file format de- and encoder +# N.B., subsequent revisions in Git relicense examples from GPL3+ to MIT. LICENSE= LGPL3+ -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_FILE_LGPL3+= ${WRKSRC}/COPYING -LIB_DEPENDS= libde265.so:multimedia/libde265 \ - libx265.so:multimedia/x265 \ - libpng16.so:graphics/png - -USES= autoreconf libtool pkgconfig shared-mime-info \ - shebangfix +USES= autoreconf libtool localbase pkgconfig shebangfix USE_GITHUB= yes GH_ACCOUNT= strukturag GH_PROJECT= libheif GNU_CONFIGURE= yes USE_LDCONFIG= yes SHEBANG_GLOB= *.sh + +OPTIONS_DEFINE= EXAMPLES JPEG LIBDE265 PNG THREADS X265 +OPTIONS_DEFAULT=EXAMPLES JPEG LIBDE265 PNG THREADS X265 +OPTIONS_SUB= yes + +EXAMPLES_DESC= Install example programs (heif-convert, heif-enc, heif-info, heif-thumbnailer) +LIBDE265_DESC= Use libde265 (support for HEVC decoding) +X265_DESC= Use x265 (support for HEVC encoding) + +THREADS_CONFIGURE_OFF= --disable-multithreading + +.include + +.if ${PORT_OPTIONS:MEXAMPLES} +LICENSE+= GPLv3+ +LICENSE_COMB= multi +LICENSE_FILE_GPLv3+= ${WRKSRC}/examples/COPYING +USES+= shared-mime-info +.endif + +.if ${PORT_OPTIONS:MJPEG} +USES+= jpeg +.endif + +.if ${PORT_OPTIONS:MLIBDE265} +LIB_DEPENDS+= libde265.so:multimedia/libde265 +.endif + +.if ${PORT_OPTIONS:MPNG} +LIB_DEPENDS+= libpng16.so:graphics/png +.endif + +.if ${PORT_OPTIONS:MX265} +LIB_DEPENDS+= libx265.so:multimedia/x265 +.endif .include Modified: head/graphics/libheif/pkg-plist ============================================================================== --- head/graphics/libheif/pkg-plist Sun Feb 24 18:39:42 2019 (r493796) +++ head/graphics/libheif/pkg-plist Sun Feb 24 18:42:06 2019 (r493797) @@ -1,7 +1,7 @@ -bin/heif-convert -bin/heif-enc -bin/heif-info -bin/heif-thumbnailer +%%EXAMPLES%%bin/heif-convert +%%EXAMPLES%%bin/heif-enc +%%EXAMPLES%%bin/heif-info +%%EXAMPLES%%bin/heif-thumbnailer include/libheif/heif.h include/libheif/heif_cxx.h include/libheif/heif_plugin.h @@ -11,5 +11,5 @@ lib/libheif.so lib/libheif.so.1 lib/libheif.so.1.3.2 libdata/pkgconfig/libheif.pc -share/mime/packages/heif.xml -share/thumbnailers/heif.thumbnailer +%%EXAMPLES%%share/mime/packages/heif.xml +%%EXAMPLES%%share/thumbnailers/heif.thumbnailer