diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-10-14 00:36:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-10-14 00:36:14 +0000 |
commit | ce02a509daafc531f5e0aa9aa346ea1808efa8d8 (patch) | |
tree | b9a78478317e455938c8edbb2c4b41a60cf79d28 /media-video/SDLcam/SDLcam-0.7.3-r2.ebuild | |
parent | add support for USE=nls to fix uClibc systems #109143 by Jens Pranaitis (diff) | |
download | gentoo-2-ce02a509daafc531f5e0aa9aa346ea1808efa8d8.tar.gz gentoo-2-ce02a509daafc531f5e0aa9aa346ea1808efa8d8.tar.bz2 gentoo-2-ce02a509daafc531f5e0aa9aa346ea1808efa8d8.zip |
Add tsc fix by Tobias Klausmann #109161.
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'media-video/SDLcam/SDLcam-0.7.3-r2.ebuild')
-rw-r--r-- | media-video/SDLcam/SDLcam-0.7.3-r2.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/media-video/SDLcam/SDLcam-0.7.3-r2.ebuild b/media-video/SDLcam/SDLcam-0.7.3-r2.ebuild new file mode 100644 index 000000000000..744412b9c4e8 --- /dev/null +++ b/media-video/SDLcam/SDLcam-0.7.3-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/SDLcam/SDLcam-0.7.3-r2.ebuild,v 1.1 2005/10/14 00:36:14 vapier Exp $ + +inherit eutils + +DESCRIPTION="Webcam application that uses the SDL library" +HOMEPAGE="http://sdlcam.raphnet.net/" +SRC_URI="http://sdlcam.raphnet.net/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="dev-libs/libxml2 + media-libs/libfame + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-ttf" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PV}-gcc3.patch + epatch "${FILESDIR}"/${PV}-no-divx.patch + rm capture/divx.c # the divx.so needs to be ported to newer avifile + epatch "${FILESDIR}"/${PV}-linux-2.6.patch + epatch "${FILESDIR}"/${P}-tsc.patch #109161 + epatch "${FILESDIR}"/${P}-prototypes.patch + sed -i \ + -e "s: -g: ${CFLAGS} `avifile-config --cflags`:" \ + -e 's:-Wstrict-prototypes::' \ + Makefile + sed -i "/#include/s:avifile/::" capture/divx2.cpp + + # Don't you love hardcoded vars? + sed -i \ + -e 's:/usr/local/share/SDLcam/:/usr/share/SDLcam/:' \ + -e 's:/usr/local/lib/SDLcam:/usr/lib/SDLcam:' \ + -e 's:sources/:/usr/lib/SDLcam/sources/:' \ + configuration.h interface.cpp SDL_v4l_filters.c main.cpp +} + +src_install() { + dobin SDLcam || die + insinto /usr/share/SDLcam + doins LucidaSansRegular.ttf LucidaTypewriterRegular.ttf SDLcam.xml SDLcam.cfg || die + insinto /usr/lib/SDLcam/filters + doins filter/*.so || die + insinto /usr/lib/SDLcam/capture + doins capture/*.so || die + insinto /usr/lib/SDLcam/sources + doins sources/*.so || die +} |