mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Update to 0.1.10
- Remove ONLY_FOR_ARCHS - Add SHA256 PR: 89899 Submitted by: Dmitry Marakasov <amdmi3@mail.ru>
This commit is contained in:
parent
15d05e49d8
commit
356f504d8b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150334
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= xmoto
|
||||
PORTVERSION= 0.1.6
|
||||
PORTVERSION= 0.1.10
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -17,13 +17,15 @@ COMMENT= Challenging 2D motocross platform game
|
||||
|
||||
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
|
||||
png.5:${PORTSDIR}/graphics/png \
|
||||
jpeg.9:${PORTSDIR}/graphics/jpeg
|
||||
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
lua.5:${PORTSDIR}/lang/lua
|
||||
BUILD_DEPENDS= ${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_GL= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_SDL= sdl
|
||||
USE_SDL= sdl mixer
|
||||
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
||||
@ -34,15 +36,15 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
PORTDOCS= README ChangeLog
|
||||
|
||||
# game is still in alpha state, other archs are untested
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
post-patch:
|
||||
post-extract:
|
||||
@${FIND} ${WRKSRC}/src -name "*.cpp" -o -name "*.h" | \
|
||||
${XARGS} ${REINPLACE_CMD} -e "s|$$(${PRINTF} '\r')||g"
|
||||
|
||||
post-patch:
|
||||
@${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
|
||||
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/image/tim_memory_crt.cpp
|
||||
@${REINPLACE_CMD} -e 's|-lSDL |`${SDL_CONFIG} --libs` |' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|endian.h|sys/endian.h|' ${WRKSRC}/src/VCommon.h
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
|
@ -1,2 +1,3 @@
|
||||
MD5 (xmoto-0.1.6-src.tar.gz) = b5d11e0f90ab5ff886c1dc90fa15cb2e
|
||||
SIZE (xmoto-0.1.6-src.tar.gz) = 2780752
|
||||
MD5 (xmoto-0.1.10-src.tar.gz) = bd91f049fc60e5036112090f8d89ecea
|
||||
SHA256 (xmoto-0.1.10-src.tar.gz) = 794870e45736402fd95090e436fe9eed863b8f5036b6b4290a1bd470fcc0a6a7
|
||||
SIZE (xmoto-0.1.10-src.tar.gz) = 2776333
|
||||
|
@ -1,13 +0,0 @@
|
||||
--- 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 \
|
@ -1,20 +0,0 @@
|
||||
--- 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
|
||||
|
12
games/xmoto/files/patch-src-VCommon.h
Normal file
12
games/xmoto/files/patch-src-VCommon.h
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/VCommon.h.orig Sun Dec 4 01:53:03 2005
|
||||
+++ src/VCommon.h Sun Dec 4 01:53:35 2005
|
||||
@@ -69,8 +69,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
-#include <ostream>
|
||||
-#include <istream>
|
||||
+#include <iostream>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
Loading…
Reference in New Issue
Block a user