Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7b17bf64c99a96001e5a022e27630243897418da
commit 7b17bf64c99a96001e5a022e27630243897418da
Author: crazy <[EMAIL PROTECTED]>
Date: Mon Nov 5 17:52:20 2007 +0100
perl-sdl-2.1.3-1-x86_64
* Version bump
* new m8r
* WTF this in old FB :
* 'Frozen package - do not upgrade(you are unable)'
* heh , well I am :P
diff --git a/source/xlib-extra/perl-sdl/FrugalBuild
b/source/xlib-extra/perl-sdl/FrugalBuild
index a3c2a90..fc5ef18 100644
--- a/source/xlib-extra/perl-sdl/FrugalBuild
+++ b/source/xlib-extra/perl-sdl/FrugalBuild
@@ -1,34 +1,44 @@
-# Compiling Time: ~0.1 SBU
-# Maintainer: Zsolt Szalai <[EMAIL PROTECTED]>
-
-# Frozen package - do not upgrade(you are unable)
-# do not remove
+# Compiling Time: 0.1 SBU
+# Maintainer: crazy <[EMAIL PROTECTED]>
+_F_perl_name=SDL_Perl
+_F_perl_author=D/DG/DGOEHRIG
+pkgver=2.1.3
+pkgdesc="Simple DirectMedia Layer for Perl"
+depends=('sdl_mixer' 'sdl_net' 'sdlimage' 'smpeg>=0.4.4-2' 'sdl_gfx'
'sdlimage')
+makedepends=('perl-module-build' 'perl-extutils-cbuilder')
+Finclude perl
pkgname=perl-sdl
-pkgver=1.19.2
-pkgrel=1
-pkgdesc="Simple DirectMedia Layer Perl"
-url="http://cpan.org/"
-makedepends=('perl')
-depends=('sdl_mixer' 'sdl_net' 'sdlimage' 'perl')
+source=($source sdl-2.1.3.build.patch sdl-perl-2.1.3-gfxPie.patch)
groups=('xlib-extra')
archs=('i686' 'x86_64')
-up2date=1.19.2
-source=(ftp://frugalware.org/pub/frugalware/frugalware-current/extra/source/devel/perl-sdl/SDL_perl-$pkgver.tar.gz)
-sha1sums=('3c36b46bc533f62052c045724e3b98511fd825e1')
+sha1sums=('9c11cd7e4356f9b254cd9e3a2f993b1751a21552' \
+ '6d9a4535798eab2469527f81eb8bba0e171df9ef' \
+ '80cb7ddb31c4cf455d74c15655c11fe16a94a1b9')
-build() {
- cd $startdir/src/SDL_perl-$pkgver
- perl Makefile.PL
-
- make test
- make || return 1
+build()
+{
+ Fcd $_F_perl_name-$pkgver
+ Fpatchall
+ perl Build.PL || Fdie
+ ./Build || Fdie
+ ./Build install destdir=$Fdestdir || Fdie
- make install DESTDIR=$startdir/pkg
- mv $startdir/pkg/usr/lib/perl5/site_perl/?.?.? \
- $startdir/pkg/usr/lib/perl5/site_perl/current
- rm -rf $startdir/pkg/usr/lib/perl5/?.?.?
- find $startdir/pkg/usr/lib/perl5/site_perl/current/ -name .packlist
-exec rm {} \;
+ if [ -d $Fdestdir/usr/lib/perl5/?.?.? ]; then
+ Fmv '/usr/lib/perl5/?.?.?' /usr/lib/perl5/current
+ fi
+ if [ -d $Fdestdir/usr/lib/perl5 ]; then
+ find $Fdestdir/usr/lib/perl5 -name perllocal.pod -exec rm {} \;
+ find $Fdestdir/usr/lib/perl5 -name .packlist -exec rm {} \;
+ fi
+ if [ -e $Fdestdir/usr/lib/perl5/site_perl/?.?.? ]; then
+ Fmv '/usr/lib/perl5/site_perl/?.?.?'
/usr/lib/perl5/site_perl/current
+ fi
+ if [ -d $Fdestdir/usr/lib/perl5/site_perl ]; then
+ find $Fdestdir/usr/lib/perl5/site_perl -name perllocal.pod
-exec rm {} \;
+ find $Fdestdir/usr/lib/perl5/site_perl -name .packlist -exec
rm {} \;
+ fi
+
}
-# optimalization OK
+# optimization OK
diff --git a/source/xlib-extra/perl-sdl/sdl-2.1.3.build.patch
b/source/xlib-extra/perl-sdl/sdl-2.1.3.build.patch
new file mode 100644
index 0000000..5f20beb
--- /dev/null
+++ b/source/xlib-extra/perl-sdl/sdl-2.1.3.build.patch
@@ -0,0 +1,67 @@
+diff -Naurp SDL_Perl-2.1.3/Build.PL SDL_Perl-2.1.3-new/Build.PL
+--- SDL_Perl-2.1.3/Build.PL 2005-10-05 05:25:49.000000000 -0400
++++ SDL_Perl-2.1.3-new/Build.PL 2006-05-25 19:00:23.000000000 -0400
+@@ -35,7 +35,7 @@ my %subsystems =
+ SDL => {
+ file => {
+ from => 'src/SDL.xs',
+- to => 'src/SDL_perl.xs',
++ to => './SDL_perl.xs',
+ },
+ libraries => [qw( SDL SDL_image SDL_mixer SDL_net SDL_ttf
SDL_gfx
+ png jpeg smpeg )],
+@@ -43,14 +43,14 @@ my %subsystems =
+ OpenGL => {
+ file => {
+ from => 'src/OpenGL.xs',
+- to => 'src/SDL/OpenGL.xs',
++ to => 'SDL/OpenGL.xs',
+ },
+ libraries => [qw( SDL GL GLU )],
+ },
+ SFont => {
+ file => {
+ from => 'src/SFont.xs',
+- to => 'src/SDL/SFont.xs',
++ to => 'SDL/SFont.xs',
+ },
+ libraries => [qw( SDL SDL_image )],
+ },
+diff -Naurp SDL_Perl-2.1.3/src/OpenGL.xs SDL_Perl-2.1.3-new/src/OpenGL.xs
+--- SDL_Perl-2.1.3/src/OpenGL.xs 2005-10-05 05:25:49.000000000 -0400
++++ SDL_Perl-2.1.3-new/src/OpenGL.xs 2006-05-25 18:59:04.000000000 -0400
+@@ -23,7 +23,7 @@
+ #define GL_ALL_CLIENT_ATTRIB_BITS 0xFFFFFFF
+ #endif /* GL_ALL_CLIENT_BITS */
+
+-#include "../defines.h"
++#include "../src/defines.h"
+
+ SV* sdl_perl_nurbs_error_hook;
+ void
+diff -Naurp SDL_Perl-2.1.3/src/SDL.xs SDL_Perl-2.1.3-new/src/SDL.xs
+--- SDL_Perl-2.1.3/src/SDL.xs 2005-10-05 05:25:49.000000000 -0400
++++ SDL_Perl-2.1.3-new/src/SDL.xs 2006-05-25 19:04:00.000000000 -0400
+@@ -69,7 +69,7 @@ static int sdl_perl_use_smpeg_audio = 0;
+ #define HAVE_TLS_CONTEXT
+ #endif
+
+-#include "defines.h"
++#include "src/defines.h"
+
+ Uint32
+ sdl_perl_timer_callback ( Uint32 interval, void* param )
+diff -Naurp SDL_Perl-2.1.3/src/SFont.xs SDL_Perl-2.1.3-new/src/SFont.xs
+--- SDL_Perl-2.1.3/src/SFont.xs 2005-10-05 05:25:49.000000000 -0400
++++ SDL_Perl-2.1.3-new/src/SFont.xs 2006-05-25 18:59:04.000000000 -0400
+@@ -23,8 +23,8 @@
+ #define HAVE_TLS_CONTEXT
+ #endif
+
+-#include "../defines.h"
+-#include "../SFont.h"
++#include "../src/defines.h"
++#include "../src/SFont.h"
+
+ #ifdef HAVE_SDL_IMAGE
+ #include <SDL_image.h>
diff --git a/source/xlib-extra/perl-sdl/sdl-perl-2.1.3-gfxPie.patch
b/source/xlib-extra/perl-sdl/sdl-perl-2.1.3-gfxPie.patch
new file mode 100644
index 0000000..461eccd
--- /dev/null
+++ b/source/xlib-extra/perl-sdl/sdl-perl-2.1.3-gfxPie.patch
@@ -0,0 +1,33 @@
+--- src/SDL.xs~ 2003-03-27 12:17:23.000000000 +0200
++++ src/SDL.xs 2005-02-25 20:32:07.353170226 +0200
+@@ -71,6 +71,7 @@
+ #include <SDL_gfxPrimitives.h>
+ #include <SDL_framerate.h>
+ #include <SDL_imageFilter.h>
++#define PERL_SDL_GFXVERSION
SDL_VERSIONNUM(SDL_GFXPRIMITIVES_MAJOR,SDL_GFXPRIMITIVES_MINOR,SDL_GFXPRIMITIVES_MICRO)
+ #endif
+
+ #ifdef USE_THREADS
+@@ -3742,7 +3743,11 @@
+ Sint16 end;
+ Uint32 color;
+ CODE:
++#if PERL_SDL_GFXVERSION >= 2012
++ RETVAL = filledPieColor( dst, x, y, rad, start, end, color );
++#else
+ RETVAL = filledpieColor( dst, x, y, rad, start, end, color );
++#endif
+ OUTPUT:
+ RETVAL
+
+@@ -3759,7 +3764,11 @@
+ Uint8 b;
+ Uint8 a;
+ CODE:
++#if PERL_SDL_GFXVERSION >= 2012
++ RETVAL = filledPieRGBA( dst, x, y, rad, start, end, r, g, b, a );
++#else
+ RETVAL = filledpieRGBA( dst, x, y, rad, start, end, r, g, b, a );
++#endif
+ OUTPUT:
+ RETVAL
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git