Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2002 22:00:08 -0700 (PDT)
From:      Eric Anholt <eanholt@gladstone.uoregon.edu>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/38759: fix bochs compiling on -current
Message-ID:  <200205310500.g4V508116006@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/38759; it has been noted by GNATS.

From: Eric Anholt <eanholt@gladstone.uoregon.edu>
To: Eric Anholt <eanholt@gladstone.uoregon.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/38759: fix bochs compiling on -current
Date: 30 May 2002 22:55:32 -0600

 Forgot the makefile.  Here's a patch from cvs diff -uN
 It also includes an NE2000 compile option, which compiled but I haven't
 tested.
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/emulators/bochs/Makefile,v
 retrieving revision 1.45
 diff -u -r1.45 Makefile
 --- Makefile	14 May 2002 21:48:12 -0000	1.45
 +++ Makefile	31 May 2002 04:44:03 -0000
 @@ -29,7 +29,7 @@
  USE_XLIB=	yes
  USE_GMAKE=	yes
  
 -GNU_CONFIGURE=	yes
 +USE_AUTOCONF=	yes
  CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
  CONFIGURE_ARGS=	--enable-cdrom \
  		--disable-split-hd
 @@ -63,6 +63,10 @@
  CONFIGURE_ARGS+=	--enable-x86-debugger
  .endif
  
 +.if defined(WITH_NE2000)
 +CONFIGURE_ARGS+=	--enable-ne2000
 +.endif
 +
  .if defined(WITH_SOUND)
  CONFIGURE_ARGS+=	--enable-sb16=linux
  .endif
 @@ -107,6 +111,11 @@
  .if !defined(WITH_BOCHS_X86_DEBUGGER)
  	@${ECHO_MSG} "If you want to compile with x86 hardware debugger support."
  	@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_X86_DEBUGGER=yes\""
 +	@${ECHO_MSG}
 +.endif
 +.if !defined(WITH_NE2000)
 +	@${ECHO_MSG} "If you want to compile with networking (ne2000) support."
 +	@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_NE2000=yes\""
  	@${ECHO_MSG}
  .endif
  .if !defined(WITH_SOUND)
 Index: files/patch-configure.in
 ===================================================================
 RCS file: files/patch-configure.in
 diff -N files/patch-configure.in
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ files/patch-configure.in	31 May 2002 04:32:09 -0000
 @@ -0,0 +1,21 @@
 +--- configure.in.orig	Wed Mar 27 17:20:32 2002
 ++++ configure.in	Thu May 30 21:32:01 2002
 +@@ -101,8 +101,16 @@
 + AC_CHECK_FUNCS(usleep, AC_DEFINE(BX_HAVE_USLEEP))
 + AC_CHECK_FUNCS(nanosleep, AC_DEFINE(BX_HAVE_NANOSLEEP))
 + AC_CHECK_FUNCS(abort, AC_DEFINE(BX_HAVE_ABORT))
 +-AC_CHECK_TYPE(socklen_t, AC_DEFINE(BX_HAVE_SOCKLEN_T), , [#include <sys/socket.h>])
 +-
 ++AC_MSG_CHECKING(for socklen_t)
 ++AC_TRY_COMPILE([#include <sys/types.h>
 ++      #include <sys/socket.h>], 
 ++    [socklen_t x], 
 ++    [
 ++      AC_DEFINE(BX_HAVE_SOCKLEN_T)
 ++      AC_MSG_RESULT(yes)
 ++    ],
 ++      AC_MSG_RESULT(no)
 ++    )
 + AC_MSG_CHECKING(for struct timeval)
 + AC_TRY_COMPILE([#include <sys/time.h>],
 +     [struct timeval x;], 
 
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205310500.g4V508116006>