summaryrefslogtreecommitdiff
path: root/graphics/cambevao
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-04-20 16:05:44 +0000
committerjoerg <joerg@pkgsrc.org>2006-04-20 16:05:44 +0000
commit9fdacc6bc745161ddc34b3bb89aaf20db4d46ea4 (patch)
tree63265dea36837b32abceb8a3df192d1b03da573a /graphics/cambevao
parent816f7dde9886704725e12e988715f29a34c4029b (diff)
downloadpkgsrc-9fdacc6bc745161ddc34b3bb89aaf20db4d46ea4.tar.gz
Add DragonFly support.
Diffstat (limited to 'graphics/cambevao')
-rw-r--r--graphics/cambevao/Makefile4
-rw-r--r--graphics/cambevao/distinfo4
-rw-r--r--graphics/cambevao/patches/patch-aa22
-rw-r--r--graphics/cambevao/patches/patch-ab16
4 files changed, 43 insertions, 3 deletions
diff --git a/graphics/cambevao/Makefile b/graphics/cambevao/Makefile
index 916c60962e8..f30240e8282 100644
--- a/graphics/cambevao/Makefile
+++ b/graphics/cambevao/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/02/05 23:09:28 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2006/04/20 16:05:44 joerg Exp $
#
DISTNAME= cambevao-2.2
@@ -13,7 +13,7 @@ COMMENT= Grabs images as jpg from bktr and ov511+ based USB webcams
MAKE_ENV+= prefix=${PREFIX:Q}
RCD_SCRIPTS= cambevao
-ONLY_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-*
+ONLY_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-* DragonFly-*-*
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cambevao
diff --git a/graphics/cambevao/distinfo b/graphics/cambevao/distinfo
index 7bc8595e602..611439cd498 100644
--- a/graphics/cambevao/distinfo
+++ b/graphics/cambevao/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 08:45:03 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/04/20 16:05:44 joerg Exp $
SHA1 (cambevao-2.2.tar.gz) = 98d67a1e8e79cdb5b3cc8b099065f90c2c204b36
RMD160 (cambevao-2.2.tar.gz) = 922fc6e98503917e503ab4e5a7271dc882be3455
Size (cambevao-2.2.tar.gz) = 158557 bytes
+SHA1 (patch-aa) = 9b37747201dca6e86484c69f50e57ca9dd91339c
+SHA1 (patch-ab) = 4c489afb31b8e713ab75776dc154d8545d4833e0
diff --git a/graphics/cambevao/patches/patch-aa b/graphics/cambevao/patches/patch-aa
new file mode 100644
index 00000000000..30986d48fd4
--- /dev/null
+++ b/graphics/cambevao/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1 2006/04/20 16:05:44 joerg Exp $
+
+--- cam_bktr.c.orig 2006-04-20 15:30:05.000000000 +0000
++++ cam_bktr.c
+@@ -50,12 +50,13 @@
+
+ #ifdef __NetBSD__
+ #include <dev/ic/bt8xx.h>
+-#endif /* NetBSD */
+-
+-#ifdef __FreeBSD__
++#elif defined(__FreeBSD__)
+ #include <machine/ioctl_meteor.h>
+ #include <machine/ioctl_bt848.h>
+-#endif /* __FreeBSD__ */
++#elif defined(__DragonFly__)
++#include <dev/video/meteor/ioctl_meteor.h>
++#include <dev/video/bktr/ioctl_bt848.h>
++#endif
+
+ /* which device */
+ #define VIDEO_DEV "/dev/bktr"
diff --git a/graphics/cambevao/patches/patch-ab b/graphics/cambevao/patches/patch-ab
new file mode 100644
index 00000000000..d5f4b4b0f3a
--- /dev/null
+++ b/graphics/cambevao/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1 2006/04/20 16:05:44 joerg Exp $
+
+--- cam_ov511.c.orig 2006-04-20 15:31:09.000000000 +0000
++++ cam_ov511.c
+@@ -45,7 +45,11 @@
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <time.h>
++#if defined(__DragonFly__)
++#include <bus/usb/usb.h>
++#else
+ #include <dev/usb/usb.h>
++#endif
+ #include "main.h"
+ #include "cam_ov511.h"
+ #include "ov511reg.h"