diff options
author | joerg <joerg> | 2006-04-20 16:05:44 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-04-20 16:05:44 +0000 |
commit | 7d9b7992eeccd39f4fa6c28247ad1b393a6003ce (patch) | |
tree | 63265dea36837b32abceb8a3df192d1b03da573a /graphics | |
parent | 861f4626b5e62559c7946f5f640e2303a36ec121 (diff) | |
download | pkgsrc-7d9b7992eeccd39f4fa6c28247ad1b393a6003ce.tar.gz |
Add DragonFly support.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/cambevao/Makefile | 4 | ||||
-rw-r--r-- | graphics/cambevao/distinfo | 4 | ||||
-rw-r--r-- | graphics/cambevao/patches/patch-aa | 22 | ||||
-rw-r--r-- | graphics/cambevao/patches/patch-ab | 16 |
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" |