summaryrefslogtreecommitdiff
blob: cf9e01bf798d70a4ca1e3533e478426e8064a8ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/SDLcam/SDLcam-0.7.3.ebuild,v 1.6 2003/09/10 04:37:59 vapier Exp $

DESCRIPTION="Webcam application that uses the SDL library"
HOMEPAGE="http://raph.darktech.org/SDLcam/"
SRC_URI="http://raph.darktech.org/SDLcam/downloads/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND="dev-libs/libxml2
	media-libs/libsdl
	media-libs/sdl-image
	media-libs/sdl-ttf"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-gcc3.patch
	# 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:" \
		configuration.h interface.cpp SDL_v4l_filters.c
}

src_compile() {
	emake || die
}

src_install () {
	dobin SDLcam
	insinto /usr/share/SDLcam
	doins LucidaSansRegular.ttf LucidaTypewriterRegular.ttf SDLcam.xml SDLcam.cfg
	insinto /usr/lib/SDLcam/filters
	doins ${S}/filter/*.so
	insinto /usr/lib/SDLcam/capture
	doins ${S}/capture/*.so
}