ports/103394: [MAINTAINER] games/xmoto: update to 2.1.0

Dmitry Marakasov amdmi3 at mail.ru
Tue Sep 19 04:20:24 UTC 2006


>Number:         103394
>Category:       ports
>Synopsis:       [MAINTAINER] games/xmoto: update to 2.1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 19 04:20:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 #0: Fri Sep 1 14:24:31 MSD 2006 amdmi3 at hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
X-Moto 0.2.1 2006-09-14
-------------------------------

 * X-Moto is no more ALPHA !
 * ppc computer can now read and write x86 replays (patch by Dave Vasilevsky)
 * upload highscores from the game
 * webrooms configuration
 * Man pages (from debian package)
 * desktop files and icon for kde/gnome (by SnowBear)
 * -nowww option to force xmoto to not connect on the web
 * -testTheme option to test your themes
 * new functions for scripted levels
 * grip parameter for blocks (to make ice blocks for example)
 * auto-adaptation of the camera (depending on the gravity/wind)
 * uglyer ugly mode (for slower computer ; press F1 to switch ugly mode)
 * translations [french] (for unix only)
 * collision between body and sprites
 * level preview animation before playing (patch by Frederic Huard)
 * Some minor improvements
 * Several bugs fixed.
>How-To-Repeat:
>Fix:

--- xmoto-2.1.0.patch begins here ---
diff -ruN xmoto.orig/Makefile xmoto/Makefile
--- xmoto.orig/Makefile	Sat Sep 16 17:36:15 2006
+++ xmoto/Makefile	Tue Sep 19 08:12:22 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	xmoto
-PORTVERSION=	0.2.0
+PORTVERSION=	0.2.1
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -31,17 +31,39 @@
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include -I${LUA_INCDIR}
 LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib -L${LUA_LIBDIR}
+MANCOMPRESSED=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 PORTDOCS=	README ChangeLog
 
-OPTIONS=	CURL	"Online high-scores and new levels download support"	on
+OPTIONS=	WWW	"Online high-scores and new levels download support"	on \
+		ZOOM	"Enable zooming"	off
+
+MAN6=		xmoto.6 xmoto-edit.6
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_CURL)
+.if !defined(WITHOUT_WWW)
 LIB_DEPENDS+=	curl.3:${PORTSDIR}/ftp/curl
+CONFIGURE_ARGS+=	--with-enable-www=1
+.else
+CONFIGURE_ARGS+=	--with-enable-www=0
+.endif
+
+.if defined(WITH_ZOOM)
+CONFIGURE_ARGS+=	--with-enable-zoom=1
+.else
+CONFIGURE_ARGS+=	--with-enable-zoom=0
+.endif
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT=	yes
+PLIST_SUB+=	NLS=""
+CONFIGURE_ENV+=	LIBS="-lintl"
+.else
+CONFIGURE_ARGS+=	--disable-nls
+PLIST_SUB+=	NLS="@comment "
 .endif
 
 post-patch:
@@ -51,8 +73,10 @@
 		${WRKSRC}/src/image/tim_memory_crt.cpp
 	@${REINPLACE_CMD} -e \
 		'/LIBS/ s|\(-lSDL_mixer\)|`${SDL_CONFIG} --libs` \1| ; \
-		 s|test $$ac_cv_lib_curl_curl_easy_init = yes|false|' \
+		 s|function displayRequirement|displayRequirement()|; \
+		 /Locales/ s|libc|libintl|' \
 		${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|/mang|/man6|' ${WRKSRC}/Makefile.in
 
 .if !defined(NOPORTDOCS)
 post-install:
diff -ruN xmoto.orig/distinfo xmoto/distinfo
--- xmoto.orig/distinfo	Sat Sep 16 17:36:15 2006
+++ xmoto/distinfo	Sat Sep 16 17:37:51 2006
@@ -1,3 +1,3 @@
-MD5 (xmoto-0.2.0-src.tar.gz) = 0404467792034dd221b92303f2750ac7
-SHA256 (xmoto-0.2.0-src.tar.gz) = ee742446d0e37ca59d8157f857874b97b59fe23115001223fa56e7ee529754f9
-SIZE (xmoto-0.2.0-src.tar.gz) = 5607598
+MD5 (xmoto-0.2.1-src.tar.gz) = e5acce4c304db1cade31e6cc2d5abfde
+SHA256 (xmoto-0.2.1-src.tar.gz) = 9d7faa1a9196a6626f5edba7b590c0306eb16b35d5b3724fda7311ccb35de17c
+SIZE (xmoto-0.2.1-src.tar.gz) = 5755501
diff -ruN xmoto.orig/files/patch-src-Locales.h xmoto/files/patch-src-Locales.h
--- xmoto.orig/files/patch-src-Locales.h	Thu Jan  1 03:00:00 1970
+++ xmoto/files/patch-src-Locales.h	Tue Sep 19 05:55:15 2006
@@ -0,0 +1,11 @@
+--- src/Locales.h.orig	Tue Sep 19 05:51:55 2006
++++ src/Locales.h	Tue Sep 19 05:55:02 2006
+@@ -22,6 +22,8 @@
+ #ifndef __LOCALES_H__
+ #define __LOCALES_H__
+ 
++#include "BuildConfig.h"
++
+ #ifndef USE_GETTEXT
+ #define _(a) a
+ #else
diff -ruN xmoto.orig/files/patch-src-VCommon.h xmoto/files/patch-src-VCommon.h
--- xmoto.orig/files/patch-src-VCommon.h	Sat Sep 16 17:36:15 2006
+++ xmoto/files/patch-src-VCommon.h	Sat Sep 16 17:46:17 2006
@@ -1,12 +1,12 @@
---- src/VCommon.h.orig	Thu Jul 20 21:51:42 2006
-+++ src/VCommon.h	Fri Jul 28 15:59:16 2006
-@@ -62,8 +62,7 @@
+--- src/VCommon.h.orig	Tue Sep 12 22:29:01 2006
++++ src/VCommon.h	Sat Sep 16 17:45:59 2006
+@@ -70,8 +70,7 @@
  #include <string>
  #include <vector>
  #include <queue>
 -#include <ostream>
 -#include <istream>
 +#include <iostream>
+ #include <sstream>
  
  #include <stdio.h>
- #include <math.h>
diff -ruN xmoto.orig/pkg-plist xmoto/pkg-plist
--- xmoto.orig/pkg-plist	Sat Sep 16 17:36:15 2006
+++ xmoto/pkg-plist	Tue Sep 19 07:53:32 2006
@@ -1,7 +1,10 @@
 bin/xmoto
 bin/xmoto-edit
+%%NLS%%share/locale/fr/LC_MESSAGES/xmoto.mo
 %%DATADIR%%/editor.dat
 %%DATADIR%%/fonts.dat
 %%DATADIR%%/xmoto.bin
 %%DATADIR%%/xmoto.ogg
+%%NLS%%@dirrmtry share/locale/fr/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/fr
 @dirrm %%DATADIR%%
--- xmoto-2.1.0.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list