summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2017-09-07 23:25:09 +0200
committerJohannes Huber <johu@gentoo.org>2017-09-07 23:41:28 +0200
commitb82147b1da5ee75172aacba827cfc4afd9538243 (patch)
treebd14458ffde6fb246e554a9c9810994e07e2dca5 /media-libs
parentapp-crypt/certbot-apache: 0.18.0 bup (diff)
downloadgentoo-b82147b1da5ee75172aacba827cfc4afd9538243.tar.gz
gentoo-b82147b1da5ee75172aacba827cfc4afd9538243.tar.bz2
gentoo-b82147b1da5ee75172aacba827cfc4afd9538243.zip
media-libs/qtav: New package
Initial ebuild by me. Closes: https://bugs.gentoo.org/show_bug.cgi?id=613146 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/qtav/Manifest2
-rw-r--r--media-libs/qtav/files/qtav-1.12.0-multilib.patch19
-rw-r--r--media-libs/qtav/metadata.xml14
-rw-r--r--media-libs/qtav/qtav-1.12.0.ebuild60
4 files changed, 95 insertions, 0 deletions
diff --git a/media-libs/qtav/Manifest b/media-libs/qtav/Manifest
new file mode 100644
index 000000000000..fb23381b9b9f
--- /dev/null
+++ b/media-libs/qtav/Manifest
@@ -0,0 +1,2 @@
+DIST qtav-1.12.0-capi.h-b43aa93.xz 6120 SHA256 0ce2bf82324698500a9cfa261a4a6089a6c351ce37e376ac71202744e377e442 SHA512 f5e458b157a5f343bc5d4133cfe45ffefb5c6cbb902b41ae6b9d9349e31ca7ac5a2746addc4fef89fb74856f5db7691cf174d82e88b51cc0b7a356c4fdab5aa7 WHIRLPOOL 4f233ed35725cf96b5e9dffccd82fb5e203ff9b4f2a599446de371f4ddf3c9ec04aaff8d525a3b6e939d8f9459c4edc08f44170a6701756256e970b456e31951
+DIST qtav-1.12.0.tar.gz 998117 SHA256 65ab859985d73521c2d17e72117baae0f3f6242b69f59994acada76fa5364193 SHA512 f273d10a4fe9126cd7d7b1293c087527bf898513e8add7958d905b6039b0c9c3891ea751c40e4c13ba683febff73912322953b151a131726ef8b44db199e0f32 WHIRLPOOL e79a6d9f1caeac1e3fb38efa98b21fdc4e2120ff7c30b79e47ba370ae95614406ba4d8aebc633b57ffaa8975a16efaa83d614bdb3936c5c6d97ed3244011ce86
diff --git a/media-libs/qtav/files/qtav-1.12.0-multilib.patch b/media-libs/qtav/files/qtav-1.12.0-multilib.patch
new file mode 100644
index 000000000000..608a67dfe0d0
--- /dev/null
+++ b/media-libs/qtav/files/qtav-1.12.0-multilib.patch
@@ -0,0 +1,19 @@
+commit 87e54cc4d3fa76f3b226fbf2822a87af48cf3e51
+Author: Johannes Huber <johu@gentoo.org>
+Date: Wed Sep 6 23:30:42 2017 +0200
+
+ Fix multilib install
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ef7ade07..11f8603b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -66,7 +66,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) # for .moc
+ set(CMAKE_AUTOMOC ON)
+ if(NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+ set(QTAV_INSTALL_HEADERS ${CMAKE_INSTALL_PREFIX}/include)
+- set(QTAV_INSTALL_LIBS ${CMAKE_INSTALL_PREFIX}/lib)
++ set(QTAV_INSTALL_LIBS ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
+ set(QTAV_INSTALL_BINS ${CMAKE_INSTALL_PREFIX}/bin)
+ set(QTAV_INSTALL_QML ${CMAKE_INSTALL_PREFIX}/qml)
+ else()
diff --git a/media-libs/qtav/metadata.xml b/media-libs/qtav/metadata.xml
new file mode 100644
index 000000000000..396b8768424a
--- /dev/null
+++ b/media-libs/qtav/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>johu@gentoo.org</email>
+ <name>Johannes Huber</name>
+ </maintainer>
+ <use>
+ <flag name="gui">Build a video player gui</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">wang-bin/QtAV</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-libs/qtav/qtav-1.12.0.ebuild b/media-libs/qtav/qtav-1.12.0.ebuild
new file mode 100644
index 000000000000..6437e6a61b12
--- /dev/null
+++ b/media-libs/qtav/qtav-1.12.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="QtAV"
+CAPI_HASH="b43aa93"
+inherit cmake-utils
+
+DESCRIPTION="Multimedia playback framework based on Qt + FFmpeg"
+HOMEPAGE="https://www.qtav.org"
+SRC_URI="https://github.com/wang-bin/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+https://dev.gentoo.org/~johu/distfiles/${P}-capi.h-${CAPI_HASH}.xz"
+
+LICENSE="GPL-3+ LGPL-2.1+"
+SLOT="0/1"
+KEYWORDS="~amd64"
+IUSE="gui libav opengl portaudio pulseaudio vaapi"
+REQUIRED_USE="gui? ( opengl )"
+
+DEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdeclarative:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ gui? ( dev-qt/qtsql:5 )
+ libav? (
+ media-video/libav:=
+ x11-libs/libX11
+ )
+ !libav? ( media-video/ffmpeg:= )
+ opengl? ( dev-qt/qtopengl:5 )
+ portaudio? ( media-libs/portaudio )
+ pulseaudio? ( media-sound/pulseaudio )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+PATCHES=( "${FILESDIR}/${P}-multilib.patch" )
+
+src_prepare() {
+ cmake-utils_src_prepare
+ cp "${WORKDIR}/${P}-capi.h-${CAPI_HASH}" contrib/capi/capi.h \
+ || die "Failed to add missing header"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS=OFF
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_PLAYERS=$(usex gui)
+ -DBUILD_QT5OPENGL=$(usex opengl)
+ -DHAVE_PORTAUDIO=$(usex portaudio)
+ -DHAVE_PULSE=$(usex pulseaudio)
+ -DHAVE_VAAPI=$(usex vaapi)
+ )
+
+ cmake-utils_src_configure
+}