From 5562da1157ace6ef8d1d087627446818e075cc21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Tue, 10 Dec 2013 14:37:06 +0000 Subject: [PATCH] DOSBox Fixed Patch --- games-emulation/dosbox/dosbox-0.74.recipe | 3 +-- .../dosbox/patches/dosbox-0.74.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 games-emulation/dosbox/patches/dosbox-0.74.patch diff --git a/games-emulation/dosbox/dosbox-0.74.recipe b/games-emulation/dosbox/dosbox-0.74.recipe index df5801447..0ecba93f7 100644 --- a/games-emulation/dosbox/dosbox-0.74.recipe +++ b/games-emulation/dosbox/dosbox-0.74.recipe @@ -52,12 +52,11 @@ BUILD_PREREQUIRES=" SOURCE_DIR="dosbox-0.74" PATCHES=" - powf.patch + dosbox-0.74.patch " BUILD() { - #libtoolize --force --copy --install ./configure --prefix=$prefix --disable-dynamic-core --bindir=$appsDir --datarootdir=$dataDir make } diff --git a/games-emulation/dosbox/patches/dosbox-0.74.patch b/games-emulation/dosbox/patches/dosbox-0.74.patch new file mode 100644 index 000000000..1e81c8f9e --- /dev/null +++ b/games-emulation/dosbox/patches/dosbox-0.74.patch @@ -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 ]],[[ +- 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.