mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Add solarconquest 0.2, a space 2D action game with plenty of shooting.
PR: 95385 Submitted by: Dmitry Marakasov <amdmi3@mail.ru>
This commit is contained in:
parent
16ef18761f
commit
9715677bb7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164075
@ -592,6 +592,7 @@
|
||||
SUBDIR += smiley
|
||||
SUBDIR += sokoban
|
||||
SUBDIR += sol
|
||||
SUBDIR += solarconquest
|
||||
SUBDIR += solarwolf
|
||||
SUBDIR += sopwith
|
||||
SUBDIR += spacearyarya
|
||||
|
40
games/solarconquest/Makefile
Normal file
40
games/solarconquest/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# New ports collection makefile for: solarconquest
|
||||
# Date created: 06 Apr 2006
|
||||
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= solarconquest
|
||||
PORTVERSION= 0.2
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://games.sajthelper.com/
|
||||
DISTNAME= SolarConquest
|
||||
|
||||
MAINTAINER= amdmi3@mail.ru
|
||||
COMMENT= Space 2D action game with plenty of shooting
|
||||
|
||||
USE_SDL= sdl mixer image
|
||||
USE_GL= yes
|
||||
USE_DOS2UNIX= makefile source/MenuScreen.h source/main.cpp
|
||||
|
||||
MAKEFILE= makefile
|
||||
MAKE_ENV= CXX="${CXX}"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|images/|${DATADIR}/images/|' \
|
||||
${WRKSRC}/source/main.cpp
|
||||
@${REINPLACE_CMD} -e 's|shapes/|${DATADIR}/shapes/|' \
|
||||
${WRKSRC}/source/main.cpp
|
||||
@${REINPLACE_CMD} -e 's|settings.dat|.solarconquest.rc|' \
|
||||
${WRKSRC}/source/Common.h
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/solar ${PREFIX}/bin/${PORTNAME}
|
||||
${MKDIR} ${DATADIR}/shapes
|
||||
${INSTALL_DATA} ${WRKSRC}/shapes/* ${DATADIR}/shapes
|
||||
${MKDIR} ${DATADIR}/images/fonts
|
||||
${INSTALL_DATA} ${WRKSRC}/images/*.png ${DATADIR}/images
|
||||
${INSTALL_DATA} ${WRKSRC}/images/fonts/* ${DATADIR}/images/fonts
|
||||
|
||||
.include <bsd.port.mk>
|
3
games/solarconquest/distinfo
Normal file
3
games/solarconquest/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (SolarConquest.tar.gz) = 107c89fe58feb2d8f4044c4280f98b08
|
||||
SHA256 (SolarConquest.tar.gz) = 4282c12c01d02990ca6f7e4ba1d068964a633ec86df06b4c7723bb089ec4b38a
|
||||
SIZE (SolarConquest.tar.gz) = 181241
|
11
games/solarconquest/files/patch-makefile
Normal file
11
games/solarconquest/files/patch-makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- makefile.orig Sun Mar 6 16:36:47 2005
|
||||
+++ makefile Thu Apr 6 02:54:20 2006
|
||||
@@ -1,5 +1,5 @@
|
||||
-LIBRARIES = `sdl-config --libs` -L/usr/X11R6/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg
|
||||
-CFLAGS = -w -O3 -I/usr/include/GL `sdl-config --cflags`
|
||||
+LIBRARIES = `${SDL_CONFIG} --libs` -L${X11BASE}/lib -lSDL_mixer -lSDL_image -lGL -lGLU -lpng -ljpeg
|
||||
+CXXFLAGS += `${SDL_CONFIG} --cflags` -I${X11BASE}/include
|
||||
|
||||
all:
|
||||
- g++ $(CFLAGS) -o solar ./source/main.cpp $(LIBRARIES)
|
||||
+ ${CXX} ${CXXFLAGS} -o solar ./source/main.cpp ${LIBRARIES}
|
38
games/solarconquest/files/patch-source-MenuScreen.h
Normal file
38
games/solarconquest/files/patch-source-MenuScreen.h
Normal file
@ -0,0 +1,38 @@
|
||||
--- source/MenuScreen.h.orig Thu Apr 6 03:11:27 2006
|
||||
+++ source/MenuScreen.h Thu Apr 6 03:11:27 2006
|
||||
@@ -646,10 +646,7 @@
|
||||
if (text)
|
||||
{
|
||||
char txt[MAX_STRING_SIZE];
|
||||
- char num[MAX_STRING_SIZE];
|
||||
- gcvt(g_gameSpeed,2,num);
|
||||
- strcpy(txt,"Speed: ");
|
||||
- strncat(txt,num,3);
|
||||
+ sprintf(txt, "Speed: %.2f", g_gameSpeed);
|
||||
text->SetText(txt);
|
||||
}
|
||||
}
|
||||
@@ -751,10 +748,7 @@
|
||||
g_gameSpeed = 0.1;
|
||||
|
||||
char txt[MAX_STRING_SIZE];
|
||||
- char num[MAX_STRING_SIZE];
|
||||
- gcvt(g_gameSpeed,2,num);
|
||||
- strcpy(txt,"Speed: ");
|
||||
- strncat(txt,num,3);
|
||||
+ sprintf(txt, "Speed: %.2f", g_gameSpeed);
|
||||
|
||||
CTextItem* text = (CTextItem*)g_optionsMenuScreen->FindItem(103);
|
||||
if (text)
|
||||
@@ -768,10 +762,7 @@
|
||||
g_gameSpeed = 2.0;
|
||||
|
||||
char txt[MAX_STRING_SIZE];
|
||||
- char num[MAX_STRING_SIZE];
|
||||
- gcvt(g_gameSpeed,2,num);
|
||||
- strcpy(txt,"Speed: ");
|
||||
- strncat(txt,num,3);
|
||||
+ sprintf(txt, "Speed: %.2f", g_gameSpeed);
|
||||
|
||||
CTextItem* text = (CTextItem*)g_optionsMenuScreen->FindItem(103);
|
||||
if (text)
|
19
games/solarconquest/files/patch-source-main.cpp
Normal file
19
games/solarconquest/files/patch-source-main.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
--- source/main.cpp.orig Thu Apr 6 04:19:16 2006
|
||||
+++ source/main.cpp Thu Apr 6 04:19:38 2006
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
//#include "stdafx.h"
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <string.h>
|
||||
#include <SDL.h>
|
||||
#include <SDL_opengl.h>
|
||||
#include <vorbis/vorbisfile.h>
|
||||
@@ -1354,6 +1356,7 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
+ chdir(getenv("HOME"));
|
||||
#ifdef NO_SOUND
|
||||
if (SDL_Init(SDL_INIT_VIDEO) < 0)
|
||||
#else
|
12
games/solarconquest/pkg-descr
Normal file
12
games/solarconquest/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
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/
|
23
games/solarconquest/pkg-plist
Normal file
23
games/solarconquest/pkg-plist
Normal file
@ -0,0 +1,23 @@
|
||||
bin/solarconquest
|
||||
%%DATADIR%%/images/explosion.png
|
||||
%%DATADIR%%/images/explosion_detailed.png
|
||||
%%DATADIR%%/images/fonts/glowfont_template.bmp
|
||||
%%DATADIR%%/images/fonts/smallfont.bmp
|
||||
%%DATADIR%%/shapes/advancedbomber.txt
|
||||
%%DATADIR%%/shapes/advancedbomber_source.txt
|
||||
%%DATADIR%%/shapes/advancedfighter.txt
|
||||
%%DATADIR%%/shapes/advancedfighter_source.txt
|
||||
%%DATADIR%%/shapes/aircraftcarrier.txt
|
||||
%%DATADIR%%/shapes/aircraftcarrier_source.txt
|
||||
%%DATADIR%%/shapes/destroyer.txt
|
||||
%%DATADIR%%/shapes/destroyer_source.txt
|
||||
%%DATADIR%%/shapes/laserturret.txt
|
||||
%%DATADIR%%/shapes/laserturret_source.txt
|
||||
%%DATADIR%%/shapes/spacestation.txt
|
||||
%%DATADIR%%/shapes/spacestation_source.txt
|
||||
%%DATADIR%%/shapes/turretstation.txt
|
||||
%%DATADIR%%/shapes/turretstation_source.txt
|
||||
@dirrm %%DATADIR%%/images/fonts
|
||||
@dirrm %%DATADIR%%/images
|
||||
@dirrm %%DATADIR%%/shapes
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user