1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

Add xmoto, a challenging 2D motocross platform game.

PR:		87143
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
Approved by:	novel (mentor) (implicit)
This commit is contained in:
Emanuel Haupt 2005-10-16 09:21:59 +00:00
parent 729bc13ec1
commit 7d35098aec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145539
7 changed files with 106 additions and 0 deletions

View File

@ -680,6 +680,7 @@
SUBDIR += xminesweep
SUBDIR += xmj
SUBDIR += xmlink
SUBDIR += xmoto
SUBDIR += xmris
SUBDIR += xmulti
SUBDIR += xneko

55
games/xmoto/Makefile Normal file
View File

@ -0,0 +1,55 @@
# New ports collection makefile for: xmoto
# Date created: 07 Oct 2005
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= xmoto
PORTVERSION= 0.1.6
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= amdmi3@mail.ru
COMMENT= Challenging 2D motocross platform game
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GL= yes
USE_REINPLACE= yes
USE_SDL= sdl
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
SDL_CONFIG="${SDL_CONFIG}"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= README ChangeLog
# game is still in alpha state, other archs are untested
ONLY_FOR_ARCHS= i386
post-patch:
@${FIND} ${WRKSRC}/src -name "*.cpp" -o -name "*.h" | \
${XARGS} ${REINPLACE_CMD} -e "s|$$(${PRINTF} '\r')||g"
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/src/VCommon.h
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/ode/config.h \
${WRKSRC}/src/image/tim_memory_crt.cpp
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

2
games/xmoto/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (xmoto-0.1.6-src.tar.gz) = b5d11e0f90ab5ff886c1dc90fa15cb2e
SIZE (xmoto-0.1.6-src.tar.gz) = 2780752

View File

@ -0,0 +1,13 @@
--- Makefile.in.orig Thu Oct 6 19:21:49 2005
+++ Makefile.in Fri Oct 7 18:25:32 2005
@@ -76,8 +76,8 @@
am__quote = @am__quote@
install_sh = @install_sh@
INCLUDES = -Isrc
-CXXFLAGS = -w -O3 -DGAMEDATADIR=\"$(datadir)/@PACKAGE@\"
-CFLAGS = -w -O3 -DGAMEDATADIR=\"$(datadir)/@PACKAGE@\"
+CXXFLAGS = @CXXFLAGS@ -DGAMEDATADIR=\"$(datadir)/@PACKAGE@\"
+CFLAGS = @CFLAGS@ -DGAMEDATADIR=\"$(datadir)/@PACKAGE@\"
SUBDIRS = bin
image_SOURCES = src/image/tim.cpp src/image/tim_io_stdio.cpp \

View File

@ -0,0 +1,20 @@
--- configure.orig Thu Oct 6 19:21:49 2005
+++ configure Fri Oct 7 04:53:57 2005
@@ -3377,7 +3377,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lSDL $LIBS"
+LIBS="`$SDL_CONFIG --libs` $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -3439,7 +3439,7 @@
#define HAVE_LIBSDL 1
_ACEOF
- LIBS="-lSDL $LIBS"
+ LIBS="`$SDL_CONFIG --libs` $LIBS"
else

7
games/xmoto/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
X-Moto is a challenging 2D motocross platform game, where physics play an all
important role in the gameplay. You need to control your bike to its limit, if
you want to have a chance finishing the more difficult of the challenges.
WWW: http://xmoto.sourceforge.net/
- Dmitry Marakasov <amdmi3@mail.ru>

8
games/xmoto/pkg-plist Normal file
View File

@ -0,0 +1,8 @@
bin/xmoto
bin/xmoto-edit
%%DATADIR%%/anims.dat
%%DATADIR%%/sprites.dat
%%DATADIR%%/editor.dat
%%DATADIR%%/fonts.dat
%%DATADIR%%/xmoto.bin
@dirrm %%DATADIR%%