Commit 6fd217d1 authored by abveritas's avatar abveritas
Browse files

sdl packages update/rebuild

parent cd6c306c
# $Id: PKGBUILD 56280 2009-10-21 01:30:23Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdl
pkgver=1.2.14
pkgrel=1
pkgrel=2
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard"
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
......@@ -12,13 +14,26 @@ license=('LGPL')
depends=('glibc' 'libxext' 'libxrender' 'libx11')
makedepends=('alsa-lib' 'esound' 'mesa')
options=('!libtool')
source=(http://www.libsdl.org/release/SDL-${pkgver}.tar.gz)
md5sums=('e52086d1b508fa0b76c52ee30b55bec4')
source=(http://www.libsdl.org/release/SDL-${pkgver}.tar.gz
sdl-1.2.14-joystick-crash.diff
sdl-1.2.14-fix-mouse-clicking.patch
sdl-1.2.14-fix-disappearing-cursor.patch)
md5sums=('e52086d1b508fa0b76c52ee30b55bec4'
'9d8890b3817736a5d365f7497f096634'
'd79137e6bdadf21ff2f716590e9709ac'
'a6cf3e71b653aa97d0d8ae6c0a789807')
build() {
cd ${srcdir}/SDL-${pkgver}
patch -Np1 -i $srcdir/sdl-1.2.14-joystick-crash.diff
patch -Np1 -i $srcdir/sdl-1.2.14-fix-mouse-clicking.patch
patch -Np1 -i $srcdir/sdl-1.2.14-fix-disappearing-cursor.patch
./configure --prefix=/usr --disable-nasm --enable-alsa --enable-esd \
--with-x --disable-rpath
make || return 1
make
}
package() {
cd ${srcdir}/SDL-${pkgver}
make DESTDIR=${pkgdir} install
}
Index: SDL-1.2.14/src/video/x11/SDL_x11events.c
===================================================================
--- SDL-1.2.14.orig/src/video/x11/SDL_x11events.c 2010-04-30 09:16:35.000000000 -0400
+++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-30 09:16:35.000000000 -0400
@@ -444,8 +444,10 @@
if ( xevent.xcrossing.mode == NotifyUngrab )
printf("Mode: NotifyUngrab\n");
#endif
- if ( xevent.xcrossing.detail != NotifyInferior ) {
- if ( this->input_grab == SDL_GRAB_OFF ) {
+ if ( (xevent.xcrossing.mode != NotifyGrab) &&
+ (xevent.xcrossing.mode != NotifyUngrab) &&
+ (xevent.xcrossing.detail != NotifyInferior) ) {
+ if ( this->input_grab == SDL_GRAB_OFF ) {
posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
} else {
posted = SDL_PrivateMouseMotion(0, 0,
--- SDL-1.2.14/src/video/x11/SDL_x11events.c.orig 2010-04-08 11:57:05.003169834 -0700
+++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-08 12:33:51.690926340 -0700
@@ -423,12 +423,15 @@
if ( xevent.xcrossing.mode == NotifyUngrab )
printf("Mode: NotifyUngrab\n");
#endif
- if ( this->input_grab == SDL_GRAB_OFF ) {
- posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
+ if ( (xevent.xcrossing.mode != NotifyGrab) &&
+ (xevent.xcrossing.mode != NotifyUngrab) ) {
+ if ( this->input_grab == SDL_GRAB_OFF ) {
+ posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
+ }
+ posted = SDL_PrivateMouseMotion(0, 0,
+ xevent.xcrossing.x,
+ xevent.xcrossing.y);
}
- posted = SDL_PrivateMouseMotion(0, 0,
- xevent.xcrossing.x,
- xevent.xcrossing.y);
}
break;
Description: Fix crash with joystick detection.
Index: libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c
===================================================================
--- libsdl1.2-1.2.14.orig/src/joystick/linux/SDL_sysjoystick.c 2010-01-12 12:37:36.000000000 -0500
+++ libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c 2010-01-12 12:38:27.000000000 -0500
@@ -700,7 +700,7 @@
continue;
}
if ( test_bit(i, absbit) ) {
- int values[5];
+ int values[6];
if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
continue;
# $Id: PKGBUILD 58779 2009-11-15 05:26:33Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdl_gfx
pkgver=2.0.20
pkgver=2.0.22
pkgrel=1
pkgdesc="SDL Graphic Primitives"
arch=('i686' 'x86_64')
......@@ -12,7 +14,7 @@ options=(!libtool)
url="http://www.ferzkopp.net/joomla/content/view/19/14/"
source=(http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-${pkgver}.tar.gz)
depends=('sdl')
md5sums=('8a787e538a8e4d80d4927535be5af083')
md5sums=('330f291f1f09a1bdf397c9b40d92ca41')
build() {
cd ${srcdir}/SDL_gfx-${pkgver}
......@@ -23,6 +25,10 @@ build() {
./configure --prefix=/usr
fi
make || return 1
make
}
package() {
cd ${srcdir}/SDL_gfx-${pkgver}
make DESTDIR=${pkgdir} install
}
# $Id: PKGBUILD 64922 2010-01-23 10:17:20Z eric $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdl_image
pkgver=1.2.10
pkgrel=2
pkgrel=3
pkgdesc="A simple library to load images of various formats as SDL surfaces"
arch=('i686' 'x86_64')
license=('LGPL')
......
# $Id: PKGBUILD 51822 2009-09-12 07:01:31Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdl_net
pkgver=1.2.7
pkgrel=3
pkgrel=4
pkgdesc="A small sample cross-platform networking library"
arch=('i686' 'x86_64')
url="http://www.libsdl.org/projects/SDL_net/"
......
# $Id: PKGBUILD 47857 2009-07-28 10:01:07Z allan $
# Maintainer: Allan McRae <allan@archlinux.com>
# Contributor: gyo <nucleogeek@gmail.com>
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdl_pango
pkgver=0.1.2
pkgrel=2
pkgrel=3
pkgdesc="Pango SDL binding"
arch=('i686' 'x86_64')
url="http://sdlpango.sourceforge.net/"
license=('LGPL')
depends=('pango' 'sdl')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/sdlpango/SDL_Pango-$pkgver.tar.gz http://zarb.org/~gc/t/SDL_Pango-$pkgver-API-adds.patch)
md5sums=('85bbf9bb7b1cee0538154dadd045418c' '5decf3d7eb724e27548af3142131a2f6')
source=(http://downloads.sourceforge.net/sourceforge/sdlpango/SDL_Pango-$pkgver.tar.gz
SDL_Pango-$pkgver-API-adds.patch)
md5sums=('85bbf9bb7b1cee0538154dadd045418c'
'5decf3d7eb724e27548af3142131a2f6')
build() {
cd $srcdir/SDL_Pango-$pkgver
patch -Np0 -i $srcdir/SDL_Pango-$pkgver-API-adds.patch
./configure --prefix=/usr
make || return 1
make
}
package() {
cd $srcdir/SDL_Pango-$pkgver
make DESTDIR=$pkgdir install
}
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