ports/95385: New port: games/solarconquest Space 2D action game with plenty of shooting
Dmitry Marakasov
amdmi3 at mail.ru
Thu Apr 6 00:30:21 UTC 2006
>Number: 95385
>Category: ports
>Synopsis: New port: games/solarconquest Space 2D action game with plenty of shooting
>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: Thu Apr 06 00:30:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Marakasov
>Release: FreeBSD 6.0-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #1: Fri Jan 27 12:07:19 MSK 2006 amdmi3 at hades.panopticon:/usr/obj/usr/src/sys/HADES i386
>Description:
An expedition to another solar system was supposed to be the biggest
event in mankind's history. While it achieved such glory, it also
caused a corrupt Admrial to gain new territory.
You are part of a small rebel force. Your task is to keep Admrial
Moretti's forces at bay, until the Earth Space Forces can send a
rescue team.
Solar Conquest is a 2D action game that takes place in space. You
pilot a fighter and fight alongside dozens of allies. Battles can
range from just a dozen a team, or up to all out war with hundreds
of ships per team.
WWW: http://games.sajthelper.com/
>How-To-Repeat:
>Fix:
--- solarconquest-0.2.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:
#
# solarconquest
# solarconquest/distinfo
# solarconquest/Makefile
# solarconquest/pkg-plist
# solarconquest/files
# solarconquest/files/patch-makefile
# solarconquest/files/patch-source-MenuScreen.h
# solarconquest/files/patch-source-main.cpp
# solarconquest/pkg-descr
#
echo c - solarconquest
mkdir -p solarconquest > /dev/null 2>&1
echo x - solarconquest/distinfo
sed 's/^X//' >solarconquest/distinfo << 'END-of-solarconquest/distinfo'
XMD5 (SolarConquest.tar.gz) = 107c89fe58feb2d8f4044c4280f98b08
XSHA256 (SolarConquest.tar.gz) = 4282c12c01d02990ca6f7e4ba1d068964a633ec86df06b4c7723bb089ec4b38a
XSIZE (SolarConquest.tar.gz) = 181241
END-of-solarconquest/distinfo
echo x - solarconquest/Makefile
sed 's/^X//' >solarconquest/Makefile << 'END-of-solarconquest/Makefile'
X# New ports collection makefile for: solarconquest
X# Date created: 06 Apr 2006
X# Whom: Dmitry Marakasov <amdmi3 at mail.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME= solarconquest
XPORTVERSION= 0.2
XCATEGORIES= games
XMASTER_SITES= http://games.sajthelper.com/
XDISTNAME= SolarConquest
X
XMAINTAINER= amdmi3 at mail.ru
XCOMMENT= Space 2D action game with plenty of shooting
X
XUSE_SDL= sdl mixer image
XUSE_GL= yes
XUSE_DOS2UNIX= yes
X
XMAKEFILE= makefile
XMAKE_ENV= CXX="${CXX}"
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|images/|${DATADIR}/images/|' ${WRKSRC}/source/main.cpp
X @${REINPLACE_CMD} -e 's|shapes/|${DATADIR}/shapes/|' ${WRKSRC}/source/main.cpp
X @${REINPLACE_CMD} -e 's|settings.dat|.solarconquest.rc|' ${WRKSRC}/source/Common.h
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/solar ${PREFIX}/bin/${PORTNAME}
X ${MKDIR} ${DATADIR}/shapes
X ${INSTALL_DATA} ${WRKSRC}/shapes/* ${DATADIR}/shapes
X ${MKDIR} ${DATADIR}/images/fonts
X ${INSTALL_DATA} ${WRKSRC}/images/*.png ${DATADIR}/images
X ${INSTALL_DATA} ${WRKSRC}/images/fonts/* ${DATADIR}/images/fonts
X
X.include <bsd.port.mk>
END-of-solarconquest/Makefile
echo x - solarconquest/pkg-plist
sed 's/^X//' >solarconquest/pkg-plist << 'END-of-solarconquest/pkg-plist'
Xbin/solarconquest
X%%DATADIR%%/images/explosion.png
X%%DATADIR%%/images/explosion_detailed.png
X%%DATADIR%%/images/fonts/glowfont_template.bmp
X%%DATADIR%%/images/fonts/smallfont.bmp
X%%DATADIR%%/shapes/advancedbomber.txt
X%%DATADIR%%/shapes/advancedbomber_source.txt
X%%DATADIR%%/shapes/advancedfighter.txt
X%%DATADIR%%/shapes/advancedfighter_source.txt
X%%DATADIR%%/shapes/aircraftcarrier.txt
X%%DATADIR%%/shapes/aircraftcarrier_source.txt
X%%DATADIR%%/shapes/destroyer.txt
X%%DATADIR%%/shapes/destroyer_source.txt
X%%DATADIR%%/shapes/laserturret.txt
X%%DATADIR%%/shapes/laserturret_source.txt
X%%DATADIR%%/shapes/spacestation.txt
X%%DATADIR%%/shapes/spacestation_source.txt
X%%DATADIR%%/shapes/turretstation.txt
X%%DATADIR%%/shapes/turretstation_source.txt
X at dirrm %%DATADIR%%/images/fonts
X at dirrm %%DATADIR%%/images
X at dirrm %%DATADIR%%/shapes
X at dirrm %%DATADIR%%
END-of-solarconquest/pkg-plist
echo c - solarconquest/files
mkdir -p solarconquest/files > /dev/null 2>&1
echo x - solarconquest/files/patch-makefile
sed 's/^X//' >solarconquest/files/patch-makefile << 'END-of-solarconquest/files/patch-makefile'
X--- makefile.orig Sun Mar 6 16:36:47 2005
X+++ makefile Thu Apr 6 02:54:20 2006
X@@ -1,5 +1,5 @@
X-LIBRARIES = `sdl-config --libs` -L/usr/X11R6/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg
X-CFLAGS = -w -O3 -I/usr/include/GL `sdl-config --cflags`
X+LIBRARIES = `${SDL_CONFIG} --libs` -L${X11BASE}/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg
X+CXXFLAGS += `${SDL_CONFIG} --cflags` -I${X11BASE}/include
X
X all:
X- g++ $(CFLAGS) -o solar ./source/main.cpp $(LIBRARIES)
X+ ${CXX} ${CXXFLAGS} -o solar ./source/main.cpp ${LIBRARIES}
END-of-solarconquest/files/patch-makefile
echo x - solarconquest/files/patch-source-MenuScreen.h
sed 's/^X//' >solarconquest/files/patch-source-MenuScreen.h << 'END-of-solarconquest/files/patch-source-MenuScreen.h'
X--- source/MenuScreen.h.orig Thu Apr 6 03:11:27 2006
X+++ source/MenuScreen.h Thu Apr 6 03:11:27 2006
X@@ -646,10 +646,7 @@
X if (text)
X {
X char txt[MAX_STRING_SIZE];
X- char num[MAX_STRING_SIZE];
X- gcvt(g_gameSpeed,2,num);
X- strcpy(txt,"Speed: ");
X- strncat(txt,num,3);
X+ sprintf(txt, "Speed: %.2f", g_gameSpeed);
X text->SetText(txt);
X }
X }
X@@ -751,10 +748,7 @@
X g_gameSpeed = 0.1;
X
X char txt[MAX_STRING_SIZE];
X- char num[MAX_STRING_SIZE];
X- gcvt(g_gameSpeed,2,num);
X- strcpy(txt,"Speed: ");
X- strncat(txt,num,3);
X+ sprintf(txt, "Speed: %.2f", g_gameSpeed);
X
X CTextItem* text = (CTextItem*)g_optionsMenuScreen->FindItem(103);
X if (text)
X@@ -768,10 +762,7 @@
X g_gameSpeed = 2.0;
X
X char txt[MAX_STRING_SIZE];
X- char num[MAX_STRING_SIZE];
X- gcvt(g_gameSpeed,2,num);
X- strcpy(txt,"Speed: ");
X- strncat(txt,num,3);
X+ sprintf(txt, "Speed: %.2f", g_gameSpeed);
X
X CTextItem* text = (CTextItem*)g_optionsMenuScreen->FindItem(103);
X if (text)
END-of-solarconquest/files/patch-source-MenuScreen.h
echo x - solarconquest/files/patch-source-main.cpp
sed 's/^X//' >solarconquest/files/patch-source-main.cpp << 'END-of-solarconquest/files/patch-source-main.cpp'
X--- source/main.cpp.orig Thu Apr 6 04:19:16 2006
X+++ source/main.cpp Thu Apr 6 04:19:38 2006
X@@ -19,6 +19,8 @@
X
X //#include "stdafx.h"
X
X+#include <unistd.h>
X+#include <string.h>
X #include <SDL.h>
X #include <SDL_opengl.h>
X #include <vorbis/vorbisfile.h>
X@@ -1354,6 +1356,7 @@
X
X int main(int argc, char **argv)
X {
X+ chdir(getenv("HOME"));
X #ifdef NO_SOUND
X if (SDL_Init(SDL_INIT_VIDEO) < 0)
X #else
END-of-solarconquest/files/patch-source-main.cpp
echo x - solarconquest/pkg-descr
sed 's/^X//' >solarconquest/pkg-descr << 'END-of-solarconquest/pkg-descr'
XAn expedition to another solar system was supposed to be the biggest
Xevent in mankind's history. While it achieved such glory, it also
Xcaused a corrupt Admrial to gain new territory.
X
XYou are part of a small rebel force. Your task is to keep Admrial
XMoretti's forces at bay, until the Earth Space Forces can send a
Xrescue team.
X
XSolar Conquest is a 2D action game that takes place in space. You
Xpilot a fighter and fight alongside dozens of allies. Battles can
Xrange from just a dozen a team, or up to all out war with hundreds
Xof ships per team.
X
XWWW: http://games.sajthelper.com/
END-of-solarconquest/pkg-descr
exit
--- solarconquest-0.2.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list