summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-10-06 13:05:41 +0000
committerMike Frysinger <vapier@gentoo.org>2007-10-06 13:05:41 +0000
commit405e945b2cb26fb96962df1e9cef237578c044bf (patch)
tree666d71218ed68948c6639a254c4b6e0f1461f27f /media-video
parentMarked stable on amd64. (diff)
downloadgentoo-2-405e945b2cb26fb96962df1e9cef237578c044bf.tar.gz
gentoo-2-405e945b2cb26fb96962df1e9cef237578c044bf.tar.bz2
gentoo-2-405e945b2cb26fb96962df1e9cef237578c044bf.zip
Version bump #188475 by Leong Seh Hui.
(Portage version: 2.1.3.11)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/SDLcam/ChangeLog10
-rw-r--r--media-video/SDLcam/SDLcam-0.8.0.ebuild53
-rw-r--r--media-video/SDLcam/files/SDLcam-0.8.0-build.patch70
-rw-r--r--media-video/SDLcam/files/digest-SDLcam-0.8.03
4 files changed, 134 insertions, 2 deletions
diff --git a/media-video/SDLcam/ChangeLog b/media-video/SDLcam/ChangeLog
index dd19b3662d7e..cd87536426f0 100644
--- a/media-video/SDLcam/ChangeLog
+++ b/media-video/SDLcam/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/SDLcam
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/SDLcam/ChangeLog,v 1.8 2006/10/22 05:36:10 vapier Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/SDLcam/ChangeLog,v 1.9 2007/10/06 13:05:41 vapier Exp $
+
+*SDLcam-0.8.0 (06 Oct 2007)
+
+ 06 Oct 2007; Mike Frysinger <vapier@gentoo.org>
+ +files/SDLcam-0.8.0-build.patch, +SDLcam-0.8.0.ebuild:
+ Version bump #188475 by Leong Seh Hui.
22 Oct 2006; Mike Frysinger <vapier@gentoo.org>
files/SDLcam-0.7.3-build.patch, +files/SDLcam-0.7.3-jpeg.patch,
diff --git a/media-video/SDLcam/SDLcam-0.8.0.ebuild b/media-video/SDLcam/SDLcam-0.8.0.ebuild
new file mode 100644
index 000000000000..d5e58892b6a4
--- /dev/null
+++ b/media-video/SDLcam/SDLcam-0.8.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/SDLcam/SDLcam-0.8.0.ebuild,v 1.1 2007/10/06 13:05:41 vapier Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="webcam application that uses the SDL library"
+HOMEPAGE="http://sdlcam.raphnet.net/"
+SRC_URI="http://sdlcam.raphnet.net/downloads/sdlcam-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="dev-libs/libxml2
+ media-libs/jpeg
+ media-libs/libpng
+ media-libs/libfame
+ media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-ttf"
+
+S=${WORKDIR}/sdlcam-${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm config.log config.status Makefile config.h || die
+ epatch "${FILESDIR}"/${PN}-0.7.3-tsc.patch #109161
+ epatch "${FILESDIR}"/${PN}-0.7.3-prototypes.patch
+ epatch "${FILESDIR}"/${P}-build.patch
+ epatch "${FILESDIR}"/${PN}-0.7.3-jpeg.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/$(get_libdir)/SDLcam:' \
+ -e 's:sources/:/usr/$(get_libdir)/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
+ exeinto /usr/$(get_libdir)/SDLcam/filters
+ doexe filter/*.so || die
+ exeinto /usr/$(get_libdir)/SDLcam/capture
+ doexe capture/*.so || die
+ exeinto /usr/$(get_libdir)/SDLcam/sources
+ doexe sources/*.so || die
+}
diff --git a/media-video/SDLcam/files/SDLcam-0.8.0-build.patch b/media-video/SDLcam/files/SDLcam-0.8.0-build.patch
new file mode 100644
index 000000000000..2ae4c5b3cd37
--- /dev/null
+++ b/media-video/SDLcam/files/SDLcam-0.8.0-build.patch
@@ -0,0 +1,70 @@
+--- Makefile.in.orig
++++ Makefile.in
+@@ -1,16 +1,18 @@
+ CC = @CC@
+-CPP = @CXX@
+-LD = $(CPP)
+-LDFLAGS = `sdl-config --libs` `xml2-config --libs` -lSDL_image -lSDL_ttf -lm -lxml2 -rdynamic -ljpeg -ldl
++CXX = @CXX@
++LD = $(CXX)
++LDFLAGS = @LDFLAGS@
++LDLIBS = $(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_image -lSDL_ttf -lm -lxml2 -rdynamic -ljpeg -ldl
+ PROG = SDLcam
+
+ prefix=@prefix@
+ datadir=@datadir@
+
+-FEATURES = -DMMX -DTIMER
++CPPFLAGS = @CPPFLAGS@ -DMMX -DTIMER -DPROG_VERSION=\"0.7.3\" -DDATADIR="$(datadir)/SDLcam"
+
+-MMXFLAGS = -Wshadow -Wall -Wstrict-prototypes `sdl-config --cflags` `xml2-config --cflags` -DPROG_VERSION=\"0.7.3\" $(FEATURES)
+-CFLAGS = $(MMXFLAGS) -g -DDATADIR="$(datadir)/SDLcam"
++MMXFLAGS = -Wshadow -Wall $(shell sdl-config --cflags) $(shell xml2-config --cflags)
++CFLAGS = @CFLAGS@ $(MMXFLAGS) -Wstrict-prototypes
++CXXFLAGS = @CXXFLAGS@ $(MMXFLAGS)
+
+
+ OBJS = main.o init.o SDL_v4l.o SDL_v4l_filters.o webcam.o interface.o configuration.o config_file.o SDL_v4l_filters_thomas.o dump_thomas.o capture.o ftp-upload.o logo.o parser.o misc.o xml_theme.o dyn_misc.o
+@@ -34,32 +36,32 @@
+ ./install
+
+ %.o: %.cpp
+- $(CC) $(CFLAGS) -c $<
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $<
+
+ %.o: %.c
+- $(CPP) $(CFLAGS) -c $<
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+
+ sources/%.so: sources/%.cpp
+- $(CPP) $(FEATURES) -g -fPIC -shared -o $@ $?
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $?
+
+ sources/jpeg.so: sources/jpeg.cpp
+- $(CPP) $(FEATURES) -g -fPIC -shared -o $@ $? -ljpeg
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $? -ljpeg
+
+ filter/%.so: filter/%.c
+- $(CC) $(FEATURES) -g -fPIC -shared -o $@ $?
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $?
+
+ capture/mpeg.so: capture/mpeg.c
+- - $(CC) $(FEATURES) -g -fPIC -shared -o $@ $? -lfame
++ - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $? -lfame
+
+ capture/divx.so: capture/divx.c
+- - $(CC) $(FEATURES) -g -fPIC -shared -o $@ $? -ldivxencore
++ - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $? -ldivxencore
+
+ capture/divx2.so: capture/divx2.cpp
+- - $(CPP) $(FEATURES) -g -fPIC -shared -o $@ $?
++ - $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $?
+
+ SDLcam: $(OBJS)
+- $(LD) $(LDFLAGS) $(OBJS) -o $(PROG)
++ $(LD) $(LDFLAGS) $(OBJS) -o $(PROG) $(LDLIBS)
+ # $(LD) $(LDFLAGS) $(OBJS) -o $(PROG) -laviplay
+
+ SDL_v4l_filters_thomas.o: SDL_v4l_filters_thomas.c
+- $(CC) $(MMXFLAGS) -c SDL_v4l_filters_thomas.c
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c SDL_v4l_filters_thomas.c
diff --git a/media-video/SDLcam/files/digest-SDLcam-0.8.0 b/media-video/SDLcam/files/digest-SDLcam-0.8.0
new file mode 100644
index 000000000000..06bbe62104a4
--- /dev/null
+++ b/media-video/SDLcam/files/digest-SDLcam-0.8.0
@@ -0,0 +1,3 @@
+MD5 760a702a48ed839eedcc4af36dbe9f67 sdlcam-0.8.0.tar.gz 347284
+RMD160 550a7170bba30fab1266610ba828b76a12ccdfcb sdlcam-0.8.0.tar.gz 347284
+SHA256 7d227c042bf91b026ed0a585c378d34a2d50ad50061107f77adc8f367e21455a sdlcam-0.8.0.tar.gz 347284