From owner-svn-ports-all@FreeBSD.ORG Fri Nov 30 19:07:42 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B8D292D; Fri, 30 Nov 2012 19:07:42 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 7D1BC8FC0C; Fri, 30 Nov 2012 19:07:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAUJ7g42039885; Fri, 30 Nov 2012 19:07:42 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAUJ7gu5039875; Fri, 30 Nov 2012 19:07:42 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201211301907.qAUJ7gu5039875@svn.freebsd.org> From: Jason Helfman Date: Fri, 30 Nov 2012 19:07:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308023 - in head/games: . megamario megamario/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2012 19:07:42 -0000 Author: jgh Date: Fri Nov 30 19:07:41 2012 New Revision: 308023 URL: http://svnweb.freebsd.org/changeset/ports/308023 Log: - add new port: games/megamario Mega Mario is a Super Mario Bros. 1 clone. It features everything the original features - with better graphics, higher resolution, smoother movement and new levels. The story of mario and Luigi continues in old-school style. WWW: http://www.megamario.de/ PR: 167893 Submitted by: nemysis@gmx.ch Feature safe: yes Added: head/games/megamario/ head/games/megamario/Makefile (contents, props changed) head/games/megamario/distinfo (contents, props changed) head/games/megamario/files/ head/games/megamario/files/patch-Makefile (contents, props changed) head/games/megamario/files/patch-src-functions.cpp (contents, props changed) head/games/megamario/files/patch-src-global.cpp (contents, props changed) head/games/megamario/files/patch-src-levels.h (contents, props changed) head/games/megamario/files/patch-src-main.cpp (contents, props changed) head/games/megamario/files/patch-src-player.cpp (contents, props changed) head/games/megamario/pkg-descr (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Fri Nov 30 19:03:49 2012 (r308022) +++ head/games/Makefile Fri Nov 30 19:07:41 2012 (r308023) @@ -545,6 +545,7 @@ SUBDIR += meandmyshadow SUBDIR += megaglest SUBDIR += megaglest-data + SUBDIR += megamario SUBDIR += memonix SUBDIR += meqcc SUBDIR += meritous Added: head/games/megamario/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/Makefile Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,61 @@ +# Created by: nemysis@gmx.ch +# +# $FreeBSD$ + +PORTNAME= megamario +PORTVERSION= 1.7 +CATEGORIES= games +MASTER_SITES= SF/mmario/Mega%20Mario%20Full%20Game/Mega%20Mario%20v${PORTVERSION}%20%28Full%20Game%2C%20high%20Quality%20music%29/ +DISTNAME= MegaMario_v${PORTVERSION}_full + +MAINTAINER= nemysis@gmx.ch +COMMENT= Super Mario Bros 1 clone + +LICENSE= LGPL21 + +WRKSRC= ${WRKDIR}/${DISTNAME} + +FETCH_ARGS?= -Fpr +USE_ZIP= yes +EXTRACT_AFTER_ARGS= -d ${WRKSRC} +USE_GMAKE= yes +USE_DOS2UNIX= *.cpp *.h *.ini Makefile* *.txt *.desktop +ALL_TARGET= ${PORTNAME} +USE_SDL= sdl image mixer ttf +USE_GL= glu +MAKE_JOBS_SAFE= yes + +pre-extract: + ${MKDIR} ${WRKDIR}/${DISTNAME} + +PLIST_FILES= bin/${PORTNAME} \ + share/applications/${PORTNAME}.desktop \ + share/pixmaps/${PORTNAME}.png +PLIST_DIRSTRY= share/applications + +PORTDATA= * +PORTDOCS= CONTROLS.txt linux.txt readme.txt + +.include + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/share/pixmaps/megamario.png|${PORTNAME}|' \ + ${WRKSRC}/${PORTNAME}.desktop + @${REINPLACE_CMD} -e 's|slidebar.PNG|slidebar.png|' \ + ${WRKSRC}/data/levels/Edit2/main ${WRKSRC}/data/levels/3_2/main + @(cd ${WRKSRC}/help && ${MV} editor_R*.PNG editor_Roehren.png) + @for i in `${FIND} ${WRKSRC} -name \*.JPG -or -name \*.PNG`; do \ + ${MV} $$i `echo $$i | ${SED} -e 's/PNG/png/;s/JPG/jpg/'`; done + +post-install: + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "help mp3music screens" ${DATADIR}) + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps/ + ${MKDIR} ${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications/ + +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif + +.include Added: head/games/megamario/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/distinfo Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,2 @@ +SHA256 (MegaMario_v1.7_full.zip) = 243ebf03cb1e5c5e7cead48d9a988ffb9a1c94f9427f71ea559ad047486c9e72 +SIZE (MegaMario_v1.7_full.zip) = 26467748 Added: head/games/megamario/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/files/patch-Makefile Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,12 @@ +Index: Makefile +@@ -1,8 +1,7 @@ +-PREFIX = /home/opt + DATADIR = $(PREFIX)/share/$(TARGET) +-CFLAGS = -g -Wall -O2 ++CFLAGS += $(shell sdl-config --cflags) + CXXFLAGS= $(CFLAGS) +-LDFLAGS = -lSDL -lSDL_mixer -lSDL_ttf -lSDL_image -lGL ++LDFLAGS += $(shell sdl-config --libs) -lSDL -lSDL_mixer -lSDL_ttf -lSDL_image -lGL -lm + DEFINES = -DDATADIR=\"$(DATADIR)/\" + OBJS = src/bonus.o src/gamepad.o src/killerblume.o src/player.o \ + src/bowser.o src/global.o src/levels.o src/spiny.o \ Added: head/games/megamario/files/patch-src-functions.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/files/patch-src-functions.cpp Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,11 @@ +--- src/functions.cpp.orig 2012-05-06 00:56:40.000000000 +0200 ++++ src/functions.cpp 2012-05-06 01:00:37.000000000 +0200 +@@ -447,7 +447,7 @@ + } + else + { +- sprintf(tmp, "mp3music/%s",filename); ++ sprintf(tmp, DATADIR "mp3music/%s",filename); + tmp[strlen(tmp)-3]='m'; + tmp[strlen(tmp)-2]='p'; + tmp[strlen(tmp)-1]='3'; Added: head/games/megamario/files/patch-src-global.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/files/patch-src-global.cpp Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,10 @@ +--- src/global.cpp.orig 2012-05-06 00:44:34.000000000 +0200 ++++ src/global.cpp 2012-05-06 00:50:32.000000000 +0200 +@@ -9,6 +9,7 @@ + + #include "Global.h" + #include "unixutils.h" ++#include + + + Added: head/games/megamario/files/patch-src-levels.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/files/patch-src-levels.h Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,11 @@ +--- src/levels.h.orig 2012-05-06 00:44:34.000000000 +0200 ++++ src/levels.h 2012-05-06 00:52:50.000000000 +0200 +@@ -8,7 +8,7 @@ + + #ifndef __LEVELS_H__ + #define __LEVELS_H__ +- ++#include + + class cScene + { Added: head/games/megamario/files/patch-src-main.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/files/patch-src-main.cpp Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,20 @@ +--- src/main.cpp.orig 2012-05-06 00:56:40.000000000 +0200 ++++ src/main.cpp 2012-05-06 01:03:55.000000000 +0200 +@@ -61,7 +61,7 @@ + + #endif /* defined __unix__ */ + +- out_logfile.open ("log.txt"); ++ out_logfile.open ("%s/.megamario/log.txt"); + + dictionary * d = iniparser_new(szIniFile); + pixelation = iniparser_getboolean (d, "Mario:Pixelation", 1); +@@ -413,7 +413,7 @@ + + + fstream fin; +-fin.open("mp3music/music_available.dat",ios::in); ++fin.open( DATADIR "mp3music/music_available.dat",ios::in); + if( fin.is_open() ) + { + HighQualityMusicFound=1; Added: head/games/megamario/files/patch-src-player.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/files/patch-src-player.cpp Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,12 @@ +--- src/player.cpp.orig 2012-05-05 20:22:06.000000000 +0200 ++++ src/player.cpp 2012-05-05 21:08:10.000000000 +0200 +@@ -10,7 +10,9 @@ + #include "Global.h" + + //#include ++#ifndef M_PI + #define M_PI 3.141592654 ++#endif + + + #define JUMPS 12 Added: head/games/megamario/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/megamario/pkg-descr Fri Nov 30 19:07:41 2012 (r308023) @@ -0,0 +1,6 @@ +Mega Mario is a Super Mario Bros. 1 clone. +It features everything the original features - with better graphics, +higher resolution, smoother movement and new levels. +The story of mario and Luigi continues in old-school style. + +WWW: http://www.megamario.de/