mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 03:17:15 +08:00
remove clanlib1 and trophy
This commit is contained in:
parent
2ede41a120
commit
f767a12c2a
@ -1,56 +0,0 @@
|
||||
#
|
||||
# Games Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
||||
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
|
||||
|
||||
pkgname=clanlib1
|
||||
_pkgname=clanlib
|
||||
pkgver=1.0.0
|
||||
pkgrel=6
|
||||
pkgdesc="A multi-platform game development library"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://clanlib.org/"
|
||||
license=('zlib')
|
||||
depends=('glu' 'alsa-lib' 'libjpeg' 'libmikmod' 'libpng' 'libvorbis' 'libxi' 'libxmu' 'mesa' 'sdl_gfx' 'freetype2' 'pcre' 'sqlite3')
|
||||
makedepends=( 'doxygen' 'graphviz')
|
||||
provides=('clanlib')
|
||||
replaces=('clanlib')
|
||||
conflicts=('clanlib')
|
||||
options=('!libtool')
|
||||
source=(http://pkgs.fedoraproject.org/repo/pkgs/ClanLib1/ClanLib-1.0.0.tgz/281e64a463155474d0f1270686286811/ClanLib-1.0.0.tgz
|
||||
$_pkgname-$pkgver-stdio.diff
|
||||
$_pkgname-$pkgver-libpng-1.5.diff)
|
||||
md5sums=('281e64a463155474d0f1270686286811'
|
||||
'8266047805d8dba2f4bf67562c9f061d'
|
||||
'9979f8f736e5985dfb8ac25ee2492c53')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/ClanLib-${pkgver}
|
||||
|
||||
# Patches.
|
||||
patch -uNp1 -i $srcdir/$_pkgname-$pkgver-stdio.diff
|
||||
patch -uNp1 -i $srcdir/$_pkgname-$pkgver-libpng-1.5.diff # Source: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649552
|
||||
|
||||
# Fix compilation errors
|
||||
sed -i "51i#include <cstdio>" Sources/GL/canvas_opengl.cpp
|
||||
sed -i "38i#include <cstdio>" Sources/GL/GLX/input_device_linuxevent.cpp
|
||||
sed -i "32i#include <cstdio>" Sources/GL/GLX/input_device_xinput.cpp
|
||||
|
||||
export LINUX_JOYSTICK_TRUE=yes
|
||||
export LINUX_INPUT_TRUE=yes
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/ClanLib-${pkgver}
|
||||
|
||||
make DESTDIR=${pkgdir} install
|
||||
|
||||
# License.
|
||||
install -d ${pkgdir}/usr/share/licenses/${pkgname}
|
||||
install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
diff -Naur ClanLib-1.0.0/Sources/Display/Providers/png_provider_generic.cpp ClanLib-1.0.0-new/Sources/Display/Providers/png_provider_generic.cpp
|
||||
--- ClanLib-1.0.0/Sources/Display/Providers/png_provider_generic.cpp 2006-10-27 03:55:01.000000000 +0200
|
||||
+++ ClanLib-1.0.0-new/Sources/Display/Providers/png_provider_generic.cpp 2012-11-01 12:43:53.534732315 +0100
|
||||
@@ -107,7 +107,11 @@
|
||||
png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL);
|
||||
cl_assert(false);
|
||||
}
|
||||
- if (setjmp(png_ptr->jmpbuf))
|
||||
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
|
||||
+ if (setjmp(png_jmpbuf(png_ptr)))
|
||||
+#else
|
||||
+ if (setjmp(png_ptr->jmpbuf))
|
||||
+#endif
|
||||
{
|
||||
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
|
||||
cl_assert(false);
|
@ -1,33 +0,0 @@
|
||||
diff -Naur ClanLib-1.0.0/Sources//GL/canvas_opengl.cpp ClanLib-1.0.0.new/Sources//GL/canvas_opengl.cpp
|
||||
--- ClanLib-1.0.0/Sources//GL/canvas_opengl.cpp 2007-10-21 02:14:01.000000000 +0200
|
||||
+++ ClanLib-1.0.0.new/Sources//GL/canvas_opengl.cpp 2012-03-25 13:34:50.346669577 +0200
|
||||
@@ -48,6 +48,7 @@
|
||||
#include "graphic_context_opengl.h"
|
||||
#include "surface_target_opengl.h"
|
||||
#include <cstring>
|
||||
+#include <cstdio>
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CL_Canvas_OpenGL construction:
|
||||
diff -Naur ClanLib-1.0.0/Sources//GL/GLX/input_device_linuxevent.cpp ClanLib-1.0.0.new/Sources//GL/GLX/input_device_linuxevent.cpp
|
||||
--- ClanLib-1.0.0/Sources//GL/GLX/input_device_linuxevent.cpp 2007-10-21 02:14:01.000000000 +0200
|
||||
+++ ClanLib-1.0.0.new/Sources//GL/GLX/input_device_linuxevent.cpp 2012-03-25 13:34:50.347669587 +0200
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <iostream>
|
||||
#include <errno.h>
|
||||
#include <cstring>
|
||||
+#include <cstdio>
|
||||
|
||||
#include "API/Core/System/error.h"
|
||||
#include "API/Core/System/clanstring.h"
|
||||
diff -Naur ClanLib-1.0.0/Sources//GL/GLX/input_device_xinput.cpp ClanLib-1.0.0.new/Sources//GL/GLX/input_device_xinput.cpp
|
||||
--- ClanLib-1.0.0/Sources//GL/GLX/input_device_xinput.cpp 2007-10-21 02:14:01.000000000 +0200
|
||||
+++ ClanLib-1.0.0.new/Sources//GL/GLX/input_device_xinput.cpp 2012-03-25 13:37:34.391330132 +0200
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
+#include <cstdio>
|
||||
#include "API/Core/System/log.h"
|
||||
#include "API/Display/input_device.h"
|
||||
#include "API/Display/input_event.h"
|
@ -1,35 +0,0 @@
|
||||
#
|
||||
# Games Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
||||
# Contributor: Colin Pitrat <colin.pitrat@gmail.com>
|
||||
|
||||
pkgname=trophy
|
||||
pkgver=2.0.3
|
||||
pkgrel=3
|
||||
pkgdesc="A 2D car racing action game"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://$pkgname.sourceforge.net"
|
||||
screenshot="http://trophy.sourceforge.net/img/screenshot04.gif"
|
||||
license=(GPL2)
|
||||
depends=(clanlib1)
|
||||
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
|
||||
md5sums=('bf62269cacf794e087ac88f0e39f54c1')
|
||||
|
||||
build()
|
||||
{
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package()
|
||||
{
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
make DESTDIR=$pkgdir install
|
||||
}
|
||||
md5sums=('a16c20ebfd8b852f4fe74a58dc7cdf2f')
|
Loading…
Reference in New Issue
Block a user