From owner-svn-ports-head@freebsd.org Fri Dec 9 15:19:05 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39B00C6DC87; Fri, 9 Dec 2016 15:19:05 +0000 (UTC) (envelope-from cpm@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 mx1.freebsd.org (Postfix) with ESMTPS id 12C58C11; Fri, 9 Dec 2016 15:19:05 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB9FJ4vp021831; Fri, 9 Dec 2016 15:19:04 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB9FJ4PK021829; Fri, 9 Dec 2016 15:19:04 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201612091519.uB9FJ4PK021829@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Fri, 9 Dec 2016 15:19:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r428216 - head/multimedia/mpv X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2016 15:19:05 -0000 Author: cpm Date: Fri Dec 9 15:19:03 2016 New Revision: 428216 URL: https://svnweb.freebsd.org/changeset/ports/428216 Log: multimedia/mpv: Add DOCS and MANPAGES options - Add DOCS and MANPAGES options using options helpers to simplify conditional values - Update pkg-plist accordingly - Bump PORTREVISION Reported by: Robert Burmeister via email Reviewed by: junovitch (mentor) Approved by: junovitch (mentor) Differential Revision: D8726 Modified: head/multimedia/mpv/Makefile head/multimedia/mpv/pkg-plist Modified: head/multimedia/mpv/Makefile ============================================================================== --- head/multimedia/mpv/Makefile Fri Dec 9 15:10:37 2016 (r428215) +++ head/multimedia/mpv/Makefile Fri Dec 9 15:19:03 2016 (r428216) @@ -4,6 +4,7 @@ PORTNAME= mpv PORTVERSION= 0.22.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= multimedia audio @@ -14,8 +15,6 @@ LICENSE= GPLv2+ LGPL21+ LICENSE_COMB= multi LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg -BUILD_DEPENDS= rst2man:textproc/py-docutils \ - rst2html:textproc/py-docutils USE_GITHUB= yes GH_ACCOUNT= mpv-player waf-project:waf @@ -43,12 +42,11 @@ CONFIGURE_ARGS= --docdir=${EXAMPLESDIR} --disable-videotoolbox-hwaccel \ --disable-videotoolbox-gl \ --disable-wayland \ - --enable-libmpv-shared \ - --enable-html + --enable-libmpv-shared -OPTIONS_DEFINE= ASS DOCS ENCA LCMS2 \ - LIBGUESS LUAJIT UCHARDET ZSH -OPTIONS_DEFAULT= ASS DVDREAD DVDNAV ENCA OPENGL \ +OPTIONS_DEFINE= ASS DOCS ENCA LCMS2 LIBGUESS LUAJIT \ + MANPAGES UCHARDET ZSH +OPTIONS_DEFAULT= ASS DVDREAD DVDNAV ENCA MANPAGES OPENGL \ V4L VAAPI VDPAU X11 XINERAMA YTDL ZSH OPTIONS_GROUP= IN VO AO OPTIONS_GROUP_IN= CDIO DVDREAD DVDNAV LIBBLURAY V4L YTDL SMB @@ -80,6 +78,9 @@ CACA_CONFIGURE_OFF= --disable-caca CDIO_LIB_DEPENDS= libcdio_paranoia.so:sysutils/libcdio-paranoia CDIO_CONFIGURE_OFF= --disable-cdda +DOCS_BUILD_DEPENDS= rst2html:textproc/py-docutils +DOCS_CONFIGURE_ON= --enable-html + DVDNAV_LIB_DEPENDS= libdvdnav.so:multimedia/libdvdnav DVDNAV_CONFIGURE_OFF= --disable-dvdnav @@ -106,6 +107,9 @@ LUAJIT_USES_OFF= lua LUAJIT_CONFIGURE_ON= --lua=luajit LUAJIT_CONFIGURE_OFF= --lua=${LUA_VER_STR}fbsd +MANPAGES_BUILD_DEPENDS= rst2man:textproc/py-docutils +MANPAGES_CONFIGURE_OFF= --disable-manpage + OPENGL_USE= GL=egl,gbm,gl OPENGL_CONFIGURE_OFF= --disable-gl OPENGL_IMPLIES= X11 @@ -154,6 +158,7 @@ ZSH_CONFIGURE_ENABLE= zsh-comp post-patch: @${REINPLACE_CMD} -e 's|/pkgconfig/mpv.pc|data/pkgconfig/mpv.pc|g' \ ${WRKSRC}/wscript_build.py +post-patch-MANPAGES-on: @${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | ${XARGS} ${REINPLACE_CMD} \ -e 's|/usr/local|${PREFIX}|g' Modified: head/multimedia/mpv/pkg-plist ============================================================================== --- head/multimedia/mpv/pkg-plist Fri Dec 9 15:10:37 2016 (r428215) +++ head/multimedia/mpv/pkg-plist Fri Dec 9 15:19:03 2016 (r428216) @@ -8,7 +8,7 @@ lib/libmpv.so lib/libmpv.so.1 lib/libmpv.so.1.23.0 libdata/pkgconfig/mpv.pc -man/man1/mpv.1.gz +%%MANPAGES%%man/man1/mpv.1.gz share/applications/mpv.desktop share/icons/hicolor/16x16/apps/mpv.png share/icons/hicolor/32x32/apps/mpv.png