Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
cqcam is a free Color QuickCam (PC/Parallel) control program for
various PC Unixes, written by Patrick Reynolds. It is independent
of Scott Laird's qcam package and those derived from it and has
several features that they do not. cqcam has been tested on Linux,
QNX, FreeBSD, BSDI, and LynxOS, and could probably be ported easily
to (almost) any other PC Unix out there.
cqcam supports the Color Quickcam and Color Quickcam 2. It does not
support b&w Quickcams. It will support parallel VC Quickcams when
Connectix gets around to posting low-level programming specifications.
USB VC Quickcams may be supported in the more distant future.
+41
View File
@@ -0,0 +1,41 @@
# $NetBSD: Makefile,v 1.41 2013/06/06 12:54:28 wiz Exp $
#
DISTNAME= cqcam-0.91
PKGREVISION= 7
CATEGORIES= graphics x11
MASTER_SITES= http://piki.org/patrick/cqcam/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://piki.org/patrick/cqcam/
COMMENT= Free Color QuickCam control program
.include "../../mk/bsd.prefs.mk"
#NOT_FOR_UNPRIVILEGED= yes # seems to need setuid for everything
.if ${OPSYS} == "SunOS"
# Tries to install a device driver with unrestricted access to all
# hardware ports, which is also specific to i86pc platforms.
NOT_FOR_UNPRIVILEGED= yes
.endif
.if ${MACHINE_ARCH} != "i386"
CONFIGURE_ARGS+= --disable-asm
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-xview
USE_LANGUAGES= c c++
CONFIGURE_ENV+= TCLCONFIG_SH=${TCLCONFIG_SH:Q}
CONFIGURE_ARGS+= --x-includes=${X11BASE:Q}/include
CONFIGURE_ARGS+= --x-libraries=${X11BASE:Q}/lib
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../mk/jpeg.buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+8
View File
@@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.3 2007/01/08 04:51:44 rillig Exp $
bin/cqcam
bin/movify
bin/webcam
bin/xcqcam
man/man1/cqcam.1
man/man1/webcam.1
man/man1/xcqcam.1
+16
View File
@@ -0,0 +1,16 @@
$NetBSD: distinfo,v 1.12 2009/07/20 03:47:20 hasso Exp $
SHA1 (cqcam-0.91.tar.gz) = 28c78c9a24ae01b5a18d81e334f8c0dcab2ebe78
RMD160 (cqcam-0.91.tar.gz) = 4ef62b01985f834063a0e0941391b8d06428af7e
Size (cqcam-0.91.tar.gz) = 121252 bytes
SHA1 (patch-aa) = 9602a446771eb577e82ef151532b6e189b46a907
SHA1 (patch-ab) = ad64e221ee08994feb430e833c368226d26b9b56
SHA1 (patch-ac) = d6f726daf197e7548e1aaf16d03a09508c9ae9a3
SHA1 (patch-ad) = fd16f489c4f39457a1b9759af505286da4a1ea42
SHA1 (patch-ae) = 233718279f45c8c65d5f629648ff9e8c95058df3
SHA1 (patch-af) = b60947db4ddd7760d67f2be2e10473c2e15eefb2
SHA1 (patch-ai) = a7983828e7e6836107a4e7567f79e47a13abb48d
SHA1 (patch-aj) = de421de3e6efa6fc8c8396f57a5592159c4ac102
SHA1 (patch-ak) = 2eac9c0a00bc4ef06bf2eb9442784518eec4d1aa
SHA1 (patch-al) = 1792f71c88564577ec89c35543d98cd149c65c94
SHA1 (patch-am) = 2afb2a35b28df87536b6f48f1145e1eb624d276b
+16
View File
@@ -0,0 +1,16 @@
$NetBSD: patch-aa,v 1.10 2008/10/01 22:12:40 joerg Exp $
--- cli/Makefile.in.orig 2008-10-01 23:37:58.000000000 +0200
+++ cli/Makefile.in
@@ -16,8 +16,9 @@ clean:
rm -f *.o core $(PROGRAMS)
bininstall:
- mkdir -p $(bindir)
- $(INSTALL) -o root -g @bingroup@ -m 4711 $(PROGRAMS) movify $(bindir)
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} $(PROGRAMS) ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_SCRIPT} movify ${DESTDIR}$(bindir)
cqcam: cqcam.o $(LIBCQCAM)
$(CXX) -o $@ cqcam.o $(LDFLAGS) $(LIBS)
+72
View File
@@ -0,0 +1,72 @@
$NetBSD: patch-ab,v 1.6 2008/10/01 22:12:01 joerg Exp $
--- libcqcam/port.C.orig 2000-08-23 20:03:19.000000000 +0200
+++ libcqcam/port.C
@@ -30,6 +30,7 @@
#include "config.h"
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#ifdef LOCKING
@@ -47,6 +48,10 @@
#include <conio.h>
#elif defined(FREEBSD)
#include <machine/cpufunc.h>
+#elif defined(NETBSD)
+#include <sys/types.h>
+#include <machine/sysarch.h>
+#include <machine/pio.h> /* XXX */
#elif defined(BSDI)
#include <machine/inline.h>
#elif defined(OPENBSD)
@@ -90,6 +95,28 @@ port_t::port_t(int iport) {
perror("fopen /dev/io");
return;
}
+#elif defined(NETBSD)
+# if defined(__alpha__)
+ if (alpha_pci_io_enable(1) != 0) {
+ perror("alpha_pci_io_enable");
+ return;
+ }
+# elif defined(__i386__)
+ if (i386_iopl(3) != 0) {
+ perror("i386_iopl");
+ return;
+ }
+# elif defined(__x86_64__)
+ if (x86_64_iopl(3) != 0) {
+ perror("x86_64_iopl");
+ return;
+ }
+# else
+# error Not supported on this CPU.
+# endif
+#elif defined(LYNX)
+ if (io_access() < 0) {
+ perror("io_access");
#elif defined(OPENBSD)
if (i386_iopl(1) == -1) {
perror("i386_iopl");
@@ -196,3 +223,19 @@ void port_t::unlock(int portnum) {
#endif /* DEBUG */
}
#endif /* LOCKING */
+
+#if defined(NETBSD)
+void
+outb(unsigned port, uint8_t data)
+{
+ __asm volatile("outb %0,%w1" : : "a" (data), "d" (port));
+}
+
+uint8_t
+inb(unsigned port)
+{
+ uint8_t data;
+ __asm volatile("inb %w1,%0" : "=a" (data) : "d" (port));
+ return data;
+}
+#endif
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-ac,v 1.5 2008/10/01 22:12:01 joerg Exp $
--- libcqcam/port.h.orig 2000-08-23 20:03:19.000000000 +0200
+++ libcqcam/port.h 2007-01-08 05:25:39.000000000 +0100
@@ -43,6 +43,12 @@
#elif defined(FREEBSD)
#include <machine/cpufunc.h>
#include <stdio.h>
+#elif defined(NETBSD)
+#include <sys/types.h>
+
+void outb(unsigned port, uint8_t data);
+uint8_t inb(unsigned port);
+
#elif defined(BSDI)
#include <machine/inline.h>
#elif defined(OPENBSD)
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ad,v 1.3 2008/10/01 22:12:40 joerg Exp $
--- webcam/Makefile.in.orig 2008-10-01 23:40:32.000000000 +0200
+++ webcam/Makefile.in
@@ -19,8 +19,8 @@ webcam: webcam.o $(LIBCQCAM)
$(CXX) $(LDFLAGS) -o $@ webcam.o $(LDLIBS) $(LIBS)
bininstall:
- mkdir -p $(bindir)
- $(INSTALL) -o root -g @bingroup@ -m 4711 $(PROGRAMS) $(bindir)
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} $(PROGRAMS) ${DESTDIR}$(bindir)
$(LIBCQCAM):
cd ../libcqcam ; $(MAKE) ; cd ../gtkfe
+19
View File
@@ -0,0 +1,19 @@
$NetBSD: patch-ae,v 1.3 2008/10/01 22:12:40 joerg Exp $
--- Makefile.in.orig 2000-08-23 20:21:16.000000000 +0200
+++ Makefile.in
@@ -36,10 +36,10 @@ bininstall: all
maninstall: docs/cqcam.1
@echo -n Installing man pages...
- @$(MANINSTALL) -o root -g @bingroup@ -m 644 docs/cqcam.1 $(mandir)/man1
- @mkdir -p $(mandir)/man1
- @echo ".so man1/cqcam.1" > $(mandir)/man1/xcqcam.1
- @echo ".so man1/cqcam.1" > $(mandir)/man1/webcam.1
+ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}$(mandir)/man1
+ @${BSD_INSTALL_MAN} docs/cqcam.1 ${DESTDIR}$(mandir)/man1
+ @ln -s cqcam.1 ${DESTDIR}$(mandir)/man1/xcqcam.1
+ @ln -s cqcam.1 ${DESTDIR}$(mandir)/man1/webcam.1
@echo " done"
clean:
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-af,v 1.5 2008/10/01 22:12:40 joerg Exp $
--- xfe/Makefile.in.orig 2000-08-17 12:41:04.000000000 +0200
+++ xfe/Makefile.in
@@ -20,8 +20,8 @@ xcqcam: $(OBJS) $(LIBCQCAM)
$(CXX) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
bininstall:
- mkdir -p $(bindir)
- $(INSTALL) -o root -g @bingroup@ -m 4711 $(PROGRAMS) $(bindir)
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} $(PROGRAMS) ${DESTDIR}$(bindir)
$(LIBCQCAM):
cd ../libcqcam ; $(MAKE) ; cd ../gtkfe
+31
View File
@@ -0,0 +1,31 @@
$NetBSD: patch-ai,v 1.2 2008/10/01 22:12:01 joerg Exp $
--- configure.in.orig 2000-08-17 12:31:03.000000000 +0200
+++ configure.in 2007-01-08 05:17:49.000000000 +0100
@@ -145,6 +145,18 @@ case "$host_os" in
OS_LDFLAGS='-L/usr/local/lib'
OS_LIBCQCAM_OBJS=''
;;
+ netbsd*)
+ OS_CFLAGS="-DNETBSD"
+ OS_LIBCQCAM_OBJS=""
+ case "$host_cpu" in
+ i386)
+ OS_LDFLAGS="-li386"
+ ;;
+ x86_64)
+ OS_LDFLAGS="-lx86_64"
+ ;;
+ esac
+ ;;
openbsd*)
OS_CFLAGS='-O2 -DOPENBSD'
OS_LDFLAGS='-L/usr/local/lib'
@@ -175,6 +187,7 @@ esac
if test "$no_asm" = "yes"; then
OS_CFLAGS=$OS_CFLAGS' -DNO_ASM'
fi
+OS_LDFLAGS="$OS_LDFLAGS $LDFLAGS"
AC_SUBST(JPEG_LIBS)
AC_SUBST(JPEG_CFLAGS)
+55
View File
@@ -0,0 +1,55 @@
$NetBSD: patch-aj,v 1.4 2009/07/20 03:47:20 hasso Exp $
Tags: not-for-upstream
We don't want xview at all. An additional problem is that on Solaris 10,
there is -lxview, but <xview/xview.h> is missing.
--- configure.orig 2001-07-11 22:58:54 +0200
+++ configure 2009-07-19 21:48:11 +0300
@@ -1634,7 +1634,7 @@ int main() {
xv_main_loop()
; return 0; }
EOF
-if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if false && { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -1946,11 +1946,28 @@ case "$host_os" in
OS_LDFLAGS='-L/usr/local/lib'
OS_LIBCQCAM_OBJS=''
;;
+ dragonfly*)
+ OS_CFLAGS='-O2 -DFREEBSD'
+ OS_LDFLAGS=''
+ OS_LIBCQCAM_OBJS=''
+ ;;
bsdi*)
OS_CFLAGS='-O2 -I/usr/local/include -DBSDI'
OS_LDFLAGS='-L/usr/local/lib'
OS_LIBCQCAM_OBJS=''
;;
+ netbsd*)
+ OS_CFLAGS="-DNETBSD"
+ OS_LIBCQCAM_OBJS=""
+ case "$host_cpu" in
+ i386)
+ OS_LDFLAGS="-li386"
+ ;;
+ x86_64)
+ OS_LDFLAGS="-lx86_64"
+ ;;
+ esac
+ ;;
openbsd*)
OS_CFLAGS='-O2 -DOPENBSD'
OS_LDFLAGS='-L/usr/local/lib'
@@ -1981,6 +1998,7 @@ esac
if test "$no_asm" = "yes"; then
OS_CFLAGS=$OS_CFLAGS' -DNO_ASM'
fi
+OS_LDFLAGS="$OS_LDFLAGS $LDFLAGS"
+9
View File
@@ -0,0 +1,9 @@
$NetBSD: patch-ak,v 1.1 2007/01/17 02:25:45 rillig Exp $
--- libcqcam/solaris-io.C.orig 2000-08-17 12:31:03.000000000 +0200
+++ libcqcam/solaris-io.C 2007-01-17 02:49:50.557066984 +0100
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include <unistd.h>
#include <errno.h>
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-al,v 1.1 2007/01/17 02:25:45 rillig Exp $
--- libcqcam/solaris-ioaccess.C.orig 2000-08-17 12:31:03.000000000 +0200
+++ libcqcam/solaris-ioaccess.C 2007-01-17 03:08:14.274891300 +0100
@@ -4,8 +4,10 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+#if defined(__i386) /* XXX: Are these headers needed at all? */
#include <sys/sysi86.h>
#include <sys/v86.h>
+#endif
#include <sys/psw.h>
#include "solaris-io.h"
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-am,v 1.1 2007/01/17 02:25:45 rillig Exp $
--- xfe/xqcctl-tk.C.orig 2001-07-11 20:40:20.000000000 +0200
+++ xfe/xqcctl-tk.C 2007-01-17 03:15:04.671887928 +0100
@@ -164,7 +164,7 @@ void xqc_quit(void) {
}
int SetCamValCmd(ClientData clientdata, Tcl_Interp *interp,
- int argc, char *argv[])
+ int argc, const char *argv[])
{
char type = '\0';
long value = atoi(argv[2]);
@@ -179,7 +179,7 @@ int SetCamValCmd(ClientData clientdata,
}
int CamButtonCmd(ClientData clientdata, Tcl_Interp *interp,
- int argc, char *argv[])
+ int argc, const char *argv[])
{
char type = '\0';
long value = 0;