aboutsummaryrefslogtreecommitdiffstats
path: root/comms/libticables/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-06-24 00:29:05 +0800
committerpav <pav@FreeBSD.org>2005-06-24 00:29:05 +0800
commit72f58eb0aa5363391031dd92a86fd758c1a334dd (patch)
tree6a01e74b2732d50c8ce00ecf1807e7b3c44727e8 /comms/libticables/files
parentdc403bf2de7b33ed24e40d2313911babf03571e2 (diff)
downloadfreebsd-ports-gnome-72f58eb0aa5363391031dd92a86fd758c1a334dd.tar.gz
freebsd-ports-gnome-72f58eb0aa5363391031dd92a86fd758c1a334dd.tar.zst
freebsd-ports-gnome-72f58eb0aa5363391031dd92a86fd758c1a334dd.zip
- Update to libticalcs 4.5.9, libtifiles 0.6.5, libticables 3.9.2 and tilp 6.79
PR: ports/82407 Submitted by: Tijl Coosemans <tijl@ulyssis.org> (maintainer)
Diffstat (limited to 'comms/libticables/files')
-rw-r--r--comms/libticables/files/patch-configure36
-rw-r--r--comms/libticables/files/patch-src-bsd-bsd_mapping.c50
-rw-r--r--comms/libticables/files/patch-src-intrface.c10
-rw-r--r--comms/libticables/files/patch-src-ioports.c38
-rw-r--r--comms/libticables/files/patch-src-linux-slv_link2.c11
-rw-r--r--comms/libticables/files/patch-src-slv_link.c18
6 files changed, 61 insertions, 102 deletions
diff --git a/comms/libticables/files/patch-configure b/comms/libticables/files/patch-configure
deleted file mode 100644
index 1091e940ad38..000000000000
--- a/comms/libticables/files/patch-configure
+++ /dev/null
@@ -1,36 +0,0 @@
---- configure.orig Wed Aug 27 12:17:39 2003
-+++ configure Tue Mar 23 16:08:32 2004
-@@ -1934,6 +1934,7 @@
- ACLOCALDIR=`aclocal --print-ac-dir`
-
- fi
-+ACLOCALDIR=""
-
-
- if test x$ACLOCALDIR != x ; then
-@@ -6257,7 +6258,8 @@
-
- # detect system type
- case "$host" in
--# alpha-*-*bsd*) ARCH="-D__FBSD__" ;;
-+ i386-*-*bsd*) ARCH="-D__BSD__ -D__I386__" ;;
-+ *-*-*bsd*) ARCH="-D__BSD__" ;;
- alpha*-*-linux-*) ARCH="-D__ALPHA__ -D__LINUX__" ;;
- alpha*-*-*-*) ARCH="-D__ALPHA__ -D__LINUX__" ;;
- arm*-*-linux-*) ARCH="-D__ARM__ -D__LINUX__" ;;
-@@ -6266,7 +6268,6 @@
- i[3456]86-*-hurd-*) ARCH="-D__LINUX__" ;;
- i[3456]86-*-mingw*) ARCH="-D__WIN32__ -D__MINGW32__ -Os -s" ;;
- i[3456]86-*-cygwin) ARCH="-D__WIN32__ -D__CYGWIN__ -mno-cygwin" ;;
-- i[3456]86-*-*bsd*) ARCH="-D__BSD__" ;;
- ia64-*-linux-*) ARCH="-D__LINUX__" ;;
- m68k-*-linux-*) ARCH="-D__M68K__ -D__LINUX__" ;;
- mips-*-linux-*) ARCH="-D__MIPS__ -D__LINUX__" ;;
-@@ -24767,6 +24768,7 @@
-
-
-
-+LDFLAGS="$LDFLAGS $INTLLIBS"
-
-
-
diff --git a/comms/libticables/files/patch-src-bsd-bsd_mapping.c b/comms/libticables/files/patch-src-bsd-bsd_mapping.c
new file mode 100644
index 000000000000..95f40b2168da
--- /dev/null
+++ b/comms/libticables/files/patch-src-bsd-bsd_mapping.c
@@ -0,0 +1,50 @@
+--- src/bsd/bsd_mapping.c.orig Mon May 30 14:01:58 2005
++++ src/bsd/bsd_mapping.c Mon May 30 14:09:38 2005
+@@ -74,9 +74,7 @@
+ break;
+
+ case LINK_AVR:
+- if(resources & IO_API) {
+- *method |= IOM_API | IOM_OK;
+- }
++ printl1(2, "AVR link support has been removed !\n");
+ break;
+
+ case LINK_SER:
+@@ -114,6 +112,7 @@
+
+ case LINK_TIE:
+ case LINK_VTI:
++ case LINK_VTL:
+ *method |= IOM_API | IOM_OK;
+ break;
+
+@@ -212,7 +211,10 @@
+ ret = bsd_map_io((TicableMethod)method, port);
+ if(ret)
+ return ret;
+-
++
++ // set fields to default values
++ nul_register_cable(lc);
++
+ // set the link cable
+ printl1(0, _("registering cable...\n"));
+ switch (type) {
+@@ -242,16 +244,6 @@
+ ser_register_cable_1(lc);
+ else if(method & IOM_IOCTL)
+ ser_register_cable_2(lc);
+- break;
+-
+- case LINK_AVR:
+- if ((port != SERIAL_PORT_1) &&
+- (port != SERIAL_PORT_2) &&
+- (port != SERIAL_PORT_3) &&
+- (port != SERIAL_PORT_4) && (port != USER_PORT))
+- return ERR_INVALID_PORT;
+-
+- avr_register_cable(lc);
+ break;
+
+ case LINK_VTL:
diff --git a/comms/libticables/files/patch-src-intrface.c b/comms/libticables/files/patch-src-intrface.c
deleted file mode 100644
index 48bef61ee817..000000000000
--- a/comms/libticables/files/patch-src-intrface.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/intrface.c.orig Sat Sep 13 18:45:17 2003
-+++ src/intrface.c Sat Sep 13 19:56:41 2003
-@@ -722,6 +722,7 @@
- /*********************/
-
- extern const char *search_for_tipar_node(int minor);
-+extern const char *search_for_tiser_node(int minor);
-
- static int convert_port_into_device(void)
- {
diff --git a/comms/libticables/files/patch-src-ioports.c b/comms/libticables/files/patch-src-ioports.c
deleted file mode 100644
index 5208e4a33c8e..000000000000
--- a/comms/libticables/files/patch-src-ioports.c
+++ /dev/null
@@ -1,38 +0,0 @@
---- src/ioports.c.orig Wed Aug 27 11:34:39 2003
-+++ src/ioports.c Wed May 12 17:56:00 2004
-@@ -41,7 +41,7 @@
- #if defined(__I386__) && defined(HAVE_ASM_IO_H) && defined(HAVE_SYS_PERM_H)
- # include <sys/perm.h>
- # include <asm/io.h>
--#elif defined(__BSD__)
-+#elif defined(__BSD__) && defined(__I386__)
- # include <machine/sysarch.h>
- # include <machine/cpufunc.h>
- #elif defined(__WIN32__)
-@@ -107,7 +107,7 @@
- }
- #endif /* 0 */ /* __MACOSX__ */
-
--#if defined(__I386__) && defined(HAVE_ASM_IO_H) && defined(HAVE_SYS_PERM_H) || defined(__ALPHA__) || defined(__BSD__)
-+#if defined(__I386__) && defined(HAVE_ASM_IO_H) && defined(HAVE_SYS_PERM_H) || defined(__ALPHA__) || (defined(__BSD__) && defined(__I386__))
- static int linux_asm_read_io(unsigned int addr)
- {
- return inb(addr);
-@@ -208,7 +208,7 @@
- {
- #if defined(__I386__) && defined(HAVE_ASM_IO_H) && defined(HAVE_SYS_PERM_H) || defined(__ALPHA__) || defined(__BSD__) || defined(__MACOSX__)
-
--#ifndef __MACOSX__
-+#if !(defined(__MACOSX__) || (defined(__BSD__) && !defined(__I386__)))
- if (method & IOM_ASM) {
- io_rd = linux_asm_read_io;
- io_wr = linux_asm_write_io;
-@@ -417,7 +417,7 @@
- int io_close(unsigned long from, unsigned long num)
- {
- #if defined(__I386__) && defined(HAVE_ASM_IO_H) && defined(HAVE_SYS_PERM_H) || defined(__ALPHA__) || defined(__BSD__) || defined(__MACOSX__)
--#ifndef __MACOSX__
-+#if !(defined(__MACOSX__) || (defined(__BSD__) && !defined(__I386__)))
- if (method & IOM_ASM)
- #ifndef __BSD__
- return (ioperm(from, num, 0) ? ERR_ROOT : 0);
diff --git a/comms/libticables/files/patch-src-linux-slv_link2.c b/comms/libticables/files/patch-src-linux-slv_link2.c
new file mode 100644
index 000000000000..0fb5f99a1b49
--- /dev/null
+++ b/comms/libticables/files/patch-src-linux-slv_link2.c
@@ -0,0 +1,11 @@
+--- src/linux/slv_link2.c.orig Sun Sep 26 13:11:20 2004
++++ src/linux/slv_link2.c Mon May 30 15:27:12 2005
+@@ -111,7 +111,7 @@
+ {}
+ };
+
+-//static int max_ps = 32; // max packet size (32 ot 64)
++static int max_ps = 32; // max packet size (32 ot 64)
+
+ static int nBytesWrite2 = 0;
+ static uint8_t *wBuf2 = NULL;
diff --git a/comms/libticables/files/patch-src-slv_link.c b/comms/libticables/files/patch-src-slv_link.c
deleted file mode 100644
index 824d7fe28ef4..000000000000
--- a/comms/libticables/files/patch-src-slv_link.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/slv_link.c.orig Wed Aug 27 11:34:38 2003
-+++ src/slv_link.c Tue Mar 23 16:09:02 2004
-@@ -1423,6 +1423,7 @@
- MAX_PACKET_SIZE, (time_out * 10));
- */
-
-+#ifndef __BSD__
- /* Reset endpoints */
- ret = usb_clear_halt(tigl_han, TIGL_BULK_OUT);
- if (ret < 0) {
-@@ -1455,6 +1456,7 @@
- }
- }
- }
-+#endif
-
- /* Reset buffers */
- nBytesRead = 0;