From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 942EE138335 for ; Thu, 29 Nov 2018 23:01:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 814E5E08A6; Thu, 29 Nov 2018 23:01:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3ED21E08A8 for ; Thu, 29 Nov 2018 23:01:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7BB3F335C7F for ; Thu, 29 Nov 2018 23:01:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E677F326 for ; Thu, 29 Nov 2018 23:01:51 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1543532491.f7cd7ef9a95742dee1a05ea0d4fde02b938df4e6.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/gpac/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/gpac/gpac-0.7.1-r1.ebuild X-VCS-Directories: media-video/gpac/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: f7cd7ef9a95742dee1a05ea0d4fde02b938df4e6 X-VCS-Branch: master Date: Thu, 29 Nov 2018 23:01:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ca071498-42a8-4a7d-9c66-6bff6c2534ca X-Archives-Hash: 925b3fbbedcf9c8527e7afdcae8cb726 commit: f7cd7ef9a95742dee1a05ea0d4fde02b938df4e6 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Nov 29 22:29:28 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Nov 29 23:01:31 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7cd7ef9 media-video/gpac: Someone claimed it works with jack2 So let them have it. Reported-by: gerion flump.de> Closes: https://bugs.gentoo.org/636598 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> media-video/gpac/gpac-0.7.1-r1.ebuild | 141 ++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) diff --git a/media-video/gpac/gpac-0.7.1-r1.ebuild b/media-video/gpac/gpac-0.7.1-r1.ebuild new file mode 100644 index 00000000000..9b94d9fe254 --- /dev/null +++ b/media-video/gpac/gpac-0.7.1-r1.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} == *9999 ]] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/gpac/gpac" +else + SRC_URI="https://github.com/gpac/gpac/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +fi + +inherit flag-o-matic toolchain-funcs ${SCM} + +DESCRIPTION="Implementation of the MPEG-4 Systems standard developed from scratch in ANSI C" +HOMEPAGE="https://gpac.wp.imt.fr/" + +LICENSE="GPL-2" +# subslot == libgpac major +SLOT="0/7" +IUSE="a52 aac alsa debug dvb ffmpeg ipv6 jack jpeg jpeg2k libav libressl mad opengl oss png + pulseaudio sdl ssl static-libs theora truetype vorbis xml xvid X" + +RDEPEND=" + a52? ( media-libs/a52dec ) + aac? ( >=media-libs/faad2-2.0 ) + alsa? ( media-libs/alsa-lib ) + dvb? ( media-tv/linuxtv-dvb-apps ) + ffmpeg? ( + !libav? ( media-video/ffmpeg:0= ) + libav? ( media-video/libav:0= ) ) + jack? ( virtual/jack ) + jpeg? ( virtual/jpeg:0 ) + mad? ( >=media-libs/libmad-0.15.1b ) + opengl? ( virtual/opengl media-libs/freeglut virtual/glu ) + >=media-libs/libogg-1.1 + png? ( >=media-libs/libpng-1.4:0= ) + vorbis? ( >=media-libs/libvorbis-1.1 ) + theora? ( media-libs/libtheora ) + truetype? ( >=media-libs/freetype-2.1.4:2 ) + xml? ( >=dev-libs/libxml2-2.6.0:2 ) + xvid? ( >=media-libs/xvid-1.0.1 ) + sdl? ( media-libs/libsdl ) + jpeg2k? ( media-libs/openjpeg:0 ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) ) + pulseaudio? ( media-sound/pulseaudio ) + X? ( + x11-libs/libXt + x11-libs/libX11 + x11-libs/libXv + x11-libs/libXext + ) +" +# disabled upstream, see applications/Makefile +# wxwidgets? ( =x11-libs/wxGTK-2.8* ) +DEPEND="${RDEPEND} + virtual/pkgconfig" + +# DOCS="AUTHORS BUGS Changelog README.md TODO doc/CODING_STYLE doc/*.doc doc/*.bt doc/SceneGenerators doc/ipmpx_syntax.bt doc/*.txt" +PATCHES=( + "${FILESDIR}/${PN}-0.7.1-configure.patch" + "${FILESDIR}/ffmpeg4.patch" + "${FILESDIR}/${PN}-freetype.patch" + "${FILESDIR}/${P}-openssl-1.1.patch" +) + +DOCS=( + doc/CODING_STYLE + doc/GPAC\ UPnP.doc + doc/ISO\ 639-2\ codes.txt + doc/SceneGenerators + doc/ipmpx_syntax.bt + Changelog + AUTHORS + BUGS + README.md + TODO +) +HTML_DOCS="doc/*.html" + +my_use() { + local flag="$1" pflag="${2:-$1}" + if use ${flag}; then + echo "--use-${pflag}=system" + else + echo "--use-${pflag}=no" + fi +} + +src_prepare() { + default + sed -i -e "s:\(--disable-.*\)=\*):\1):" configure || die +} + +src_configure() { + tc-export CC CXX AR RANLIB + + econf \ + --enable-svg \ + --enable-pic \ + --disable-amr \ + --use-js=no \ + --use-ogg=system \ + $(use_enable alsa) \ + $(use_enable debug) \ + $(use_enable ipv6) \ + $(use_enable jack jack yes) \ + $(use_enable opengl 3d) \ + $(use_enable oss oss-audio) \ + $(use_enable pulseaudio pulseaudio yes) \ + $(use_enable sdl) \ + $(use_enable ssl) \ + $(use_enable static-libs static-lib) \ + $(use_enable X x11) $(use_enable X x11-shm) $(use_enable X x11-xv) \ + --disable-wx \ + $(my_use a52) \ + $(my_use aac faad) \ + $(my_use dvb dvbx) \ + $(my_use ffmpeg) \ + $(my_use jpeg) \ + $(my_use jpeg2k openjpeg) \ + $(my_use mad) \ + $(my_use png) \ + $(my_use theora) \ + $(my_use truetype ft) \ + $(my_use vorbis) \ + $(my_use xvid) \ + --extra-cflags="${CFLAGS}" \ + --cc="$(tc-getCC)" \ + --libdir="/$(get_libdir)" \ + --verbose +} + +src_install() { + einstalldocs + emake STRIP="true" DESTDIR="${D}" install + emake STRIP="true" DESTDIR="${D}" install-lib +}