Date: Sat, 19 Apr 2008 03:50:53 +0400 (MSD) From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/122896: [NEW PORT] games/stransball2: A sequel to Transball and Transball 2 THRUST-type games Message-ID: <20080418235053.06BFA17031@hades.panopticon> Resent-Message-ID: <200804190000.m3J002Nq090511@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 122896 >Category: ports >Synopsis: [NEW PORT] games/stransball2: A sequel to Transball and Transball 2 THRUST-type games >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: Sat Apr 19 00:00:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 7.0-RELEASE i386 >Organization: >Environment: System: FreeBSD hades.panopticon 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Fri Mar 14 14:26:43 MSK 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386 >Description: "Super Transball 2" is the sequel of "Transball" and "Transball 2", Inspired in THRUST type of games (and concretely in ZARA THRUSTA for the Amiga 500). In each level of Transball, the goal is to find the SPHERE, capture it and carry it to the upper part of the level. The main obstacle is the gravity, that impulses you towards the ground. But many other obstacles, canons, tanks, doors, etc. will try to make difficult your journey... WWW: http://www.braingames.getput.com/stransball2/default.asp >How-To-Repeat: >Fix: --- stransball2-1.5.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: # # stransball2 # stransball2/Makefile # stransball2/pkg-descr # stransball2/pkg-plist # stransball2/distinfo # stransball2/files # stransball2/files/patch-sources-Makefile # stransball2/files/patch-sources-main.cpp # echo c - stransball2 mkdir -p stransball2 > /dev/null 2>&1 echo x - stransball2/Makefile sed 's/^X//' >stransball2/Makefile << 'END-of-stransball2/Makefile' X# New ports collection makefile for: stransball2 X# Date created: 07 Apr 2008 X# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> X# X# $FreeBSD$ X# X XPORTNAME= stransball2 XPORTVERSION= 1.5 XCATEGORIES= games XMASTER_SITES= http://www.amdmi3.ru/distfiles/ \ X http://braingames.bugreport.nl/stransball2/ XDISTNAME= ${PORTNAME}-v${PORTVERSION:C/\.//}-linux X XMAINTAINER= amdmi3@amdmi3.ru XCOMMENT= A sequel to Transball and Transball 2 THRUST-type games X XLIB_DEPENDS= SGE.0:${PORTSDIR}/devel/sdl_sge X XUSE_ZIP= yes XUSE_GMAKE= yes XUSE_SDL= sdl image mixer sound XMAKE_ENV= CXX="${CXX}" X XBUILD_WRKSRC= ${WRKSRC}/sources X XPORTDOCS= readme.txt X Xpost-extract: X @${RM} -f ${WRKSRC}/sound/WS_FTP.LOG X Xpost-patch: X @${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} \ X -e 's|demos/|${DATADIR}/&|g; s|graphics/|${DATADIR}/&|g; \ X s|maps/|${DATADIR}/&|g; s|sound/|${DATADIR}/&|g; \ X s|"maps"|"${DATADIR}/maps"|g' X Xdo-install: X ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/stransball2 ${PREFIX}/bin X ${MKDIR} ${DATADIR} X cd ${WRKSRC} && ${COPYTREE_SHARE} 'graphics sound maps demos' ${DATADIR} X 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> END-of-stransball2/Makefile echo x - stransball2/pkg-descr sed 's/^X//' >stransball2/pkg-descr << 'END-of-stransball2/pkg-descr' X"Super Transball 2" is the sequel of "Transball" and "Transball 2", XInspired in THRUST type of games (and concretely in ZARA THRUSTA Xfor the Amiga 500). In each level of Transball, the goal is to find Xthe SPHERE, capture it and carry it to the upper part of the level. XThe main obstacle is the gravity, that impulses you towards the Xground. But many other obstacles, canons, tanks, doors, etc. will Xtry to make difficult your journey... X XWWW: http://www.braingames.getput.com/stransball2/default.asp END-of-stransball2/pkg-descr echo x - stransball2/pkg-plist sed 's/^X//' >stransball2/pkg-plist << 'END-of-stransball2/pkg-plist' Xbin/stransball2 X%%DATADIR%%/demos/demo1.rpl X%%DATADIR%%/demos/demo2.rpl X%%DATADIR%%/demos/demo3.rpl X%%DATADIR%%/demos/demo4.rpl X%%DATADIR%%/graphics/brain.pcx X%%DATADIR%%/graphics/font3.pcx X%%DATADIR%%/graphics/tiles-mask.pcx X%%DATADIR%%/graphics/tiles.pcx X%%DATADIR%%/graphics/tittle.pcx X%%DATADIR%%/maps/canons.map X%%DATADIR%%/maps/map1.map X%%DATADIR%%/maps/map10.map X%%DATADIR%%/maps/map11.map X%%DATADIR%%/maps/map12.map X%%DATADIR%%/maps/map13.map X%%DATADIR%%/maps/map14.map X%%DATADIR%%/maps/map2.map X%%DATADIR%%/maps/map3.map X%%DATADIR%%/maps/map4.map X%%DATADIR%%/maps/map5.map X%%DATADIR%%/maps/map6.map X%%DATADIR%%/maps/map7.map X%%DATADIR%%/maps/map8.map X%%DATADIR%%/maps/map9.map X%%DATADIR%%/maps/sample-pack.lp X%%DATADIR%%/maps/sample-pack/WS_FTP.LOG X%%DATADIR%%/maps/sample-pack/directional.map X%%DATADIR%%/maps/sample-pack/directional2.map X%%DATADIR%%/maps/sample-pack/heavy-snow.map X%%DATADIR%%/maps/second-assault.lp X%%DATADIR%%/maps/second-assault/WS_FTP.LOG X%%DATADIR%%/maps/second-assault/sa-map1.map X%%DATADIR%%/maps/second-assault/sa-map2.map X%%DATADIR%%/maps/second-assault/sa-map3.map X%%DATADIR%%/maps/second-assault/sa-map4.map X%%DATADIR%%/maps/second-assault/sa-map5.map X%%DATADIR%%/maps/second-assault/sa-map6.map X%%DATADIR%%/maps/second-assault/sa-map7.map X%%DATADIR%%/maps/second-assault/sa-map8.map X%%DATADIR%%/maps/transball.lp X%%DATADIR%%/sound/enemyhit.wav X%%DATADIR%%/sound/explosion.wav X%%DATADIR%%/sound/fuel.wav X%%DATADIR%%/sound/shipshot.wav X%%DATADIR%%/sound/shot.wav X%%DATADIR%%/sound/start.wav X%%DATADIR%%/sound/switch.wav X%%DATADIR%%/sound/takeball.wav X%%DATADIR%%/sound/thrust.wav X@dirrm %%DATADIR%%/sound X@dirrm %%DATADIR%%/maps/second-assault X@dirrm %%DATADIR%%/maps/sample-pack X@dirrm %%DATADIR%%/maps X@dirrm %%DATADIR%%/graphics X@dirrm %%DATADIR%%/demos X@dirrm %%DATADIR%% END-of-stransball2/pkg-plist echo x - stransball2/distinfo sed 's/^X//' >stransball2/distinfo << 'END-of-stransball2/distinfo' XMD5 (stransball2-v15-linux.zip) = 317325363253fc253d62d0df76fe0789 XSHA256 (stransball2-v15-linux.zip) = 2552a18b4b59c1d39d7a1312e7efbebf5ac89bddc30f5e188693e841516276bc XSIZE (stransball2-v15-linux.zip) = 302212 END-of-stransball2/distinfo echo c - stransball2/files mkdir -p stransball2/files > /dev/null 2>&1 echo x - stransball2/files/patch-sources-Makefile sed 's/^X//' >stransball2/files/patch-sources-Makefile << 'END-of-stransball2/files/patch-sources-Makefile' X--- sources/Makefile.orig 2005-04-16 21:16:54.000000000 +0400 X+++ sources/Makefile 2008-04-07 01:10:16.000000000 +0400 X@@ -12,12 +12,11 @@ X all: stransball2 X X %.o: %.cpp X- c++ -c -g3 -O3 $< -o $@ `sdl-config --cflags` -I/usr/local/include/SDL X+ ${CXX} ${CXXFLAGS} -c $< -o $@ `${SDL_CONFIG} --cflags` X X # dynamically linked binary: X stransball2: $(OBJS) X- c++ $^ -o $@ `sdl-config --libs` -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_sound -lSGE -I/usr/local/include/SDL X- mv ./stransball2 .. X+ ${CXX} $^ -o $@ `${SDL_CONFIG} --libs` -lSDL_image -lSDL_mixer -lSDL_sound -lSGE X X clean: X rm -f stransball2 END-of-stransball2/files/patch-sources-Makefile echo x - stransball2/files/patch-sources-main.cpp sed 's/^X//' >stransball2/files/patch-sources-main.cpp << 'END-of-stransball2/files/patch-sources-main.cpp' X--- sources/main.cpp.orig 2005-04-16 21:16:54.000000000 +0400 X+++ sources/main.cpp 2008-04-07 01:37:52.000000000 +0400 X@@ -6,6 +6,8 @@ X #include <time.h> X #endif X X+#include <sys/types.h> X+#include <sys/stat.h> X #include <stdio.h> X #include <stdlib.h> X #include "SDL/SDL.h" X@@ -126,6 +128,19 @@ X setupTickCount(); X #endif X X+ if (chdir(getenv("HOME")) != 0) X+ return 0; X+ X+ struct stat sb; X+ if (stat(".stransball2", &sb) != 0 && X+ (mkdir(".stransball2", 0755) != 0 || X+ mkdir(".stransball2/high", 0755) != 0 || X+ mkdir(".stransball2/replays", 0755) != 0)) X+ return 0; X+ X+ if (chdir(".stransball2") != 0) X+ return 0; X+ X int time,act_time; X SDL_Event event; X bool quit = false; END-of-stransball2/files/patch-sources-main.cpp exit --- stransball2-1.5.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?20080418235053.06BFA17031>