svn commit: r433036 - in head/games/ri-li: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Feb 1 14:20:10 UTC 2017
Author: amdmi3
Date: Wed Feb 1 14:20:09 2017
New Revision: 433036
URL: https://svnweb.freebsd.org/changeset/ports/433036
Log:
- Add LICENSE
- Fix build with clang 4.0 by fixing ordered pointer comparisons
Added:
head/games/ri-li/files/
head/games/ri-li/files/patch-src_sprite.cc (contents, props changed)
Modified:
head/games/ri-li/Makefile
Modified: head/games/ri-li/Makefile
==============================================================================
--- head/games/ri-li/Makefile Wed Feb 1 13:59:10 2017 (r433035)
+++ head/games/ri-li/Makefile Wed Feb 1 14:20:09 2017 (r433036)
@@ -10,6 +10,10 @@ MASTER_SITES= SF/${PORTNAME:tl}/${PORTNA
MAINTAINER= amdmi3 at FreeBSD.org
COMMENT= Drive a toy wood train in many levels - snake-like arcade game
+LICENSE= GPLv2 GPLv3
+LICENSE_COMB= dual
+LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
+
USES= tar:bzip2 gmake
GNU_CONFIGURE= yes
USE_SDL= sdl mixer
Added: head/games/ri-li/files/patch-src_sprite.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/ri-li/files/patch-src_sprite.cc Wed Feb 1 14:20:09 2017 (r433036)
@@ -0,0 +1,20 @@
+--- src/sprite.cc.orig 2007-11-02 11:48:20 UTC
++++ src/sprite.cc
+@@ -351,7 +351,7 @@ bool Sprite::Load(unsigned char *Buf,lon
+ // Fabrique la surface
+ Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8,
+ 0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3));
+- if(Image[i]<=NULL) {
++ if(Image[i]==NULL) {
+ cerr <<"Impossible de créer une Surface SDL!"<<endl;
+ return false;
+ }
+@@ -485,7 +485,7 @@ bool Sprite::Nouveau(int Lx,int Ly)
+ // Fabrique la surface
+ Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8,
+ 0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3));
+- if(Image[0]<=NULL) {
++ if(Image[0]==NULL) {
+ cerr <<"Impossible de créer une Surface SDL!"<<endl;
+ return false;
+ }
More information about the svn-ports-head
mailing list