Commit ed34eff4 authored by abveritas's avatar abveritas

dosbox rebuild for changes in sdl, added directfb dep

parent c151a852
......@@ -6,33 +6,39 @@
pkgname=dosbox
pkgver=0.74
pkgrel=2
pkgrel=3
pkgdesc="An emulator with builtin DOS for running DOS Games"
arch=('i686' 'x86_64')
url="http://dosbox.sourceforge.net/"
license=('GPL')
depends=('sdl_net' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs')
depends=('sdl_net' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs' 'directfb' 'zlib')
makedepends=('mesa')
source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz"
'dosbox.png' 'dosbox.desktop')
'dosbox.png' 'dosbox.desktop' 'gcc46.patch')
md5sums=('b9b240fa87104421962d14eee71351e8'
'2aac25fc06979e375953fcc36824dc5e'
'85169ca599028bee8e29e0b3b7b34dd8')
'85169ca599028bee8e29e0b3b7b34dd8'
'3fba2e3c7c43290319b2928f40ed30e5')
build(){
cd ${srcdir}/${pkgname}-${pkgver}
sed -i 's/png_check_sig/png_sig_cmp/' configure || return 1
patch -Np1 -i "$srcdir/gcc46.patch"
sed -i 's/png_check_sig/png_sig_cmp/' configure
./configure --prefix=/usr \
--sysconfdir=/etc/dosbox || return 1
make || return 1
--sysconfdir=/etc/dosbox
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install || return 1
make DESTDIR=${pkgdir} install
# install docs, make does not install them
install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
install -Dm644 docs/README.video "$pkgdir"/usr/share/doc/$pkgname/README.video
install -Dm644 ${srcdir}/${pkgname}.png \
${pkgdir}/usr/share/pixmaps/${pkgname}.png || return 1
${pkgdir}/usr/share/pixmaps/${pkgname}.png
install -Dm644 ${srcdir}/${pkgname}.desktop \
${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
${pkgdir}/usr/share/applications/${pkgname}.desktop
}
diff -aur dosbox-0.74/include/dos_inc.h dosbox-0.74.new//include/dos_inc.h
--- dosbox-0.74/include/dos_inc.h 2010-05-10 17:43:54.000000000 +0000
+++ dosbox-0.74.new//include/dos_inc.h 2011-06-17 20:42:43.982548979 +0000
@@ -28,6 +28,8 @@
#include "mem.h"
#endif
+#include <stddef.h> //for offsetof
+
#ifdef _MSC_VER
#pragma pack (1)
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment