From owner-freebsd-ports Thu May 30 22: 0:25 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E026737B404 for ; Thu, 30 May 2002 22:00:08 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4V508116006; Thu, 30 May 2002 22:00:08 -0700 (PDT) (envelope-from gnats) Date: Thu, 30 May 2002 22:00:08 -0700 (PDT) Message-Id: <200205310500.g4V508116006@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Eric Anholt Subject: Re: ports/38759: fix bochs compiling on -current Reply-To: Eric Anholt Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/38759; it has been noted by GNATS. From: Eric Anholt To: Eric Anholt 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 ]) +- ++AC_MSG_CHECKING(for socklen_t) ++AC_TRY_COMPILE([#include ++ #include ], ++ [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 ], + [struct timeval x;], To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message