summaryrefslogtreecommitdiffstats
path: root/devel/pwlib152/files
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-03-05 02:37:57 +0000
committermarcus <marcus@FreeBSD.org>2004-03-05 02:37:57 +0000
commitc073a76cd01dcc596fe3868f25259cb51fb741b6 (patch)
tree14ba6cb8aa18e5f9720011e099e5ed7ca44269cd /devel/pwlib152/files
parentdb4d895499f18d61dcf083f9f7321ad8ae879cd5 (diff)
downloadFreeBSD-ports-c073a76cd01dcc596fe3868f25259cb51fb741b6.zip
FreeBSD-ports-c073a76cd01dcc596fe3868f25259cb51fb741b6.tar.gz
Allow pwlib to work on ARCHS != i386.
Tested on alpha, i386, and ia64. Submitted by: marcel Approved by: maintainer (implicit)
Diffstat (limited to 'devel/pwlib152/files')
-rw-r--r--devel/pwlib152/files/patch-configurein45
-rw-r--r--devel/pwlib152/files/patch-makefile2
-rw-r--r--devel/pwlib152/files/patch-videoio62
3 files changed, 53 insertions, 56 deletions
diff --git a/devel/pwlib152/files/patch-configurein b/devel/pwlib152/files/patch-configurein
index a53c4f7..80c8ec8 100644
--- a/devel/pwlib152/files/patch-configurein
+++ b/devel/pwlib152/files/patch-configurein
@@ -1,19 +1,26 @@
-*** configure.in.orig Sun Aug 31 09:31:23 2003
---- configure.in Sun Aug 31 09:31:50 2003
-*************** case "$target_os" in
-*** 39,45 ****
- STDCCFLAGS="-DP_LINUX=$OSRELEASE" ;;
-
- freebsd* ) OSTYPE=FreeBSD ;
-! OSRELEASE=`sysctl -n kern.osreldate` ;
- STDCCFLAGS="-DP_FREEBSD=$OSRELEASE" ;;
-
- openbsd* ) OSTYPE=OpenBSD ;
---- 39,45 ----
- STDCCFLAGS="-DP_LINUX=$OSRELEASE" ;;
-
- freebsd* ) OSTYPE=FreeBSD ;
-! ## use enviroment variable OSRELEASE=`sysctl -n kern.osreldate` ;
- STDCCFLAGS="-DP_FREEBSD=$OSRELEASE" ;;
-
- openbsd* ) OSTYPE=OpenBSD ;
+--- configure.in.orig Thu May 22 05:19:16 2003
++++ configure.in Sun Feb 15 23:57:20 2004
+@@ -39,7 +39,7 @@
+ STDCCFLAGS="-DP_LINUX=$OSRELEASE" ;;
+
+ freebsd* ) OSTYPE=FreeBSD ;
+- OSRELEASE=`sysctl -n kern.osreldate` ;
++## use enviroment variable OSRELEASE=`sysctl -n kern.osreldate` ;
+ STDCCFLAGS="-DP_FREEBSD=$OSRELEASE" ;;
+
+ openbsd* ) OSTYPE=OpenBSD ;
+@@ -452,12 +452,13 @@
+ dnl ########################################################################
+ dnl check for video capture support.
+ dnl videodev.h on linux
+-dnl machine/ioctl_meteor on FreeBSD
++dnl dev/bktr/ioctl_meteor or machine/ioctl_meteor on FreeBSD
+ dnl i386/ioctl_meteor on OpenBSD
+ dnl dev/ic/bt8xx on NetBSD
+
+ HAS_VIDEO_CAPTURE=no
+ AC_CHECK_HEADER(linux/videodev.h, HAS_VIDEO_CAPTURE=yes)
++AC_CHECK_HEADER(dev/bktr/ioctl_meteor.h, HAS_VIDEO_CAPTURE=yes)
+ AC_CHECK_HEADER(machine/ioctl_meteor.h, HAS_VIDEO_CAPTURE=yes)
+ AC_CHECK_HEADER(i386/ioctl_meteor.h, HAS_VIDEO_CAPTURE=yes)
+ AC_CHECK_HEADER(dev/ic/bt8xx.h, HAS_VIDEO_CAPTURE=yes)
diff --git a/devel/pwlib152/files/patch-makefile b/devel/pwlib152/files/patch-makefile
index 8ca3ca5..1f7ea0d 100644
--- a/devel/pwlib152/files/patch-makefile
+++ b/devel/pwlib152/files/patch-makefile
@@ -6,7 +6,7 @@
endif
ifeq ($(OSTYPE),FreeBSD)
-+ ifneq (,$(wildcard $(SYSINCDIR)/machine/ioctl_meteor.h))
++ ifneq (,$(wildcard $(SYSINCDIR)/dev/bktr/ioctl_meteor.h $(SYSINCDIR)/machine/ioctl_meteor.h))
VIDEO_CAPTURE_SOURCE = video4bsd.cxx
+ endif
endif
diff --git a/devel/pwlib152/files/patch-videoio b/devel/pwlib152/files/patch-videoio
index 74d8a5c..7e86b99 100644
--- a/devel/pwlib152/files/patch-videoio
+++ b/devel/pwlib152/files/patch-videoio
@@ -1,36 +1,26 @@
-*** include/ptlib/unix/ptlib/videoio.h.orig Mon Jan 6 18:41:08 2003
---- include/ptlib/unix/ptlib/videoio.h Tue Dec 2 09:42:10 2003
-***************
-*** 106,112 ****
- #include <linux/videodev.h> /* change this to "videodev2.h" for v4l2 */
- #endif
-
-! #if defined(P_FREEBSD)
- #include <machine/ioctl_meteor.h>
- #endif
-
---- 106,112 ----
- #include <linux/videodev.h> /* change this to "videodev2.h" for v4l2 */
- #endif
-
-! #if defined(P_FREEBSD) && !defined(NO_VIDEO_CAPTURE)
- #include <machine/ioctl_meteor.h>
- #endif
-
-***************
-*** 186,192 ****
- struct video_mmap frameBuffer[2];
- #endif
-
-! #if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)
- struct video_capability
- {
- int channels; /* Num channels */
---- 186,192 ----
- struct video_mmap frameBuffer[2];
- #endif
-
-! #if (defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)) && !defined(NO_VIDEO_CAPTURE)
- struct video_capability
- {
- int channels; /* Num channels */
+--- include/ptlib/unix/ptlib/videoio.h.orig Mon Jan 6 10:41:08 2003
++++ include/ptlib/unix/ptlib/videoio.h Sun Feb 15 23:42:39 2004
+@@ -106,9 +106,13 @@
+ #include <linux/videodev.h> /* change this to "videodev2.h" for v4l2 */
+ #endif
+
+-#if defined(P_FREEBSD)
++#if defined(P_FREEBSD) && !defined(NO_VIDEO_CAPTURE)
++#if P_FREEBSD >= 502101
++#include <dev/bktr/ioctl_meteor.h>
++#else
+ #include <machine/ioctl_meteor.h>
+ #endif
++#endif
+
+ #if defined(P_OPENBSD) || defined(P_NETBSD)
+ #if P_OPENBSD >= 200105
+@@ -186,7 +190,7 @@
+ struct video_mmap frameBuffer[2];
+ #endif
+
+-#if defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)
++#if (defined(P_FREEBSD) || defined(P_OPENBSD) || defined(P_NETBSD)) && !defined(NO_VIDEO_CAPTURE)
+ struct video_capability
+ {
+ int channels; /* Num channels */
OpenPOWER on IntegriCloud