From bde4675bef50646658bb7c920a6db2a4b0c327f1 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Mon, 22 May 2006 14:31:42 +0000 Subject: [PATCH] Update to 0.1.14 PR: 97509 Submitted by: Dmitry Marakasov (maintainer) --- games/xmoto/Makefile | 15 +++++++++++++-- games/xmoto/distinfo | 6 +++--- games/xmoto/files/patch-src-Replay.cpp | 10 ++++++++++ games/xmoto/files/patch-src-WWW.h | 10 ++++++++++ games/xmoto/files/patch-src-md5sum-md5file.h | 10 ++++++++++ 5 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 games/xmoto/files/patch-src-Replay.cpp create mode 100644 games/xmoto/files/patch-src-WWW.h create mode 100644 games/xmoto/files/patch-src-md5sum-md5file.h diff --git a/games/xmoto/Makefile b/games/xmoto/Makefile index f64ea62eabbf..a2f2be782087 100644 --- a/games/xmoto/Makefile +++ b/games/xmoto/Makefile @@ -6,7 +6,7 @@ # PORTNAME= xmoto -PORTVERSION= 0.1.12 +PORTVERSION= 0.1.14 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -36,11 +36,22 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PORTDOCS= README ChangeLog +OPTIONS= CURL "Online high-scores and new levels download support" on + +.include + +.if defined(WITH_CURL) +LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl +.endif + post-patch: @${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/src/VCommon.h @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/image/tim_memory_crt.cpp @${REINPLACE_CMD} -e 's|endian.h|sys/endian.h|' ${WRKSRC}/src/VCommon.h @${REINPLACE_CMD} -e '/LIBS/ s|\(-lSDL_mixer\)|\1 `${SDL_CONFIG} --libs`|' ${WRKSRC}/configure +.if !defined(WITH_CURL) + @${REINPLACE_CMD} -e 's|test $$ac_cv_lib_curl_curl_easy_init = yes|false|' ${WRKSRC}/configure +.endif .if !defined(NOPORTDOCS) post-install: @@ -50,4 +61,4 @@ post-install: .endfor .endif -.include +.include diff --git a/games/xmoto/distinfo b/games/xmoto/distinfo index 1c9106f325f6..6fcb59b683d6 100644 --- a/games/xmoto/distinfo +++ b/games/xmoto/distinfo @@ -1,3 +1,3 @@ -MD5 (xmoto-0.1.12-src.tar.gz) = 11dfdeb406d4cc1e50e6057fd2cb625a -SHA256 (xmoto-0.1.12-src.tar.gz) = 824af12df3389ccb4dfb5522f546ba9fb1c1c0ed7e71d65f34b692da93780dd7 -SIZE (xmoto-0.1.12-src.tar.gz) = 2880034 +MD5 (xmoto-0.1.14-src.tar.gz) = f2826bd3cc19daba25a6bdf92b1d6461 +SHA256 (xmoto-0.1.14-src.tar.gz) = cf796c32a8e22546798c00575201d552b59c7b4050275794fff2f5860db9008c +SIZE (xmoto-0.1.14-src.tar.gz) = 2920614 diff --git a/games/xmoto/files/patch-src-Replay.cpp b/games/xmoto/files/patch-src-Replay.cpp new file mode 100644 index 000000000000..595918fc6327 --- /dev/null +++ b/games/xmoto/files/patch-src-Replay.cpp @@ -0,0 +1,10 @@ +--- src/Replay.cpp.orig Sun May 21 17:46:59 2006 ++++ src/Replay.cpp Sun May 21 17:47:11 2006 +@@ -32,7 +32,6 @@ + #include + #include + #include +-#include + + namespace vapp { + diff --git a/games/xmoto/files/patch-src-WWW.h b/games/xmoto/files/patch-src-WWW.h new file mode 100644 index 000000000000..f7d3936d0a17 --- /dev/null +++ b/games/xmoto/files/patch-src-WWW.h @@ -0,0 +1,10 @@ +--- src/WWW.h.orig Sun May 21 17:47:25 2006 ++++ src/WWW.h Sun May 21 17:47:49 2006 +@@ -8,6 +8,7 @@ + + #include + #include ++#include + + #if !defined(_MSC_VER) + #define USE_HASH_MAP diff --git a/games/xmoto/files/patch-src-md5sum-md5file.h b/games/xmoto/files/patch-src-md5sum-md5file.h new file mode 100644 index 000000000000..3411dfa0b428 --- /dev/null +++ b/games/xmoto/files/patch-src-md5sum-md5file.h @@ -0,0 +1,10 @@ +--- src/md5sum/md5file.h.orig Sun May 21 17:45:47 2006 ++++ src/md5sum/md5file.h Sun May 21 17:46:02 2006 +@@ -2,6 +2,7 @@ + #define MD5FILE + + #include ++#include + + std::string md5file(std::string p_filename); +