From 7c779316adbb83dd22d733ca8c1a58331c9f991f Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Wed, 6 Nov 2013 17:09:36 -0800 Subject: [PATCH] Add media-video/glc --- conf/portage/package.keywords | 4 ++ media-video/glc/Manifest | 2 + media-video/glc/glc-0.5.8.ebuild | 86 ++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 media-video/glc/Manifest create mode 100644 media-video/glc/glc-0.5.8.ebuild diff --git a/conf/portage/package.keywords b/conf/portage/package.keywords index 6b51825..742f385 100644 --- a/conf/portage/package.keywords +++ b/conf/portage/package.keywords @@ -34,6 +34,9 @@ app-emulation/uae games-emulation/advancemame virtual/opencl +# Video capture +media-video/glc + app-emulation/emul-linux-x86-baselibs app-emulation/emul-linux-x86-db app-emulation/emul-linux-x86-gtklibs @@ -49,6 +52,7 @@ app-emulation/emul-linux-x86-qtlibs media-gfx/dispcalgui www-client/firefox +media-libs/libpng # EVE games-util/gtkevemon ** diff --git a/media-video/glc/Manifest b/media-video/glc/Manifest new file mode 100644 index 0000000..8786eb1 --- /dev/null +++ b/media-video/glc/Manifest @@ -0,0 +1,2 @@ +DIST glc-0.5.8.tar.gz 146823 SHA256 396012299a2d4efc7f73610e106cd3d73d41772232bd1f9c402e1d631250ee7d SHA512 9dca1c1ded8be12540d7ce11568e2fa9b79c78ae2a52459b017fe8d31db58abc868c207e7d5613982d2fb3b087402dcf6552bf2cc30e04064d7898fdcd2a155a WHIRLPOOL be6b82e160e275dd361f89e8001e13bfdcbc23612e63a797a18558ceb33e7a960e16d48e98409b152abd097b3096005294fb799860d13ea85995f116b19c3fb6 +EBUILD glc-0.5.8.ebuild 1847 SHA256 c0b61d762cecacc101fa5406d02a021b5a0b3e7de9fb4be2e525e05ee332f9b9 SHA512 d1b3390bd514cb46c173a422d3ee27c17e061e0be7a38be4ca3f4c53ea4611bac53962a7edcbcc38f1e5ceb2091c74b2fb32e57d9e65027c57c9730ee95f9ae5 WHIRLPOOL 7667491e75994354aad27ad7a6449265c5445a11a0b1547d7ec81d8cd8b621df976cb8db8f5edf48b43895327787f2caa77e5cc89f9c2d577bef5616c4957449 diff --git a/media-video/glc/glc-0.5.8.ebuild b/media-video/glc/glc-0.5.8.ebuild new file mode 100644 index 0000000..19f2e28 --- /dev/null +++ b/media-video/glc/glc-0.5.8.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="OpenGL & ALSA video capture tool" +HOMEPAGE="http://github.com/nullkey/glc/" +SRC_URI="http://nullkey.kapsi.fi/${PN}/archive/${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="example-scripts" + +DEPEND=">=dev-libs/packetstream-0.1.3 + >=dev-libs/elfhacks-0.4.0 + virtual/opengl + x11-libs/libX11 + x11-proto/xf86vidmodeproto + media-libs/alsa-lib + media-libs/libpng + dev-util/cmake" +RDEPEND="" + +RESTRICT="nomirror" +EMULTILIB_PKG="true" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} +} + +src_compile_abi() { + local abi=$1 + local mybuilddir="${WORKDIR}/build-${abi}" + + mkdir "${mybuilddir}" + cd "${mybuilddir}" + + local binaries="OFF" + local headers="OFF" + if $(is_final_abi ${abi}) ; then + binaries="ON" + headers="ON" + fi + + local scripts="OFF" + if use example-scripts && $(is_final_abi ${abi}) ; then + scripts="ON" + fi + + cmake "${S}" \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_BUILD_TYPE:STRING="Release" \ + -DCMAKE_CXX_COMPILER:FILEPATH="$(tc-getCXX)" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$(get_abi_var CXXFLAGS ${abi})" \ + -DCMAKE_C_COMPILER:FILEPATH="$(tc-getCC)" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$(get_abi_CFLAGS ${abi})" \ + -DMLIBDIR="$(get_libdir ${abi})" \ + -DBINARIES:BOOL="${binaries}" \ + -DSCRIPTS:BOOL="${scripts}" \ + -DHEADERS:BOOL="${headers}" \ + || die "cmake (${abi}) failed" + emake || die "emake (${abi}) failed" +} + +src_compile() { + for ABI in $(get_install_abis); do + src_compile_abi ${ABI} + done +} + +src_install_abi() { + local abi=$1 + cd "${WORKDIR}/build-${abi}" + emake DESTDIR="${D}" install \ + || die "emake install (${abi}) failed" +} + +src_install() { + for ABI in $(get_install_abis); do + src_install_abi ${ABI} + done +}