Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2012 22:11:15 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/167893: [NEW PORT] games/megamario: Mega Mario is a Super Mario Bros 1 clone
Message-ID:  <20120514201119.27BF9106564A@hub.freebsd.org>
Resent-Message-ID: <201205142020.q4EKK2K7076072@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167893
>Category:       ports
>Synopsis:       [NEW PORT] games/megamario: Mega Mario is a Super Mario Bros 1 clone
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 14 20:20:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:
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/

Generated manually, tested with RedPorts and port test, sent with FreeBSD Port Tools 0.99_6 (mode: new)
>How-To-Repeat:
>Fix:

--- .shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	megamario
#	megamario/Makefile
#	megamario/pkg-descr
#	megamario/distinfo
#	megamario/files
#	megamario/files/patch-Makefile
#	megamario/files/patch-src-player.cpp
#	megamario/files/patch-src-global.cpp
#	megamario/files/patch-src-levels.h
#	megamario/files/patch-src-functions.cpp
#	megamario/files/patch-src-main.cpp
#
echo c - megamario
mkdir -p megamario > /dev/null 2>&1
echo x - megamario/Makefile
sed 's/^X//' >megamario/Makefile << '9e74a518394d9c87b244baffaf13b56d'
X# New Ports collection makefile for:	megamario
X# Date created:		2012-05-09
X# Whom:			nemysis@gmx.ch
X#
X# $FreeBSD$
X#
X
XPORTNAME=	megamario
XPORTVERSION=	1.7
XCATEGORIES=	games
XMASTER_SITES=	SF/mmario/Mega%20Mario%20Full%20Game/Mega%20Mario%20v1.7%20%28Full%20Game%2C%20high%20Quality%20music%29/
XDISTNAME=	MegaMario_v1.7_full
X
XMAINTAINER=	nemysis@gmx.ch
XCOMMENT=	Mega Mario is a Super Mario Bros 1 clone
X
XLICENSE=	LGPL21
X
XWRKSRC=		${WRKDIR}/${DISTNAME}
X
XFETCH_ARGS?=	-Fpr
XUSE_ZIP=	yes
XEXTRACT_AFTER_ARGS=	-d ${WRKSRC}
XUSE_GMAKE=	yes
XUSE_DOS2UNIX=	*.cpp *.h *.ini Makefile* *.txt *.desktop
XALL_TARGET=	${PORTNAME}
XUSE_SDL=	sdl image mixer ttf
XUSE_GL=		glu
XMAKE_JOBS_SAFE=	yes
X
Xpre-extract:
X	@${MKDIR} ${WRKDIR}/${DISTNAME}
X
XPLIST_FILES=	bin/megamario \
X			share/applications/${PORTNAME}.desktop \
X			share/pixmaps/${PORTNAME}.png
XPLIST_DIRSTRY=	share/applications
X
XPORTDATA=	*
XPORTDOCS=	CONTROLS.txt linux.txt readme.txt
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/usr/share/pixmaps|${PREFIX}/share/pixmaps|' \
X		${WRKSRC}/megamario.desktop
X	@${REINPLACE_CMD} -e 's|slidebar.PNG|slidebar.png|' \
X		${WRKSRC}/data/levels/Edit2/main ${WRKSRC}/data/levels/3_2/main
X	@(cd ${WRKSRC}/help && ${MV} editor_R*.PNG editor_Roehren.png)
X	@for i in `${FIND} ${WRKSRC} -name \*.JPG -or -name \*.PNG`; do \
X		${MV} $$i `echo $$i | ${SED} -e 's/PNG/png/;s/JPG/jpg/'`; done
X
Xpost-install:
X# Data
X	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "help mp3music screens" ${DATADIR})
X
X# Pixmaps and Desktop
X	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
X	${MKDIR} ${PREFIX}/share/applications
X	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications/
X
X# Documentation
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.  for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.  endfor
X.endif
X
X.include <bsd.port.mk>
9e74a518394d9c87b244baffaf13b56d
echo x - megamario/pkg-descr
sed 's/^X//' >megamario/pkg-descr << '52a4b5b98944ee23f10bff7452b8bce7'
XMega Mario is a Super Mario Bros. 1 clone.
XIt features everything the original features - with better graphics,
Xhigher resolution, smoother movement and new levels.
XThe story of mario and Luigi continues  in old-school style.
X
XWWW: http://www.megamario.de/
52a4b5b98944ee23f10bff7452b8bce7
echo x - megamario/distinfo
sed 's/^X//' >megamario/distinfo << 'cb8cb214ad7b54e6de7d8f0ff6ccbf5c'
XSHA256 (MegaMario_v1.7_full.zip) = 243ebf03cb1e5c5e7cead48d9a988ffb9a1c94f9427f71ea559ad047486c9e72
XSIZE (MegaMario_v1.7_full.zip) = 26467748
cb8cb214ad7b54e6de7d8f0ff6ccbf5c
echo c - megamario/files
mkdir -p megamario/files > /dev/null 2>&1
echo x - megamario/files/patch-Makefile
sed 's/^X//' >megamario/files/patch-Makefile << '5e2d28525b1ff9d4a0d359bba2a05d51'
XIndex: Makefile
X@@ -1,8 +1,7 @@
X-PREFIX  = /home/opt
X DATADIR = $(PREFIX)/share/$(TARGET)
X-CFLAGS  = -g -Wall -O2
X+CFLAGS += $(shell sdl-config --cflags)
X CXXFLAGS= $(CFLAGS)
X-LDFLAGS = -lSDL -lSDL_mixer -lSDL_ttf -lSDL_image -lGL
X+LDFLAGS += $(shell sdl-config --libs) -lSDL -lSDL_mixer -lSDL_ttf -lSDL_image -lGL -lm
X DEFINES = -DDATADIR=\"$(DATADIR)/\"
X OBJS    = src/bonus.o src/gamepad.o src/killerblume.o src/player.o \
X   src/bowser.o      src/global.o    src/levels.o      src/spiny.o  \
5e2d28525b1ff9d4a0d359bba2a05d51
echo x - megamario/files/patch-src-player.cpp
sed 's/^X//' >megamario/files/patch-src-player.cpp << '3a7c47e78590c42577811e2aae958d20'
X--- src/player.cpp.orig	2012-05-05 20:22:06.000000000 +0200
X+++ src/player.cpp	2012-05-05 21:08:10.000000000 +0200
X@@ -10,7 +10,9 @@
X #include "Global.h"
X 
X //#include <Math.h>
X+#ifndef M_PI
X #define M_PI 3.141592654
X+#endif
X 
X 
X #define JUMPS 12
3a7c47e78590c42577811e2aae958d20
echo x - megamario/files/patch-src-global.cpp
sed 's/^X//' >megamario/files/patch-src-global.cpp << '3b0aa3101172d4fdd63bac61060dcc1f'
X--- src/global.cpp.orig	2012-05-06 00:44:34.000000000 +0200
X+++ src/global.cpp	2012-05-06 00:50:32.000000000 +0200
X@@ -9,6 +9,7 @@
X 
X #include "Global.h"
X #include "unixutils.h"
X+#include <limits.h>
X 
X 
X 
3b0aa3101172d4fdd63bac61060dcc1f
echo x - megamario/files/patch-src-levels.h
sed 's/^X//' >megamario/files/patch-src-levels.h << '94c0b5774434c0ddad603feb88ce450f'
X--- src/levels.h.orig	2012-05-06 00:44:34.000000000 +0200
X+++ src/levels.h	2012-05-06 00:52:50.000000000 +0200
X@@ -8,7 +8,7 @@
X 
X #ifndef __LEVELS_H__
X #define __LEVELS_H__
X-
X+#include <limits.h>
X 
X class cScene
X {
94c0b5774434c0ddad603feb88ce450f
echo x - megamario/files/patch-src-functions.cpp
sed 's/^X//' >megamario/files/patch-src-functions.cpp << 'a0d4e0fbedfb2f52a4200ac99e184274'
X--- src/functions.cpp.orig	2012-05-06 00:56:40.000000000 +0200
X+++ src/functions.cpp	2012-05-06 01:00:37.000000000 +0200
X@@ -447,7 +447,7 @@
X 	}
X 	else
X 	{
X-		sprintf(tmp, "mp3music/%s",filename);
X+		sprintf(tmp, DATADIR "mp3music/%s",filename);
X 		tmp[strlen(tmp)-3]='m';
X 		tmp[strlen(tmp)-2]='p';
X 		tmp[strlen(tmp)-1]='3';
a0d4e0fbedfb2f52a4200ac99e184274
echo x - megamario/files/patch-src-main.cpp
sed 's/^X//' >megamario/files/patch-src-main.cpp << '904b3ffa9778e7bc293e6d925639c3d6'
X--- src/main.cpp.orig	2012-05-06 00:56:40.000000000 +0200
X+++ src/main.cpp	2012-05-06 01:03:55.000000000 +0200
X@@ -61,7 +61,7 @@
X 
X #endif /* defined __unix__ */
X 
X-	out_logfile.open ("log.txt");
X+	out_logfile.open ("%s/.megamario/log.txt");
X 
X 	dictionary * d = iniparser_new(szIniFile);
X 	pixelation = iniparser_getboolean (d, "Mario:Pixelation", 1);
X@@ -413,7 +413,7 @@
X 
X 
X fstream fin;
X-fin.open("mp3music/music_available.dat",ios::in);
X+fin.open( DATADIR "mp3music/music_available.dat",ios::in);
X if( fin.is_open() )
X {
X 	HighQualityMusicFound=1;
904b3ffa9778e7bc293e6d925639c3d6
exit
--- .shar ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120514201119.27BF9106564A>