Add media-video/glc

This commit is contained in:
Stefan Reimer 2013-11-06 17:09:36 -08:00
parent a7f61e6eb1
commit 7c779316ad
3 changed files with 92 additions and 0 deletions

View File

@ -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 **

2
media-video/glc/Manifest Normal file
View File

@ -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

View File

@ -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
}