[49170] trunk/dports/games

snc at macports.org snc at macports.org
Sat Apr 4 15:12:05 PDT 2009


Revision: 49170
          http://trac.macports.org/changeset/49170
Author:   snc at macports.org
Date:     2009-04-04 15:12:05 -0700 (Sat, 04 Apr 2009)
Log Message:
-----------
created xjump (with approved fixes), ticket #18946

Added Paths:
-----------
    trunk/dports/games/xjump/
    trunk/dports/games/xjump/Portfile
    trunk/dports/games/xjump/files/
    trunk/dports/games/xjump/files/patch-src-Makefile.diff
    trunk/dports/games/xjump/files/patch-src-main.c.diff
    trunk/dports/games/xjump/files/patch-src-record.c.diff

Added: trunk/dports/games/xjump/Portfile
===================================================================
--- trunk/dports/games/xjump/Portfile	                        (rev 0)
+++ trunk/dports/games/xjump/Portfile	2009-04-04 22:12:05 UTC (rev 49170)
@@ -0,0 +1,32 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                xjump
+version             2.7.5
+categories          games
+maintainers         gmail.com:pierreetienne.meunier
+description         xjump
+long_description    The classical XJump platform game
+homepage
+
+platforms           darwin
+depends_lib         port:xorg-libX11
+
+master_sites        http://www.gtlib.cc.gatech.edu/pub/debian/pool/main/x/xjump/
+
+distfiles           xjump_2.7.5.orig.tar.gz
+checksums           md5 3e8d09c6b8162b7e4380f8a77eb595dc \
+                    sha1 7cf7f1269ef2cd0640575f924f6e7a39668939f2
+
+patchfiles          patch-src-Makefile.diff patch-src-main.c.diff patch-src-record.c.diff
+post-patch {
+    reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/Makefile
+    reinplace "s|mkdir|mkdir -p|g" ${worksrcpath}/Makefile
+}
+
+worksrcdir          xjump-2.7.5.orig
+use_configure       no
+
+build.target        ""


Property changes on: trunk/dports/games/xjump/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/games/xjump/files/patch-src-Makefile.diff
===================================================================
--- trunk/dports/games/xjump/files/patch-src-Makefile.diff	                        (rev 0)
+++ trunk/dports/games/xjump/files/patch-src-Makefile.diff	2009-04-04 22:12:05 UTC (rev 49170)
@@ -0,0 +1,27 @@
+--- Makefile2	2009-03-23 22:43:10.000000000 +0100
++++ Makefile	2009-03-23 22:46:10.000000000 +0100
+@@ -12,10 +12,10 @@
+ #########################################################
+ 
+ # \xA5\xA4\xA5��ȡ\xBC\xA5\xEB\xC0\xE8\xA4\xF2\xBB\xD8\xC4\xEA
+-TARGET = /usr/games/
++
+ 
+ # \xA5쥳\xA1\xBC\xA5ɥե\xA1\xA5\xA4\xA5\xEB\xA4Υǥ\xA3\xA5쥯\xA5ȥ\xEA\xA4\xF2\xBB\xD8\xC4\xEA
+-RECORD_DIR  = /var/games/xjump
++RECORD_DIR  = @PREFIX@/var/games/xjump
+ 
+ #\xA5쥳\xA1\xBC\xA5ɥե\xA1\xA5\xA4\xA5\xEB\xA4Υե\xA1\xA5\xA4\xA5\xEB̾\xA4\xF2\xBB\xD8\xC4\xEA(\xC3\x{D867}\xA4\xB3\xA4\xEC\xA4ϥХ\xA4\xA5ʥ\xEA\xA4\xCB\xCB\xE4\xA4\xE1\xB9\xFE\xA4ޤ\xEC\xA4ޤ\xB9)
+ RECORD_FILE  = $(RECORD_DIR)/record
+@@ -56,7 +56,9 @@
+ 
+ 
+ install	: xjump
+-	install -g games -c -s -m 2755 xjump $(DESTDIR)$(TARGET)
+-
++	install xjump $(DESTDIR)@PREFIX@/bin
++	mkdir $(RECORD_DIR)
++	touch $(RECORD_FILE)
++	chmod 777 $(RECORD_FILE)
+ clean:
+ 	rm -f *.o xjump *~

Added: trunk/dports/games/xjump/files/patch-src-main.c.diff
===================================================================
--- trunk/dports/games/xjump/files/patch-src-main.c.diff	                        (rev 0)
+++ trunk/dports/games/xjump/files/patch-src-main.c.diff	2009-04-04 22:12:05 UTC (rev 49170)
@@ -0,0 +1,23 @@
+--- main.c	1999-08-20 05:47:44.000000000 +0200
++++ main.c.new	2009-03-23 22:19:24.000000000 +0100
+@@ -18,6 +18,7 @@
+ #include<X11/Xaw/Label.h>
+ #include<X11/Shell.h>
+ #include<X11/xpm.h>
++#include <stdlib.h>
+ 
+ #include"xjump.h"
+ #include"record.h"
+@@ -390,10 +391,10 @@
+ {
+   Pixmap icon,mask;
+ 
+-  icon = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),icon_bits,
++  icon = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),(char*)icon_bits,
+ 			       icon_width,icon_height );
+ 
+-  mask = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),icon_msk_bits,
++  mask = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),(char*)icon_msk_bits,
+ 			       icon_msk_width,icon_msk_height );
+ 
+   XtVaSetValues( Top,XtNiconPixmap,icon,XtNiconMask,mask,NULL );

Added: trunk/dports/games/xjump/files/patch-src-record.c.diff
===================================================================
--- trunk/dports/games/xjump/files/patch-src-record.c.diff	                        (rev 0)
+++ trunk/dports/games/xjump/files/patch-src-record.c.diff	2009-04-04 22:12:05 UTC (rev 49170)
@@ -0,0 +1,11 @@
+--- record.c	1997-11-08 08:41:40.000000000 +0100
++++ record.c.new	2009-03-23 22:19:30.000000000 +0100
+@@ -14,7 +14,7 @@
+ #include<errno.h>
+ #include<ctype.h>
+ #include<pwd.h>
+-
++#include <string.h>
+ #include"record.h"
+ 
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090404/9ac88016/attachment.html>


More information about the macports-changes mailing list