- Fix serial port detection on FreeBSD 6.0 and above

- Bump PORTREVISION
This commit is contained in:
Markus Brueffer 2006-01-20 11:55:20 +00:00
parent 91f198dc7c
commit e92df606a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153981
2 changed files with 15 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= libgphoto2
PORTVERSION= 2.1.6
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gphoto

View File

@ -0,0 +1,14 @@
--- libgphoto2_port/serial/unix.c.orig Wed Jan 18 18:06:35 2006
+++ libgphoto2_port/serial/unix.c Wed Jan 18 18:08:39 2006
@@ -108,7 +108,11 @@
/* FreeBSD */
#if defined(__FreeBSD__)
+#if __FreeBSD_version < 600000
#define GP_PORT_SERIAL_PREFIX "/dev/cuaa%x"
+#else
+#define GP_PORT_SERIAL_PREFIX "/dev/cuad%x"
+#endif
#define GP_PORT_SERIAL_RANGE_LOW 0
#define GP_PORT_SERIAL_RANGE_HIGH (0xf)
#endif