From owner-svn-ports-all@freebsd.org Sat Sep 22 21:09:42 2018 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 DEAAA10A3F94; Sat, 22 Sep 2018 21:09:42 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86D268320C; Sat, 22 Sep 2018 21:09:42 +0000 (UTC) (envelope-from yuri@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 72A0021213; Sat, 22 Sep 2018 21:09:42 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8ML9g3v048022; Sat, 22 Sep 2018 21:09:42 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8ML9g6j048021; Sat, 22 Sep 2018 21:09:42 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201809222109.w8ML9g6j048021@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 22 Sep 2018 21:09:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r480434 - head/audio/rhvoice X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/audio/rhvoice X-SVN-Commit-Revision: 480434 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 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: Sat, 22 Sep 2018 21:09:43 -0000 Author: yuri Date: Sat Sep 22 21:09:41 2018 New Revision: 480434 URL: https://svnweb.freebsd.org/changeset/ports/480434 Log: audio/rhvoice: Add audio backend options Only one backend seems to work at a time, therefore a RADIO section. Modified: head/audio/rhvoice/Makefile Modified: head/audio/rhvoice/Makefile ============================================================================== --- head/audio/rhvoice/Makefile Sat Sep 22 20:36:07 2018 (r480433) +++ head/audio/rhvoice/Makefile Sat Sep 22 21:09:41 2018 (r480434) @@ -3,7 +3,7 @@ PORTNAME= RHVoice DISTVERSION= 0.7.1-4 DISTVERSIONSUFFIX= -g1083ce5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MAINTAINER= yuri@FreeBSD.org @@ -14,14 +14,27 @@ LICENSE_COMB= multi LICENSE_FILE_LGPL21+ = ${WRKSRC}/licenses/lgpl-2.1.txt LICENSE_FILE_GPLv3+ = ${WRKSRC}/licenses/gpl-3.0.txt -LIB_DEPENDS= libao.so:audio/libao \ - libportaudio.so:audio/portaudio \ - libpulse.so:audio/pulseaudio - USES= pkgconfig scons USE_GITHUB= yes GH_ACCOUNT= Olga-Yakovleva USE_LDCONFIG= yes + +OPTIONS_RADIO= AUDIO +OPTIONS_RADIO_AUDIO= PULSEAUDIO AO PORTAUDIO # only one of them works at a time +OPTIONS_DEFAULT= AO + +PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio +AO_LIB_DEPENDS= libao.so:audio/libao +PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio + +post-patch-PULSEAUDIO-off: + ${REINPLACE_CMD} 's|conf.CheckPKG("libpulse-simple")|False and &|' ${WRKSRC}/SConstruct + +post-patch-AO-off: + ${REINPLACE_CMD} 's|conf.CheckPKG("ao")|False and &|' ${WRKSRC}/SConstruct + +post-patch-PORTAUDIO-off: + ${REINPLACE_CMD} 's|conf.CheckPKG("portaudio-2.0")|False and &|' ${WRKSRC}/SConstruct post-install: ${MV} ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample