summaryrefslogtreecommitdiff
path: root/graphics/cambevao
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2004-06-27 21:33:23 +0000
committerabs <abs@pkgsrc.org>2004-06-27 21:33:23 +0000
commit31656acbb784cc40e9ac180fdaac6871156c542d (patch)
treec9aafbec1bb51c2dd78121f3bab37800a4195a73 /graphics/cambevao
parent189fa0ec36ec09bb5656adb9768e658775685a45 (diff)
downloadpkgsrc-31656acbb784cc40e9ac180fdaac6871156c542d.tar.gz
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 (limited to 'graphics/cambevao')
-rw-r--r--graphics/cambevao/DESCR11
-rw-r--r--graphics/cambevao/Makefile27
-rw-r--r--graphics/cambevao/PLIST5
-rw-r--r--graphics/cambevao/distinfo4
-rw-r--r--graphics/cambevao/patches.x/patch-aa37
-rw-r--r--graphics/cambevao/patches.x/patch-ab23
6 files changed, 107 insertions, 0 deletions
diff --git a/graphics/cambevao/DESCR b/graphics/cambevao/DESCR
new file mode 100644
index 00000000000..80061b275b9
--- /dev/null
+++ b/graphics/cambevao/DESCR
@@ -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 --git a/graphics/cambevao/Makefile b/graphics/cambevao/Makefile
new file mode 100644
index 00000000000..8a68481ef3e
--- /dev/null
+++ b/graphics/cambevao/Makefile
@@ -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
+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 --git a/graphics/cambevao/PLIST b/graphics/cambevao/PLIST
new file mode 100644
index 00000000000..7b3bc85cb96
--- /dev/null
+++ b/graphics/cambevao/PLIST
@@ -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 --git a/graphics/cambevao/distinfo b/graphics/cambevao/distinfo
new file mode 100644
index 00000000000..6ef42df4464
--- /dev/null
+++ b/graphics/cambevao/distinfo
@@ -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 --git a/graphics/cambevao/patches.x/patch-aa b/graphics/cambevao/patches.x/patch-aa
new file mode 100644
index 00000000000..6fc5a4a3083
--- /dev/null
+++ b/graphics/cambevao/patches.x/patch-aa
@@ -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 --git a/graphics/cambevao/patches.x/patch-ab b/graphics/cambevao/patches.x/patch-ab
new file mode 100644
index 00000000000..bdd54ebf5e6
--- /dev/null
+++ b/graphics/cambevao/patches.x/patch-ab
@@ -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"