mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
system/dosbox: Added a patch for gcc>=4.6
This commit also adds a "set -e" and noted SDL_sound as an optional dependency. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
63ea1bca9e
commit
11d0e8aa16
3 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
DOSbox is a DOS emulator/virtual machine for X11 and Unix.
|
||||
It allows you to play many of the old games you grew up loving,
|
||||
as well as many apps designed to run on DOS.
|
||||
|
||||
SDL_sound is an optional dependency.
|
||||
|
|
10
system/dosbox/dosbox-0.74-gcc46.patch
Normal file
10
system/dosbox/dosbox-0.74-gcc46.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- include/dos_inc.h.old 2011-04-28 08:46:04.505011354 +0200
|
||||
+++ include/dos_inc.h 2011-04-28 08:46:27.104408178 +0200
|
||||
@@ -21,6 +21,7 @@
|
||||
#ifndef DOSBOX_DOS_INC_H
|
||||
#define DOSBOX_DOS_INC_H
|
||||
|
||||
+#include <cstddef>
|
||||
#ifndef DOSBOX_DOS_SYSTEM_H
|
||||
#include "dos_system.h"
|
||||
#endif
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
PRGNAM=dosbox
|
||||
VERSION=${VERSION:-0.74}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -57,6 +57,7 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -71,6 +72,9 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Fix building with gcc>= 4.6.x, thanks to gentoo people
|
||||
patch -p0 < $CWD/dosbox-0.74-gcc46.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -85,7 +89,6 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
make DESTDIR=$PKG
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||
|
||||
|
|
Loading…
Reference in a new issue