Merged in AdrianArroyoCalle/haikuports (pull request #40)

DOSBox 0.74
This commit is contained in:
Scott McCreary
2013-12-14 12:46:37 -08:00
5 changed files with 95 additions and 67 deletions

View File

@@ -1,20 +0,0 @@
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.

View File

@@ -0,0 +1,76 @@
SUMMARY="DOSBox is a DOS-Emulator that uses SDL library"
DESCRIPTION="DOSBox is a DOS-emulator that uses the SDL-library which
makes DOSBox very easy to port to different platforms. DOSBox has
already been ported to many different platforms, such as Windows,
BeOS, Linux, MacOS X...
DOSBox also emulates CPU:286/386 realmode/protected mode, Directory
FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility
with older games...
You can re-live the good old days with the help of DOSBox, it can
run plenty of the old classics that don't run on your new computer!
DOSBox is totally free of charge and OpenSource."
HOMEPAGE="http://www.dosbox.com"
SRC_URI="http://sourceforge.net/projects/dosbox/files/dosbox/0.74/dosbox-0.74.tar.gz/download"
CHECKSUM_MD5="b9b240fa87104421962d14eee71351e8"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2002-2013 The DosBox Team"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86 x86_64"
PROVIDES="
dosbox$secondaryArchSuffix = $portVersion
app:dosbox$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libsdl$secondaryArchSuffix
lib:libsdl_net$secondaryArchSuffix
lib:libsdl_sound$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libglu$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libsdl_net$secondaryArchSuffix
devel:libsdl_sound$secondaryArchSuffix
libsdl${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:libtoolize
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:aclocal
"
SOURCE_DIR="dosbox-0.74"
PATCHES="
powf.patch
"
BUILD()
{
./configure --prefix=$prefix --disable-dynamic-core --bindir=$appsDir --datarootdir=$dataDir
make
}
INSTALL()
{
make install
addAppDeskbarSymlink $appsDir/dosbox "DOSBox"
}

View File

@@ -1,27 +0,0 @@
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"
STATUS_HAIKU="unstable"
DEPEND="media-libs/libsdl >= 1.2 < "
BUILD()
{
cd dosbox-0.74-svn
libtoolize --force --copy --install
./autogen.sh
./configure --prefix=/boot/common --disable-dynamic-x86
make
}
INSTALL()
{
cd dosbox-0.74-svn
make install
}
# no TEST script available
COPYRIGHT="2012 The DOSBox Team"
LICENSE="GNU GPL v2"

View File

@@ -1,20 +0,0 @@
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.

View File

@@ -0,0 +1,19 @@
diff --git a/configure.in b/configure.in
index 016ea95..f222548 100644
--- a/configure.in
+++ b/configure.in
@@ -121,13 +121,7 @@ d_test.d_type = 0;
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 avalible])])
dnl Checks for libraries.