mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
DOSBox Fixed Patch
This commit is contained in:
@@ -52,12 +52,11 @@ BUILD_PREREQUIRES="
|
|||||||
SOURCE_DIR="dosbox-0.74"
|
SOURCE_DIR="dosbox-0.74"
|
||||||
|
|
||||||
PATCHES="
|
PATCHES="
|
||||||
powf.patch
|
dosbox-0.74.patch
|
||||||
"
|
"
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
{
|
{
|
||||||
#libtoolize --force --copy --install
|
|
||||||
./configure --prefix=$prefix --disable-dynamic-core --bindir=$appsDir --datarootdir=$dataDir
|
./configure --prefix=$prefix --disable-dynamic-core --bindir=$appsDir --datarootdir=$dataDir
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|||||||
20
games-emulation/dosbox/patches/dosbox-0.74.patch
Normal file
20
games-emulation/dosbox/patches/dosbox-0.74.patch
Normal 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.
|
||||||
Reference in New Issue
Block a user