Import of cqcam-0.90pre11.

Submitted by Joshua Stein <jcs@rt.fm>.

A color QuickCam control program that supports the color QuickCam
and Color QuickCam 2.
This commit is contained in:
naddy 2001-05-18 11:25:26 +00:00
parent 45ac021179
commit ff6b1d4301
9 changed files with 154 additions and 0 deletions

60
graphics/cqcam/Makefile Normal file
View File

@ -0,0 +1,60 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/05/18 11:25:26 naddy Exp $
# vim:ts=8
DISTNAME= cqcam-0.90pre11
CATEGORIES= graphics
NEED_VERSION= 1.405
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
COMMENT= "a color QuickCam control program"
HOMEPAGE= http://www.cs.duke.edu/~reynolds/cqcam/
MASTER_SITES= ${HOMEPAGE} \
ftp://rt.fm/pub/cqcam/
EXTRACT_SUFX= .tgz
MAINTAINER= Joshua Stein <jcs@rt.fm>
ONLY_FOR_ARCHS= i386
USE_X11= Yes
LIB_DEPENDS= jpeg.62::graphics/jpeg
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS= --enable-jpeg --enable-asm
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_FLAGS= ${FAKE_FLAGS}
FAKE_FLAGS= CLIENTS="cli webcam"
.else
USE_X11= Yes
LIB_DEPENDS+= gtk.1::x11/gtk+
BUILD_DEPENDS= wish8.3::x11/tk/8.3
CONFIGURE_ARGS+= --with-gtk-prefix=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/tcl8.3"
MAKE_FLAGS= CPPFLAGS="-I${LOCALBASE}/include/tcl8.3 \
-I${LOCALBASE}/include/tk8.3" \
${FAKE_FLAGS}
FAKE_FLAGS= CLIENTS="cli gtkfe webcam xfe"
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cqcam
${INSTALL_DATA} ${WRKSRC}/docs/README.webcam \
${PREFIX}/share/doc/cqcam/README.webcam
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cqcam
${INSTALL_DATA} ${WRKSRC}/.cqcrc \
${PREFIX}/share/examples/cqcam/dot.cqcrc
${INSTALL_DATA} ${WRKSRC}/webcam/nph-webcam \
${PREFIX}/share/examples/cqcam/nph-webcam
.include <bsd.port.mk>

3
graphics/cqcam/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (cqcam-0.90pre11.tgz) = 93a5bde5e9118d2db0d7d36196ac5967
RMD160 (cqcam-0.90pre11.tgz) = 2d7ac79050e40d2d9596d4b22011d84d356bef6d
SHA1 (cqcam-0.90pre11.tgz) = 6464672ddc1aff0ae32b2a68515a6b81f269c03d

View File

@ -0,0 +1,21 @@
--- Makefile.in.orig Wed May 16 20:28:03 2001
+++ Makefile.in Wed May 16 20:28:35 2001
@@ -21,10 +21,6 @@
done
install: bininstall maninstall
- @echo;\
- echo "You will probably want to copy \".cqcrc\" to your home directory";\
- echo "and edit it for your system. Please read INSTALL if you are";\
- echo "interested in installing webcam support."
bininstall: all
set -e;\
@@ -35,7 +31,6 @@
done
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

View File

@ -0,0 +1,32 @@
$OpenBSD: patch-configure,v 1.1.1.1 2001/05/18 11:25:26 naddy Exp $
--- configure.orig Thu Aug 17 12:41:42 2000
+++ configure Wed May 16 18:26:00 2001
@@ -1659,7 +1659,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-ltk -ltcl -ldl -L$x_libraries -lX11 $LIBS"
+LIBS="-ltk83 -ltcl83 -L$x_libraries -lX11 $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1665 "configure"
#include "confdefs.h"
@@ -1690,7 +1690,7 @@ LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- REMOTE_OBJS='xqcctl-tk.o' ; REMOTE_LIBS='-ltk -ltcl -lXext -lX11 -ldl -lm' ; REMOTE_CFLAGS='-DREMOTE'
+ REMOTE_OBJS='xqcctl-tk.o' ; REMOTE_LIBS='-ltk83 -ltcl83 -lXext -lX11 -lm' ; REMOTE_CFLAGS='-DREMOTE'
else
echo "$ac_t""no" 1>&6
echo "configure: warning: *** xcqcam will be built without the control panel ***" 1>&2 ;
@@ -1952,8 +1952,8 @@ case "$host_os" in
OS_LIBCQCAM_OBJS=''
;;
openbsd*)
- OS_CFLAGS='-O2 -DOPENBSD'
- OS_LDFLAGS='-L/usr/local/lib'
+ OS_CFLAGS="${CFLAGS}"' -DOPENBSD -I${LOCALBASE}/include'
+ OS_LDFLAGS='-L${LOCALBASE}/lib'
OS_LIBCQCAM_OBJS=''
OS_LIBS='-li386'
;;

View File

@ -0,0 +1,11 @@
--- libcqcam/port.C.orig Sun Apr 29 20:26:13 2001
+++ libcqcam/port.C Sun Apr 29 20:27:10 2001
@@ -51,6 +51,8 @@
#include <machine/inline.h>
#elif defined(OPENBSD)
#include <machine/pio.h>
+#include <sys/types.h>
+#include <machine/sysarch.h>
#elif defined(LYNX)
#include "lynx-io.h"
#elif defined(SOLARIS)

6
graphics/cqcam/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
cqcam supports the color QuickCam and Color QuickCam 2. It does not
support black and white QuickCams, the QuickClip, the QuickCam VC, the
QuickCam Home, the QuickCam Express, the QuickCam Pro, or the QuickCam
Web.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,6 @@
You will probably want to copy ${PREFIX}/share/examples/cqcam/dot.cqcrc
to ~/.cqcrc and edit it to your liking. Please read
${PREFIX}/share/doc/cqcam/README.webcam if you are interested in installing
webcam support.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PFRAG.no-no_x11,v 1.1.1.1 2001/05/18 11:25:26 naddy Exp $
bin/gtkcam
bin/xcqcam
man/man1/xcqcam.1

11
graphics/cqcam/pkg/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/05/18 11:25:26 naddy Exp $
bin/cqcam
bin/webcam
man/man1/cqcam.1
man/man1/webcam.1
share/doc/cqcam/README.webcam
share/examples/cqcam/dot.cqcrc
share/examples/cqcam/nph-webcam
!%%no_x11%%
@dirrm share/doc/cqcam
@dirrm share/examples/cqcam