diff options
author | ponce <matteo.bernardini@gmail.com> | 2012-08-15 08:47:01 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-21 08:55:25 -0500 |
commit | 11d0e8aa163fa48596960c0afe0e2d11aa65f0ec (patch) | |
tree | c6074d1cd6eee7794d1a5067c81ebe337b58fb1c /system/dosbox/dosbox.SlackBuild | |
parent | 63ea1bca9e4cd63bf79eac0f922eba121a030938 (diff) |
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>
Diffstat (limited to 'system/dosbox/dosbox.SlackBuild')
-rw-r--r-- | system/dosbox/dosbox.SlackBuild | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/system/dosbox/dosbox.SlackBuild b/system/dosbox/dosbox.SlackBuild index f83f53c2e6aec..976a0218a5ede 100644 --- a/system/dosbox/dosbox.SlackBuild +++ b/system/dosbox/dosbox.SlackBuild @@ -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 |