summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-ag
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2004-12-14 01:02:19 +0000
committerdbj <dbj@pkgsrc.org>2004-12-14 01:02:19 +0000
commit545012d8c13e2828082ef176210b0cccdf635556 (patch)
tree6420159f28e56b4a2a76ae8d6c6476bbeb425407 /emulators/qemu/patches/patch-ag
parent36ff0ebf26f914e9266fed8f7439a77e82b9ffcc (diff)
downloadpkgsrc-545012d8c13e2828082ef176210b0cccdf635556.tar.gz
fixes to compile on darwin.
add config.h include to target-ppc builds so _BSD is properly defined bump PKGREVISION
Diffstat (limited to 'emulators/qemu/patches/patch-ag')
-rw-r--r--emulators/qemu/patches/patch-ag21
1 files changed, 15 insertions, 6 deletions
diff --git a/emulators/qemu/patches/patch-ag b/emulators/qemu/patches/patch-ag
index 0162a544d5b..6a0fd5ba2ad 100644
--- a/emulators/qemu/patches/patch-ag
+++ b/emulators/qemu/patches/patch-ag
@@ -1,8 +1,8 @@
-$NetBSD: patch-ag,v 1.2 2004/11/15 11:35:30 xtraeme Exp $
+$NetBSD: patch-ag,v 1.3 2004/12/14 01:02:19 dbj Exp $
---- configure.orig 2004-11-15 11:51:55.000000000 +0100
-+++ configure 2004-11-15 11:53:18.000000000 +0100
-@@ -259,7 +259,7 @@
+--- configure.orig Sun Nov 14 15:51:33 2004
++++ configure
+@@ -259,7 +259,7 @@ aa="no"
`$sdl_config --static-libs | grep \\\-laa > /dev/null` && aa="yes"
sdl_static_libs=`$sdl_config --static-libs`
if [ "$aa" = "yes" ] ; then
@@ -11,7 +11,7 @@ $NetBSD: patch-ag,v 1.2 2004/11/15 11:35:30 xtraeme Exp $
fi
if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC $sdl_static_libs 2> /dev/null; then
-@@ -314,7 +314,7 @@
+@@ -314,7 +314,7 @@ else
if test -z "$prefix" ; then
prefix="/usr/local"
fi
@@ -20,7 +20,16 @@ $NetBSD: patch-ag,v 1.2 2004/11/15 11:35:30 xtraeme Exp $
datadir="$prefix/share/qemu"
docdir="$prefix/share/doc/qemu"
bindir="$prefix/bin"
-@@ -566,7 +566,7 @@
+@@ -423,6 +423,8 @@ if test "$mingw32" = "yes" ; then
+ echo "#define CONFIG_WIN32 1" >> $config_h
+ elif test -f "/usr/include/byteswap.h" ; then
+ echo "#define HAVE_BYTESWAP_H 1" >> $config_h
++elif test -f "/usr/include/machine/bswap.h" ; then
++ echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_h
+ fi
+ if test "$darwin" = "yes" ; then
+ echo "CONFIG_DARWIN=yes" >> $config_mak
+@@ -566,7 +568,7 @@ if test "$target_user_only" = "no"; then
fi
echo -n "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak
if [ "${aa}" = "yes" ] ; then