pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/cambevao Inport cambevao 2.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/ada662ac859d
branches: trunk
changeset: 477195:ada662ac859d
user: abs <abs%pkgsrc.org@localhost>
date: Sun Jun 27 21:33:23 2004 +0000
description:
Inport cambevao 2.0
cambevao grabs images from NetBSD's or FreeBSD's /dev/bktr and ov511+ based
USB webcams and saves them as jpegs. It includes a built-in mini webserver
for static and streaming images.
diffstat:
graphics/cambevao/DESCR | 11 ++++++++++
graphics/cambevao/Makefile | 27 ++++++++++++++++++++++++++
graphics/cambevao/PLIST | 5 ++++
graphics/cambevao/distinfo | 4 +++
graphics/cambevao/patches.x/patch-aa | 37 ++++++++++++++++++++++++++++++++++++
graphics/cambevao/patches.x/patch-ab | 23 ++++++++++++++++++++++
6 files changed, 107 insertions(+), 0 deletions(-)
diffs (131 lines):
diff -r 7b1e450ea44b -r ada662ac859d graphics/cambevao/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cambevao/DESCR Sun Jun 27 21:33:23 2004 +0000
@@ -0,0 +1,11 @@
+cambevao grabs images from NetBSD's or FreeBSD's /dev/bktr and ov511+ based
+USB webcams and saves them as jpegs. It can be used as a console based webcam
+program.
+
+This project started as bktr2jpeg and was (for several years) a single
+C-source file that supported bktr-based devices only. After adding support
+for USB webcams further features got added and the list includes now an
+XML-based config file and a built-in mini webserver for static and streaming
+images. There is a nice interface between the camera driver and the rest of
+the program, so adding new devices is not hard (beside writing the driver).
+Includes rc-scripts for NetBSD's rc.d startup and shutdown scripts.
diff -r 7b1e450ea44b -r ada662ac859d graphics/cambevao/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cambevao/Makefile Sun Jun 27 21:33:23 2004 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/27 21:33:23 abs Exp $
+#
+
+DISTNAME= cambevao-2.0
+CATEGORIES= graphics
+MASTER_SITES= http://core.de/~coto/projects/cambevao/
+
+MAINTAINER= abs%NetBSD.org@localhost
+HOMEPAGE= http://core.de/~coto/projects/cambevao/
+COMMENT= Grabs images as jpg from bktr and ov511+ based USB webcams
+
+USE_BUILDLINK3= yes
+MAKE_ENV= prefix=${PREFIX}
+RCD_SCRIPTS= cambevao
+USE_PKGINSTALL= yes
+
+ONLY_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-*
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cambevao
+ ${INSTALL_DATA} ${WRKSRC}/cambevao.xml ${PREFIX}/share/examples/cambevao
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cambevao.README
+ ${INSTALL_SCRIPT} ${WRKSRC}/cambevao.rc.d ${RCD_SCRIPTS_EXAMPLEDIR}/cambevao
+
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7b1e450ea44b -r ada662ac859d graphics/cambevao/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cambevao/PLIST Sun Jun 27 21:33:23 2004 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/27 21:33:23 abs Exp $
+bin/cambevao
+share/doc/cambevao.README
+share/examples/cambevao/cambevao.xml
+@dirrm share/examples/cambevao
diff -r 7b1e450ea44b -r ada662ac859d graphics/cambevao/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cambevao/distinfo Sun Jun 27 21:33:23 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/06/27 21:33:23 abs Exp $
+
+SHA1 (cambevao-2.0.tar.gz) = 3ad8a3ddd7b05ee5142a13e08b20c06b0ca1616f
+Size (cambevao-2.0.tar.gz) = 33817 bytes
diff -r 7b1e450ea44b -r ada662ac859d graphics/cambevao/patches.x/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cambevao/patches.x/patch-aa Sun Jun 27 21:33:23 2004 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/06/27 21:33:24 abs Exp $
+
+--- Makefile.orig 2004-04-29 22:37:25.000000000 +0100
++++ Makefile
+@@ -1,6 +1,7 @@
+
+ PROGRAM = cambevao
+-prefix = /usr/pkg
++RCD_SCRIPT = ${PROGRAM}.rc.d
++prefix ?= /usr/pkg
+ exec_prefix = ${prefix}
+ bindir = $(exec_prefix)/bin
+ libdir = $(exec_prefix)/lib
+@@ -8,6 +9,7 @@ includedir = $(prefix)/include
+ manext = 1
+ mandir = $(prefix)/man/man$(manext)
+
++SED = sed
+ RM = rm -f
+ INSTALL = /usr/bin/install -c -s -o root -g wheel -m 555
+ CFLAGS = -Wall -O2 -I$(includedir) -DPROGRAM=\"$(PROGRAM)\" -DMAX_CONN=3
+@@ -24,11 +26,13 @@ OBJS = main.o font.o server.o log.o pref
+
+ $(PROGRAM): $(OBJS)
+ $(CC) $(LDFLAGS) $(OBJS) -o $(PROGRAM) $(LDLIBS)
+-all: $(PROGRAM)
++$(RCD_SCRIPT): template.rc.d
++ $(SED) -e 's:@PROGRAM@:${PROGRAM}:g' -e 's:@PREFIX@:${prefix}:g' < $> > $@
++all: $(PROGRAM) $(RCD_SCRIPT)
+ install: $(PROGRAM)
+ $(INSTALL) $(PROGRAM) $(bindir)
+ clean:
+- $(RM) *.o $(PROGRAM) *.core
++ $(RM) *.o $(PROGRAM) $(RCD_SCRIPT) *.core
+
+ distclean: clean
+ $(RM) *.jpg *.jpeg access.log
diff -r 7b1e450ea44b -r ada662ac859d graphics/cambevao/patches.x/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cambevao/patches.x/patch-ab Sun Jun 27 21:33:23 2004 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/06/27 21:33:24 abs Exp $
+
+--- /dev/null 2004-06-25 22:41:00.000000000 +0100
++++ template.rc.d 2004-06-25 22:41:02.000000000 +0100
+@@ -0,0 +1,18 @@
++#!/bin/sh
++#
++# $ NetBSD $
++#
++# PROVIDE: @PROGRAM@
++# REQUIRE: DAEMON
++
++if [ -f /etc/rc.subr ]
++then
++ . /etc/rc.subr
++fi
++
++name="@PROGRAM@"
++rcvar=$name
++command="@PREFIX@/bin/${name}"
++
++load_rc_config $name
++run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index