ports/130779: [PATCH] emulators/dosbox enable directserial passthrough

Alexey Shuvaev shuvaev at physik.uni-wuerzburg.de
Tue Jan 20 14:00:04 UTC 2009


>Number:         130779
>Category:       ports
>Synopsis:       [PATCH] emulators/dosbox enable directserial passthrough
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 20 14:00:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Shuvaev
>Release:        8.0-CURRENT
>Organization:
University of Wuerzburg
>Environment:
FreeBSD wep4035 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Wed Jan 14 22:02:23 CET 2009     root at wep4035:/usr/obj/usr/src/sys/NOUSB  amd64
>Description:
Enable POSIX directserial passthrough.

***    Tested (compiling and functioning)    ***
*** only on 8.0-CURRENT systems (i386 amd64) ***

It is better to commit this fix upstream but one should probably check if
other *BSD flavours are working too.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN dosbox.orig/Makefile dosbox/Makefile
--- dosbox.orig/Makefile	2008-08-31 15:28:02.000000000 +0200
+++ dosbox/Makefile	2009-01-20 00:23:33.000000000 +0100
@@ -7,7 +7,7 @@
 
 PORTNAME=	dosbox
 PORTVERSION=	0.72
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	emulators
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -17,7 +17,7 @@
 
 LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
 
-GNU_CONFIGURE=	yes
+USE_AUTOTOOLS=	autoconf:262
 USE_SDL=	sdl net
 
 MAN1=		dosbox.1
diff -ruN dosbox.orig/files/patch-directserial dosbox/files/patch-directserial
--- dosbox.orig/files/patch-directserial	1970-01-01 01:00:00.000000000 +0100
+++ dosbox/files/patch-directserial	2009-01-19 23:52:14.000000000 +0100
@@ -0,0 +1,34 @@
+--- configure.in.orig	2007-08-23 12:24:49.000000000 +0200
++++ configure.in	2009-01-19 23:45:18.000000000 +0100
+@@ -417,7 +417,8 @@
+        dnl directserial detection should be rewritten to test for the needed
+        dnl functions and headers. I currently do not know 
+        dnl which ones are needed for BSD
+-       dnl       AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).])
++       AC_DEFINE(BSD, 1, [Compiling on BSD])
++       AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).])
+        ;;
+     *-*-os2-emx*)
+        AC_DEFINE(OS2, 1, [Compiling on OS/2 EMX])
+--- src/hardware/serialport/directserial_posix.h.orig	2007-08-26 19:19:46.000000000 +0200
++++ src/hardware/serialport/directserial_posix.h	2009-01-19 23:50:34.000000000 +0100
+@@ -25,7 +25,7 @@
+ #include "dosbox.h"
+ 
+ #if C_DIRECTSERIAL
+-#if defined (LINUX) || defined (MACOSX)
++#if defined (LINUX) || defined (MACOSX) || defined (BSD)
+ 
+ 
+ 
+--- src/hardware/serialport/directserial_posix.cpp.orig	2007-08-26 19:19:46.000000000 +0200
++++ src/hardware/serialport/directserial_posix.cpp	2009-01-19 23:50:52.000000000 +0100
+@@ -23,7 +23,7 @@
+ #if C_DIRECTSERIAL
+ 
+ // Posix version
+-#if defined (LINUX) || defined (MACOSX)
++#if defined (LINUX) || defined (MACOSX) || defined (BSD)
+ 
+ #include "serialport.h"
+ #include "directserial_posix.h"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list