Import games/gigalomania, an open source 2D real time strategy god game.
macppc testing from cwen@, ok solene@ Gigalomania is an open source 2D Real Time Strategy god game. The gameplay consists of researching and developing new technology with which to conquer your enemies, from rocks and sticks to nuclear weapons and spaceships. You can advance through ten different ages, from the stone age to the future. There are 28 different maps to play through.
This commit is contained in:
parent
461f7ad539
commit
2131815904
33
games/gigalomania/Makefile
Normal file
33
games/gigalomania/Makefile
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# $OpenBSD: Makefile,v 1.1.1.1 2019/12/17 16:17:06 bcallah Exp $
|
||||||
|
|
||||||
|
COMMENT = open source 2D real time strategy god game
|
||||||
|
DISTNAME = gigalomania-1.0.1
|
||||||
|
CATEGORIES = games x11
|
||||||
|
|
||||||
|
HOMEPAGE = http://gigalomania.sourceforge.net/
|
||||||
|
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
|
||||||
|
|
||||||
|
# GPLv2+
|
||||||
|
PERMIT_PACKAGE = Yes
|
||||||
|
|
||||||
|
WANTLIB += ${COMPILER_LIBCXX} SDL2 SDL2_image SDL2_mixer c m
|
||||||
|
|
||||||
|
MASTER_SITES = https://mirrors.nycbug.org/pub/distfiles/
|
||||||
|
|
||||||
|
COMPILER = base-clang ports-gcc
|
||||||
|
|
||||||
|
LIB_DEPENDS = devel/sdl2-image \
|
||||||
|
devel/sdl2-mixer
|
||||||
|
|
||||||
|
RUN_DEPENDS = devel/desktop-file-utils
|
||||||
|
|
||||||
|
MAKE_FLAGS = CXX="${CXX}" \
|
||||||
|
CXXFLAGS="${CXXFLAGS} -DDATADIR='\"${LOCALBASE}/share/gigalomania\"'"
|
||||||
|
|
||||||
|
NO_TEST = Yes
|
||||||
|
|
||||||
|
do-gen:
|
||||||
|
sed -i 's,$${TRUEPREFIX},${TRUEPREFIX},g' \
|
||||||
|
${WRKSRC}/gigalomania.desktop
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
2
games/gigalomania/distinfo
Normal file
2
games/gigalomania/distinfo
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SHA256 (gigalomania-1.0.1.tar.gz) = zIgX4H9A34dggm4m2B34NZTLcewXsEAtS8jfaNFuJW4=
|
||||||
|
SIZE (gigalomania-1.0.1.tar.gz) = 26935105
|
54
games/gigalomania/patches/patch-Makefile
Normal file
54
games/gigalomania/patches/patch-Makefile
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
$OpenBSD: patch-Makefile,v 1.1.1.1 2019/12/17 16:17:06 bcallah Exp $
|
||||||
|
|
||||||
|
Fix compiler invocation, CXXFLAGS, and installation procedure.
|
||||||
|
|
||||||
|
Index: Makefile
|
||||||
|
--- Makefile.orig
|
||||||
|
+++ Makefile
|
||||||
|
@@ -1,5 +1,3 @@
|
||||||
|
-CC=g++
|
||||||
|
-CCFLAGS=-O2 -Wall
|
||||||
|
CFILES=game.cpp gamestate.cpp gui.cpp image.cpp main.cpp panel.cpp player.cpp resources.cpp screen.cpp sector.cpp sound.cpp tutorial.cpp utils.cpp TinyXML/tinyxml.cpp TinyXML/tinyxmlerror.cpp TinyXML/tinyxmlparser.cpp
|
||||||
|
HFILES=game.h gamestate.h gui.h image.h panel.h player.h resources.h screen.h sector.h sound.h tutorial.h utils.h common.h stdafx.h TinyXML/tinyxml.h
|
||||||
|
OFILES=game.o gamestate.o gui.o image.o panel.o player.o resources.o screen.o sector.o sound.o tutorial.o utils.o main.o TinyXML/tinyxml.o TinyXML/tinyxmlerror.o TinyXML/tinyxmlparser.o
|
||||||
|
@@ -12,27 +10,27 @@ LIBS=-lSDL2_image -lSDL2_mixer
|
||||||
|
all: $(APP)
|
||||||
|
|
||||||
|
$(APP): $(OFILES) $(HFILES) $(CFILES)
|
||||||
|
- $(CC) $(OFILES) $(CCFLAGS) $(LINKPATH) $(LIBS) -o $(APP)
|
||||||
|
+ $(CXX) $(OFILES) $(CCFLAGS) $(LINKPATH) $(LIBS) -o $(APP)
|
||||||
|
|
||||||
|
.cpp.o:
|
||||||
|
- $(CC) $(CCFLAGS) -O2 $(INC) -c $< -o $@
|
||||||
|
+ $(CXX) $(CXXFLAGS) $(INC) -c $< -o $@
|
||||||
|
|
||||||
|
# REMEMBER to update debian/dirs if the system directories that we use are changed!!!
|
||||||
|
install: $(APP)
|
||||||
|
- mkdir -p $(DESTDIR)/opt/gigalomania # -p so we don't fail if folder already exists
|
||||||
|
- cp $(APP) $(DESTDIR)/opt/gigalomania
|
||||||
|
- cp readme.html $(DESTDIR)/opt/gigalomania
|
||||||
|
- cp -a gfx/ $(DESTDIR)/opt/gigalomania # -a need to copy permissions etc
|
||||||
|
- cp -a islands/ $(DESTDIR)/opt/gigalomania
|
||||||
|
- cp -a music/ $(DESTDIR)/opt/gigalomania
|
||||||
|
- cp -a sound/ $(DESTDIR)/opt/gigalomania
|
||||||
|
+ mkdir -p $(PREFIX)/share/gigalomania # -p so we don't fail if folder already exists
|
||||||
|
+ cp $(APP) $(PREFIX)/bin/gigalomania
|
||||||
|
+ cp readme.html $(PREFIX)/share/gigalomania
|
||||||
|
+ cp -a gfx/ $(PREFIX)/share/gigalomania # -a need to copy permissions etc
|
||||||
|
+ cp -a islands/ $(PREFIX)/share/gigalomania
|
||||||
|
+ cp -a music/ $(PREFIX)/share/gigalomania
|
||||||
|
+ cp -a sound/ $(PREFIX)/share/gigalomania
|
||||||
|
# needed for DESTDIR option:
|
||||||
|
- mkdir -p $(DESTDIR)/usr/share/applications
|
||||||
|
- cp gigalomania.desktop $(DESTDIR)/usr/share/applications/
|
||||||
|
+ mkdir -p $(PREFIX)/share/applications
|
||||||
|
+ cp gigalomania.desktop $(PREFIX)/share/applications/
|
||||||
|
#cp gigalomania_fullscreen.desktop $(DESTDIR)/usr/share/applications/
|
||||||
|
# needed for DESTDIR option:
|
||||||
|
- mkdir -p $(DESTDIR)/usr/share/pixmaps
|
||||||
|
- cp gigalomania64.png $(DESTDIR)/usr/share/pixmaps/
|
||||||
|
+ mkdir -p $(PREFIX)/share/pixmaps
|
||||||
|
+ cp gigalomania64.png $(PREFIX)/share/pixmaps/
|
||||||
|
# REMEMBER to update debian/dirs if the system directories that we use are changed!!!
|
||||||
|
|
||||||
|
uninstall:
|
18
games/gigalomania/patches/patch-gigalomania_desktop
Normal file
18
games/gigalomania/patches/patch-gigalomania_desktop
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
$OpenBSD: patch-gigalomania_desktop,v 1.1.1.1 2019/12/17 16:17:06 bcallah Exp $
|
||||||
|
|
||||||
|
Correct paths.
|
||||||
|
|
||||||
|
Index: gigalomania.desktop
|
||||||
|
--- gigalomania.desktop.orig
|
||||||
|
+++ gigalomania.desktop
|
||||||
|
@@ -1,8 +1,8 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Gigalomania
|
||||||
|
Comment=2D RTS Game
|
||||||
|
-Exec=/opt/gigalomania/gigalomania
|
||||||
|
-Path=/opt/gigalomania/
|
||||||
|
+Exec=${TRUEPREFIX}/bin/gigalomania
|
||||||
|
+Path=${TRUEPREFIX}/share/gigalomania
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Icon=gigalomania64
|
14
games/gigalomania/patches/patch-stdafx_h
Normal file
14
games/gigalomania/patches/patch-stdafx_h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
$OpenBSD: patch-stdafx_h,v 1.1.1.1 2019/12/17 16:17:06 bcallah Exp $
|
||||||
|
|
||||||
|
Fix include line.
|
||||||
|
|
||||||
|
Index: stdafx.h
|
||||||
|
--- stdafx.h.orig
|
||||||
|
+++ stdafx.h
|
||||||
|
@@ -20,5 +20,5 @@
|
||||||
|
#elif defined(__MORPHOS__)
|
||||||
|
#include <SDL/SDL.h>
|
||||||
|
#else
|
||||||
|
-#include <sdl.h>
|
||||||
|
+#include <SDL.h>
|
||||||
|
#endif
|
5
games/gigalomania/pkg/DESCR
Normal file
5
games/gigalomania/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Gigalomania is an open source 2D Real Time Strategy god game. The
|
||||||
|
gameplay consists of researching and developing new technology with
|
||||||
|
which to conquer your enemies, from rocks and sticks to nuclear weapons
|
||||||
|
and spaceships. You can advance through ten different ages, from the
|
||||||
|
stone age to the future. There are 28 different maps to play through.
|
167
games/gigalomania/pkg/PLIST
Normal file
167
games/gigalomania/pkg/PLIST
Normal file
@ -0,0 +1,167 @@
|
|||||||
|
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/12/17 16:17:06 bcallah Exp $
|
||||||
|
@bin bin/gigalomania
|
||||||
|
share/applications/gigalomania.desktop
|
||||||
|
share/gigalomania/
|
||||||
|
share/gigalomania/gfx/
|
||||||
|
share/gigalomania/gfx/attacker_ammo.png
|
||||||
|
share/gigalomania/gfx/attacker_flying.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_0_0.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_0_1.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_0_2.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_0_3.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_10_0.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_10_1.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_10_2.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_10_3.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_1_0.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_1_1.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_1_2.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_1_3.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_2_0.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_2_1.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_2_2.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_2_3.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_3_0.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_3_1.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_3_2.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_3_3.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_4_0.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_4_1.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_4_2.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_4_3.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_5_0.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_5_1.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_5_2.png
|
||||||
|
share/gigalomania/gfx/attacker_walking_5_3.png
|
||||||
|
share/gigalomania/gfx/bigboulder.png
|
||||||
|
share/gigalomania/gfx/bones.png
|
||||||
|
share/gigalomania/gfx/boulders.png
|
||||||
|
share/gigalomania/gfx/boulders2.png
|
||||||
|
share/gigalomania/gfx/building_factory_4.png
|
||||||
|
share/gigalomania/gfx/building_factory_5.png
|
||||||
|
share/gigalomania/gfx/building_factory_6.png
|
||||||
|
share/gigalomania/gfx/building_factory_7.png
|
||||||
|
share/gigalomania/gfx/building_factory_8.png
|
||||||
|
share/gigalomania/gfx/building_lab_5.png
|
||||||
|
share/gigalomania/gfx/building_lab_6.png
|
||||||
|
share/gigalomania/gfx/building_lab_7.png
|
||||||
|
share/gigalomania/gfx/building_lab_8.png
|
||||||
|
share/gigalomania/gfx/building_mine_3.png
|
||||||
|
share/gigalomania/gfx/building_mine_4.png
|
||||||
|
share/gigalomania/gfx/building_mine_5.png
|
||||||
|
share/gigalomania/gfx/building_mine_6.png
|
||||||
|
share/gigalomania/gfx/building_mine_7.png
|
||||||
|
share/gigalomania/gfx/building_mine_8.png
|
||||||
|
share/gigalomania/gfx/building_tower_0.png
|
||||||
|
share/gigalomania/gfx/building_tower_1.png
|
||||||
|
share/gigalomania/gfx/building_tower_2.png
|
||||||
|
share/gigalomania/gfx/building_tower_3.png
|
||||||
|
share/gigalomania/gfx/building_tower_4.png
|
||||||
|
share/gigalomania/gfx/building_tower_5.png
|
||||||
|
share/gigalomania/gfx/building_tower_6.png
|
||||||
|
share/gigalomania/gfx/building_tower_7.png
|
||||||
|
share/gigalomania/gfx/building_tower_8.png
|
||||||
|
share/gigalomania/gfx/building_tower_9.png
|
||||||
|
share/gigalomania/gfx/deadtree1_00.png
|
||||||
|
share/gigalomania/gfx/defender_9.png
|
||||||
|
share/gigalomania/gfx/defenders.png
|
||||||
|
share/gigalomania/gfx/explosions_test4.png
|
||||||
|
share/gigalomania/gfx/features.png
|
||||||
|
share/gigalomania/gfx/font.png
|
||||||
|
share/gigalomania/gfx/font_large.png
|
||||||
|
share/gigalomania/gfx/grass.png
|
||||||
|
share/gigalomania/gfx/grasses01.png
|
||||||
|
share/gigalomania/gfx/grasses02.png
|
||||||
|
share/gigalomania/gfx/grasses04.png
|
||||||
|
share/gigalomania/gfx/grasses05.png
|
||||||
|
share/gigalomania/gfx/grave1.png
|
||||||
|
share/gigalomania/gfx/icons.png
|
||||||
|
share/gigalomania/gfx/icons64.png
|
||||||
|
share/gigalomania/gfx/plant.png
|
||||||
|
share/gigalomania/gfx/player_heads_alliance.png
|
||||||
|
share/gigalomania/gfx/player_heads_select.png
|
||||||
|
share/gigalomania/gfx/rocks.png
|
||||||
|
share/gigalomania/gfx/shrub2-01.png
|
||||||
|
share/gigalomania/gfx/skulls.png
|
||||||
|
share/gigalomania/gfx/slabs.png
|
||||||
|
share/gigalomania/gfx/starfield.jpg
|
||||||
|
share/gigalomania/gfx/stars.jpg
|
||||||
|
share/gigalomania/gfx/swirl01.png
|
||||||
|
share/gigalomania/gfx/tree2_00.png
|
||||||
|
share/gigalomania/gfx/tree2_01.png
|
||||||
|
share/gigalomania/gfx/tree2_02.png
|
||||||
|
share/gigalomania/gfx/tree2_03.png
|
||||||
|
share/gigalomania/gfx/tree3_00.png
|
||||||
|
share/gigalomania/gfx/tree3_01.png
|
||||||
|
share/gigalomania/gfx/tree3_02.png
|
||||||
|
share/gigalomania/gfx/tree3_03.png
|
||||||
|
share/gigalomania/gfx/tree5_00.png
|
||||||
|
share/gigalomania/gfx/tree5_01.png
|
||||||
|
share/gigalomania/gfx/tree5_02.png
|
||||||
|
share/gigalomania/gfx/tree5_03.png
|
||||||
|
share/gigalomania/gfx/weed01.png
|
||||||
|
share/gigalomania/gfx/weed02.png
|
||||||
|
share/gigalomania/gfx/weed03.png
|
||||||
|
share/gigalomania/gfx/weed04.png
|
||||||
|
share/gigalomania/islands/
|
||||||
|
share/gigalomania/islands/0mega.map
|
||||||
|
share/gigalomania/islands/alpha.map
|
||||||
|
share/gigalomania/islands/binary.map
|
||||||
|
share/gigalomania/islands/castle.map
|
||||||
|
share/gigalomania/islands/devil.map
|
||||||
|
share/gigalomania/islands/eep.map
|
||||||
|
share/gigalomania/islands/final.map
|
||||||
|
share/gigalomania/islands/font.map
|
||||||
|
share/gigalomania/islands/globe.map
|
||||||
|
share/gigalomania/islands/home.map
|
||||||
|
share/gigalomania/islands/infinity.map
|
||||||
|
share/gigalomania/islands/just.map
|
||||||
|
share/gigalomania/islands/koala.map
|
||||||
|
share/gigalomania/islands/loop.map
|
||||||
|
share/gigalomania/islands/moon.map
|
||||||
|
share/gigalomania/islands/ninth.map
|
||||||
|
share/gigalomania/islands/oxygen.map
|
||||||
|
share/gigalomania/islands/polar.map
|
||||||
|
share/gigalomania/islands/quart.map
|
||||||
|
share/gigalomania/islands/rare.map
|
||||||
|
share/gigalomania/islands/semi.map
|
||||||
|
share/gigalomania/islands/toxic.map
|
||||||
|
share/gigalomania/islands/universal.map
|
||||||
|
share/gigalomania/islands/vine.map
|
||||||
|
share/gigalomania/islands/wreath.map
|
||||||
|
share/gigalomania/islands/x.map
|
||||||
|
share/gigalomania/islands/yen.map
|
||||||
|
share/gigalomania/islands/zinc.map
|
||||||
|
share/gigalomania/music/
|
||||||
|
share/gigalomania/music/defeat.ogg
|
||||||
|
share/gigalomania/music/gamemusic.ogg
|
||||||
|
share/gigalomania/music/mainscreen.ogg
|
||||||
|
share/gigalomania/music/victory.ogg
|
||||||
|
share/gigalomania/readme.html
|
||||||
|
share/gigalomania/sound/
|
||||||
|
share/gigalomania/sound/biplane.ogg
|
||||||
|
share/gigalomania/sound/bomb.wav
|
||||||
|
share/gigalomania/sound/ergonomically_terrific.wav
|
||||||
|
share/gigalomania/sound/it_s_all_over.wav
|
||||||
|
share/gigalomania/sound/jetplane.ogg
|
||||||
|
share/gigalomania/sound/misc_menu_3.wav
|
||||||
|
share/gigalomania/sound/pain1.wav
|
||||||
|
share/gigalomania/sound/putting_you_on_hold.wav
|
||||||
|
share/gigalomania/sound/spaceship.ogg
|
||||||
|
share/gigalomania/sound/the_design_is_finished.wav
|
||||||
|
share/gigalomania/sound/the_factory_s_been_destroyed.wav
|
||||||
|
share/gigalomania/sound/the_lab_s_been_destroyed.wav
|
||||||
|
share/gigalomania/sound/the_mine_is_destroyed.wav
|
||||||
|
share/gigalomania/sound/the_production_run_s_completed.wav
|
||||||
|
share/gigalomania/sound/the_sector_s_been_destroyed.wav
|
||||||
|
share/gigalomania/sound/tower_critical.wav
|
||||||
|
share/gigalomania/sound/we_re_running_out_of_elements.wav
|
||||||
|
share/gigalomania/sound/we_ve_advanced_a_tech_level.wav
|
||||||
|
share/gigalomania/sound/we_ve_been_nuked.wav
|
||||||
|
share/gigalomania/sound/we_ve_conquered_the_sector.wav
|
||||||
|
share/gigalomania/sound/we_ve_nuked_them.wav
|
||||||
|
share/gigalomania/sound/we_ve_won.wav
|
||||||
|
share/gigalomania/sound/woodbrk.wav
|
||||||
|
share/pixmaps/
|
||||||
|
share/pixmaps/gigalomania64.png
|
||||||
|
@tag update-desktop-database
|
Loading…
Reference in New Issue
Block a user