* Move dosbox to match Gentoo Portage

* Finish bep file
 * Add small, but required, patch.

I could not submit the patch to dosbox bugtracker with BeZilla. Can someone else have a look at submitting it for me ?
This commit is contained in:
Adrien Destugues
2012-10-25 17:36:27 +00:00
parent b0db5bf954
commit b445a088e9
2 changed files with 21 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
DESCRIPTION="an x86 emulator with DOS"
MESSAGE="This port requires gcc4."
HOMEPAGE="http://www.dosbox.com/"
SRC_URI="svn://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk/"
REVISION="1"
@@ -19,7 +20,6 @@ INSTALL {
}
# no TEST script available
# no patch available
COPYRIGHT="2012 The DOSBox Team"
LICENSE="GNU GPL v2"

View File

@@ -0,0 +1,20 @@
Index: configure.in
===================================================================
--- configure.in (revision 3798)
+++ configure.in (working copy)
@@ -121,13 +121,8 @@
dnl Check for powf
-AC_MSG_CHECKING(for powf in libm);
-LIBS_BACKUP=$LIBS;
-LIBS="$LIBS -lm";
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],[[
- powf(1.0f, 1.0f);
-]])], [AC_MSG_RESULT(yes)], [AC_DEFINE([DB_HAVE_NO_POWF],[1],[libm doesn't include powf])])
-LIBS=$LIBS_BACKUP
+AC_SEARCH_LIBS([powf], [m], [AC_MSG_RESULT(yes)], [AC_DEFINE([DB_HAVE_NO_POWF],[1],[no powf function available])])
+AC_SEARCH_LIBS([getpeername], [network])
dnl Checks for libraries.