summaryrefslogtreecommitdiff
path: root/graphics/vid
diff options
context:
space:
mode:
authorwulf <wulf>2002-02-18 03:06:16 +0000
committerwulf <wulf>2002-02-18 03:06:16 +0000
commit1d253fda1e90ef3f107dca58ba0a965048b08ade (patch)
tree3b51c49cc65e0fa2e0b082853850208db5e09005 /graphics/vid
parente5d0906af70478ecb11e848e1c687298cd8c61f0 (diff)
downloadpkgsrc-1d253fda1e90ef3f107dca58ba0a965048b08ade.tar.gz
Initial submission of vid-1.0.1:
A simple-minded image capture program for some USB webcams.
Diffstat (limited to 'graphics/vid')
-rw-r--r--graphics/vid/DESCR11
-rw-r--r--graphics/vid/Makefile25
-rw-r--r--graphics/vid/PLIST4
-rw-r--r--graphics/vid/distinfo6
-rw-r--r--graphics/vid/patches/patch-aa20
-rw-r--r--graphics/vid/patches/patch-ab39
6 files changed, 105 insertions, 0 deletions
diff --git a/graphics/vid/DESCR b/graphics/vid/DESCR
new file mode 100644
index 00000000000..620079538b7
--- /dev/null
+++ b/graphics/vid/DESCR
@@ -0,0 +1,11 @@
+This is a simple image capture program for USB webcams based on the
+OmniVision Technologies OV511 bridge chip attached to an OV7610 CCD
+imager. This includes webcams such as:
+
+* Creative Labs WebCam 3
+* D-Link DSB-C300
+* Puretek PT-6007
+* Koala-Cam
+* Lifeview RoboCam
+* AverMedia InterCam Elite
+* MediaForte MV300
diff --git a/graphics/vid/Makefile b/graphics/vid/Makefile
new file mode 100644
index 00000000000..a133f6bd332
--- /dev/null
+++ b/graphics/vid/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/02/18 03:06:16 wulf Exp $
+#
+
+DISTNAME= vid-1.0.1
+CATEGORIES= graphics
+MASTER_SITES= http://members.home.com/housel/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://members.home.com/housel/projects.htm
+COMMENT= simple-minded image capture program for some USB webcams
+
+ALL_TARGET= vid
+
+DOCDIR= share/doc/${PKGBASE}
+PLIST_SUBST+= DOCDIR=${DOCDIR}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/vid ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCDIR}
+
+USE_BUILDLINK_ONLY= YES
+
+.include "../../graphics/netpbm/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/vid/PLIST b/graphics/vid/PLIST
new file mode 100644
index 00000000000..17585224eea
--- /dev/null
+++ b/graphics/vid/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/02/18 03:06:16 wulf Exp $
+bin/vid
+${DOCDIR}/README
+@dirrm ${DOCDIR}
diff --git a/graphics/vid/distinfo b/graphics/vid/distinfo
new file mode 100644
index 00000000000..a6f4ee933bb
--- /dev/null
+++ b/graphics/vid/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/02/18 03:06:16 wulf Exp $
+
+SHA1 (vid-1.0.1.tar.gz) = 4967f9d02429f9202ea879c051c736d112856063
+Size (vid-1.0.1.tar.gz) = 13986 bytes
+SHA1 (patch-aa) = c3704b480290f030f1c72a7686e2d8738ee24806
+SHA1 (patch-ab) = e5c414fd06ae6806b74bc534be4e0b1450effc70
diff --git a/graphics/vid/patches/patch-aa b/graphics/vid/patches/patch-aa
new file mode 100644
index 00000000000..c6aedf32905
--- /dev/null
+++ b/graphics/vid/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/02/18 03:06:16 wulf Exp $
+
+--- Makefile.orig Mon May 8 00:59:03 2000
++++ Makefile
+@@ -5,13 +5,12 @@
+ VERSION = 1.0.1
+
+ CFLAGS = -O
+-CPPFLAGS = -I/usr/local/include
+-LIBS = -L/usr/local/lib -lpnm
++LIBS = -lpnm -lpbm -lpgm -lppm
+
+ default: vid
+
+ vid: vid.c vid.h
+- $(CC) $(CPPFLAGS) $(CFLAGS) -o vid vid.c $(LIBS)
++ $(CC) $(CPPFLAGS) $(CFLAGS) -o vid vid.c $(LIBS) $(LDFLAGS)
+
+ dist: vid-$(VERSION).tar.gz
+
diff --git a/graphics/vid/patches/patch-ab b/graphics/vid/patches/patch-ab
new file mode 100644
index 00000000000..58887a6a6a8
--- /dev/null
+++ b/graphics/vid/patches/patch-ab
@@ -0,0 +1,39 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/02/18 03:06:16 wulf Exp $
+
+--- vid.c.orig Mon May 8 14:29:03 2000
++++ vid.c Fri Dec 28 20:01:07 2001
+@@ -294,7 +294,11 @@
+ } else {
+ int i = 0;
+ for(i = 0; i < 15; ++i) {
++#ifdef __NetBSD__
++ sprintf(dev, "/dev/ugen%d.00", i);
++#else
+ sprintf(dev, "/dev/ugen%d", i);
++#endif
+ if((fd = open(dev, O_RDWR)) < 0)
+ continue;
+ if(ioctl(fd, USB_GET_DEVICEINFO, &udi) < 0
+@@ -398,7 +402,8 @@
+ if(ov511_reg_write(fd, OV511_REG_CE_EN, 0x0) < 0)
+ exit(1);
+
+- ov511_i2c_write(fd, OV7610_REG_RWB, 0x5);
++ ov511_i2c_write(fd, OV7610_REG_GC, 0x00);
++ ov511_i2c_write(fd, OV7610_REG_RWB, 0x05);
+ ov511_i2c_write(fd, OV7610_REG_EC, 0xFF);
+ ov511_i2c_write(fd, OV7610_REG_COMB, 0x01);
+ ov511_i2c_write(fd, OV7610_REG_FD, 0x06);
+@@ -468,7 +473,11 @@
+ vs.xels = pnm_allocarray(vs.width, vs.height);
+
+ /* open the isochronous endpoint (endpoint 1) */
+- sprintf(isocdev, "%s.1", devname);
++#ifdef __NetBSD__
++ sprintf(isocdev, "%s.01", strtok(devname,"."));
++#else
++ sprintf(isocdev, "%s.01", devname);
++#endif
+ if((isoc = open(isocdev, O_RDONLY)) < 0) {
+ perror(isocdev);
+ exit(1);