diff options
author | thorpej <thorpej@pkgsrc.org> | 1998-08-24 04:45:50 +0000 |
---|---|---|
committer | thorpej <thorpej@pkgsrc.org> | 1998-08-24 04:45:50 +0000 |
commit | bc860a537a74ab16cf68b6debbc4c7e1367ac9c3 (patch) | |
tree | e0e726511f516c94198c16cefad8992e81744edd /graphics/cqcam | |
parent | 0addc21e4f54d1d458330a4c675872cb75826cf3 (diff) | |
download | pkgsrc-bc860a537a74ab16cf68b6debbc4c7e1367ac9c3.tar.gz |
cqcam, a program that captures images from a Connectix Color QuickCam,
connected to a PC-style parallel port.
XXX This is currently x86-only, as it uses direct i/o access to do its work.
Diffstat (limited to 'graphics/cqcam')
-rw-r--r-- | graphics/cqcam/Makefile | 20 | ||||
-rw-r--r-- | graphics/cqcam/files/md5 | 1 | ||||
-rw-r--r-- | graphics/cqcam/patches/patch-aa | 111 | ||||
-rw-r--r-- | graphics/cqcam/patches/patch-ab | 25 | ||||
-rw-r--r-- | graphics/cqcam/patches/patch-ac | 12 | ||||
-rw-r--r-- | graphics/cqcam/pkg/COMMENT | 1 | ||||
-rw-r--r-- | graphics/cqcam/pkg/DESCR | 1 | ||||
-rw-r--r-- | graphics/cqcam/pkg/PLIST | 5 |
8 files changed, 176 insertions, 0 deletions
diff --git a/graphics/cqcam/Makefile b/graphics/cqcam/Makefile new file mode 100644 index 00000000000..55f82f25198 --- /dev/null +++ b/graphics/cqcam/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 1998/08/24 04:45:50 thorpej Exp $ + +DISTNAME= cqcam-0.45a +CATEGORIES= graphics x11 +MASTER_SITES= http://www.cs.virginia.edu/~patrick/cqcam/ +EXTRACT_SUFX= .tgz + +# XXX uses inb/outb +ONLY_FOR_ARCHS= i386 + +MAINTAINER= packages@netbsd.org + +DEPENDS+= jpeg-6b:../../graphics/jpeg +DEPENDS+= tk-8.0p2:../../x11/tk80 + +LICENSE= no-profit + +MAN1= cqcam.1 + +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/cqcam/files/md5 b/graphics/cqcam/files/md5 new file mode 100644 index 00000000000..ff65265bbcc --- /dev/null +++ b/graphics/cqcam/files/md5 @@ -0,0 +1 @@ +MD5 (cqcam-0.45a.tgz) = ae0d0d7bdb68a13344089b466d8fd30a diff --git a/graphics/cqcam/patches/patch-aa b/graphics/cqcam/patches/patch-aa new file mode 100644 index 00000000000..b89bf8d57d7 --- /dev/null +++ b/graphics/cqcam/patches/patch-aa @@ -0,0 +1,111 @@ +--- Makefile.orig Mon Oct 27 15:07:06 1997 ++++ Makefile Sun Aug 23 20:39:57 1998 +@@ -13,9 +13,9 @@ + # OS-specific stuff: uncomment all of the lines for your OS of choice + + # Linux (people with Alphas probably need to enable -DBROKEN_IO_H) +-CFLAGS = -O2 +-LDFLAGS = -s +-DEFS += -DLINUX # -DBROKEN_IO_H ++#CFLAGS = -O2 ++#LDFLAGS = -s ++#DEFS += -DLINUX # -DBROKEN_IO_H + + # QNX + #CFLAGS = -O2 -T1 +@@ -23,10 +23,17 @@ + #DEFS += -DQNX + + # FreeBSD +-#CFLAGS = -O2 -I/usr/X11R6/include -I/usr/local/include +-#LDFLAGS = -L/usr/local/lib -L/usr/X11R6/lib ++#CFLAGS = -O2 -I${X11BASE}/include -I${PREFIX}/include ++#LDFLAGS = -L${PREFIX}/lib -L${X11BASE}/lib + #DEFS += -DFREEBSD + ++# NetBSD ++CFLAGS = -O2 -I${X11BASE}/include -I${PREFIX}/include ++LDFLAGS = -L${PREFIX}/lib -L${X11BASE}/lib ++DEFS += -DNETBSD ++# XXX Until we work out a way to use this on non-x86 ++LDLIBS += -li386 ++ + # BSDI 3.0 + #CFLAGS = -O2 -I/usr/X11R6/include -I/usr/local/include + #LDFLAGS = -L/usr/local/lib -L/usr/X11R6/lib +@@ -44,7 +51,7 @@ + # JPEG stuff: do you want JPEG support? Where is your JPEG library? + + LDLIBS += -ljpeg +-#LDFLAGS += # -L/usr/local/lib ++LDFLAGS += # -L/usr/local/lib + DEFS += -DJPEG + #CFLAGS += -I/usr/local/include + ###################################################################### +@@ -52,7 +59,7 @@ + ###################################################################### + # X11 stuff: where are your X11 .h and .a files? + +-LDFLAGS_X = -L/usr/X11R6/lib $(REMOTE_LDFLAGS) ++LDFLAGS_X = -L${X11BASE}/lib $(REMOTE_LDFLAGS) + LIBS_X = -lX11 -lXext $(REMOTE_LIBS) + ###################################################################### + +@@ -67,27 +74,27 @@ + # If you're not compiling xcqcam, this section is irrelevant + + # xview remote +-REMOTE_OBJS = xqcctl.o # code module for the remote +-REMOTE_DEFS = -DREMOTE +-REMOTE_LIBS = -lxview -lolgx # libraries necessary for the remote +-REMOTE_LDFLAGS = -L/usr/openwin/lib # where to find libxview and libolgx +-REMOTE_CFLAGS = -I/usr/openwin/include ++#REMOTE_OBJS = xqcctl.o # code module for the remote ++#REMOTE_DEFS = -DREMOTE ++#REMOTE_LIBS = -lxview -lolgx # libraries necessary for the remote ++#REMOTE_LDFLAGS = -L/usr/openwin/lib # where to find libxview and libolgx ++#REMOTE_CFLAGS = -I/usr/openwin/include + + # Tk remote +-#REMOTE_OBJS = xqcctl-tk.o # code module for the remote +-#REMOTE_DEFS = -DREMOTE +-#REMOTE_LIBS = -lm -ldl -ltk -ltcl # libraries necessary for the remote +-#REMOTE_LDFLAGS = +-#REMOTE_CFLAGS = ++REMOTE_OBJS = xqcctl-tk.o # code module for the remote ++REMOTE_DEFS = -DREMOTE ++REMOTE_LIBS = -lm -L${PREFIX}/lib -ltk80 -ltcl80 # libraries necessary for the remote ++REMOTE_LDFLAGS = ++REMOTE_CFLAGS = -I${PREFIX}/include/tcl8.0 -I${PREFIX}/include/tk8.0 + ###################################################################### + + ###################################################################### + # Installation information +-BINDIR = /usr/local/bin ++BINDIR = ${PREFIX}/bin + BINMODE = 4711 + BINUSER = root + BINGROUP = bin +-MANDIR = /usr/local/man/man1 ++MANDIR = ${PREFIX}/man/man1 + ###################################################################### + + ###################################################################### +@@ -132,13 +139,14 @@ + + bininstall: all + @echo -n Installing binaries... +- @install -o $(BINUSER) -g $(BINGROUP) -m $(BINMODE) $(PROGRAMS) $(BINDIR) ++ @install -c -s -o $(BINUSER) -g $(BINGROUP) -m $(BINMODE) $(PROGRAMS) $(BINDIR) + @echo " done" + + maninstall: cqcam.1 + @echo -n Installing man pages... +- @install -o root -g root -m 644 cqcam.1 $(MANDIR) +- @ln -sf cqcam.1 $(MANDIR)/xcqcam.1 ++ @install -c -o root -g wheel -m 644 cqcam.1 $(MANDIR) ++ @ln -sf cqcam.1.gz $(MANDIR)/xcqcam.1.gz ++ @ln -sf cqcam.1.gz $(MANDIR)/webcam.1.gz + @echo " done" + + clean: diff --git a/graphics/cqcam/patches/patch-ab b/graphics/cqcam/patches/patch-ab new file mode 100644 index 00000000000..c2611a15b15 --- /dev/null +++ b/graphics/cqcam/patches/patch-ab @@ -0,0 +1,25 @@ +--- port.C.orig Mon Oct 27 09:29:35 1997 ++++ port.C Sun Aug 23 21:11:00 1998 +@@ -30,6 +30,10 @@ + #endif + #elif defined(FREEBSD) + #include <machine/cpufunc.h> ++#elif defined(NETBSD) ++#include <sys/types.h> ++#include <machine/sysarch.h> ++#include <machine/pio.h> /* XXX x86-specific */ + #elif defined(BSDI) + #include <machine/inline.h> + #elif defined(LYNX) +@@ -60,6 +64,11 @@ + #elif defined(FREEBSD) + if ((devio = fopen("/dev/io", "r+")) == NULL) { + perror("fopen /dev/io"); ++ return; ++ } ++#elif defined(NETBSD) ++ if (i386_iopl(3) != 0) { ++ perror("i386_iopl"); + return; + } + #elif defined(LYNX) diff --git a/graphics/cqcam/patches/patch-ac b/graphics/cqcam/patches/patch-ac new file mode 100644 index 00000000000..572bd535b31 --- /dev/null +++ b/graphics/cqcam/patches/patch-ac @@ -0,0 +1,12 @@ +--- port.h.orig Sun Aug 23 21:09:15 1998 ++++ port.h Sun Aug 23 21:09:42 1998 +@@ -28,6 +28,9 @@ + #elif defined(FREEBSD) + #include <machine/cpufunc.h> + #include <stdio.h> ++#elif defined(NETBSD) ++#include <sys/types.h> ++#include <machine/pio.h> + #elif defined(BSDI) + #include <machine/inline.h> + #elif defined(LYNX) diff --git a/graphics/cqcam/pkg/COMMENT b/graphics/cqcam/pkg/COMMENT new file mode 100644 index 00000000000..e7c87b54bcb --- /dev/null +++ b/graphics/cqcam/pkg/COMMENT @@ -0,0 +1 @@ +Color QUICK CAM frame grabber diff --git a/graphics/cqcam/pkg/DESCR b/graphics/cqcam/pkg/DESCR new file mode 100644 index 00000000000..e7c87b54bcb --- /dev/null +++ b/graphics/cqcam/pkg/DESCR @@ -0,0 +1 @@ +Color QUICK CAM frame grabber diff --git a/graphics/cqcam/pkg/PLIST b/graphics/cqcam/pkg/PLIST new file mode 100644 index 00000000000..63d0d6f2e67 --- /dev/null +++ b/graphics/cqcam/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1998/08/24 04:45:51 thorpej Exp $ +bin/cqcam +bin/xcqcam +bin/webcam +man/man1/cqcam.1 |