From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-strategy/netherearth/Manifest | 12 ++ games-strategy/netherearth/files/Makefile | 20 +++ .../files/netherearth-0.52-freeglut.patch | 18 +++ .../files/netherearth-0.52-gentoo-paths.patch | 139 +++++++++++++++++++++ .../files/netherearth-0.52-glibc-212.patch | 23 ++++ .../files/netherearth-0.52-ldflags.patch | 8 ++ .../netherearth/files/netherearth-0.52-linux.patch | 47 +++++++ games-strategy/netherearth/metadata.xml | 14 +++ games-strategy/netherearth/netherearth-0.52.ebuild | 80 ++++++++++++ 9 files changed, 361 insertions(+) create mode 100644 games-strategy/netherearth/Manifest create mode 100644 games-strategy/netherearth/files/Makefile create mode 100644 games-strategy/netherearth/files/netherearth-0.52-freeglut.patch create mode 100644 games-strategy/netherearth/files/netherearth-0.52-gentoo-paths.patch create mode 100644 games-strategy/netherearth/files/netherearth-0.52-glibc-212.patch create mode 100644 games-strategy/netherearth/files/netherearth-0.52-ldflags.patch create mode 100644 games-strategy/netherearth/files/netherearth-0.52-linux.patch create mode 100644 games-strategy/netherearth/metadata.xml create mode 100644 games-strategy/netherearth/netherearth-0.52.ebuild (limited to 'games-strategy/netherearth') diff --git a/games-strategy/netherearth/Manifest b/games-strategy/netherearth/Manifest new file mode 100644 index 000000000000..c2d5342958ee --- /dev/null +++ b/games-strategy/netherearth/Manifest @@ -0,0 +1,12 @@ +AUX Makefile 1003 SHA256 436792a5c1763fff48f7ec33175b323da36c3ceed89fcb3b4d30692a216ebbce SHA512 72cb6f6cb31beb79d91ac3b60eff1cb4046fcecd83621c42ff34a145eefbf484b8bc87ed3c2792bec7d1587d2578c95b4a4b925f9a032c8eefe9a9208a96fcdb WHIRLPOOL 6571c01c858f212fb1ca43ce4482d4f35a7df8f4c6f288a16000d8102cc78116880accf1bef3e950ce7602f0469e30f8d46eda90ffc511948b20e280ca057801 +AUX netherearth-0.52-freeglut.patch 367 SHA256 6a2a6bd3f11b326f8e5c5d4729fe72fb51d04f6cbd75136b4fe5178de5aa027e SHA512 c430a2e409c8b1be98a6d9147d429e98a8333541fdbf7e070c87230b85b43bdde9e6665338281d6a984f20a6af29127b9a165086d0c5a2a33ab392649f762c9d WHIRLPOOL 6c93e55bcaa7dcacf5e7ef6c6b70434f3556c7196cda842c1fcb3878b3fdadc423216f10895f4cfdf76e7b6126a83810eda41addc5b3dbb15d479124cd6b1c60 +AUX netherearth-0.52-gentoo-paths.patch 4356 SHA256 62a2243f3244f0d238383d61909cbd4ebc6c3f6a24e6093bac05657c48913a36 SHA512 55fe5ddc2e4d783eb3b930600168c1c106562c84e4532f84dbfe44afb44e9134bb32f0c5cc8dea520cc86d661cf984122d4e82da8d624d03bd6fb42e67ba45ca WHIRLPOOL e9de9e6391c741363ec61c8e2629560e601f9debab67649a8b2338b4ada76aa2723c9900c80a51065928200d6c4afa7c50669d9c251d548e76b799c6435849bd +AUX netherearth-0.52-glibc-212.patch 410 SHA256 450ecd26efa7fe0157b48d46b46ff7edf5ff00a2577934a0861498fc3164565e SHA512 fe33f1b9220a8538490316880bfbb671ad65c0a55a896aaa624791a9c094cbded0e5ac182f87750bd58300550a9dbcb10da6453b531c2d58582780a10838ecef WHIRLPOOL 3e4ddb9f107c172acdc75792f700d9689c34dbad245208de9c736bee9cb4818de7b81dbfb2ee8ff43e05a130f25fc13a31089179d09bcd3375952e3eb9b4469f +AUX netherearth-0.52-ldflags.patch 329 SHA256 ba5c6b752afabecda1cbb5955310c4b8ff6e4b3e957d15e96135bf61eb1fd044 SHA512 fef30a64dc693973d4e037fc57a47d3a8fb7cfa0f31f98165b1486d48433b4f21361d077e15eda3df26ffceda536c679786103c047be604878ebc92bddfb9209 WHIRLPOOL 2b1cbc4f7f7028d2769a702168413818903495eea64f263b30a780ac1c60c515f90ec77ed91dca56dcbb6ebd170cdc7dafcd2543dff2722c96dee2c2dca0b79f +AUX netherearth-0.52-linux.patch 1255 SHA256 3761a82cfb8aa70781a83a9af5d7a2eca5dd0dac98adb14aa232785cdf37a315 SHA512 fd5e4385798a3027bb6fe89b92939e0e9d7f463420cb1d47d1606bd2fabc12d1f755892cb1523062a07eb5d2138156aabfcb801daaff7b5f1fdbba8d079ef56f WHIRLPOOL 3d1895c815e1af8c55e103ad9be29975f9435f27b6e219b217398c6ab1521427c144e7f78842d7ae57951c50b7355fd21e7ba88801d44970d217fed9721f20a6 +DIST netherearth052.zip 872397 SHA256 79d533a56b4939a402edd7665f234e7f462e68b00ea36d9ae110f02a36357caf SHA512 1f2cb3e896ac076c5ed3d346f19d8328b879546c4dc58609251bdbc8fd96b201cbc5dcb400df2a0dd4c717c7be002f83b92acf33f607890fa736b572c72a8cf5 WHIRLPOOL ac0862bfe148b6fbd2f51e559d5b3488b4a4234008566bfecf2153ff82d7bd2decce510deeb0933bc5852da7bc506b624a32e551f7ae32987146644d3c12db85 +DIST sources.zip 75918 SHA256 0d4f80f5d3f73e957ccb7c292dcc830b88cb5624aa086ea3416522a8a66b766f SHA512 8daa9def65f4be8a541df15c69531da84344906e0f3eab2b7e84f8a94e2f3278d2033e37a9edd4b17fc19b1f7fbf3537286a2a2a9877950d19a51a1167487b75 WHIRLPOOL 755d398586edabe01c9fd299b14e6534b42aecf212332bf00fbca87c9a11a2710a5ad1cf750508d26c98aa34dc71cee5d99aaf7fe5952a89346fcf058553b679 +EBUILD netherearth-0.52.ebuild 1849 SHA256 6596a5520d41d4e0aa9a35954d2db0dac7d20d405896612927bda647eb4310f9 SHA512 dd15f00ab9b4177093d8ec92ac3256ae1d4ee8bd2e752fc9e53fb10e4e3d6f647cf405e915add57e711bad9e9a5d2de685c367f59a71746e04de560f8684e4c7 WHIRLPOOL 77f0e3e5bf963fc3369c46f3414c94f5bcdb2397b35c0dc949626ad3060e5c04738af6da3ebc4035e92653881ea72af63dd018290da91691feeba278bbd06f0a +MISC ChangeLog 2669 SHA256 3298966c6ef2fcacfea7886192cf9112706441a063d81a7a16b094823ab88a59 SHA512 da623608c79452841d93ba5e4b00ea23a32497f5de533ffbfbe5323afc846edbadfddc3900d2056447c66f0476c4ac86cf582c0f4fa72a191135c9f57eaea629 WHIRLPOOL 8a30577b8b95c0bc7fc24afddf3775bd5cbbbbca55d2bf241c0174ff4a4be98849edde5dfa113b898493505ae75514c74c2e3c93bbec113506574728edfae30b +MISC ChangeLog-2015 1921 SHA256 53e0b6e7b4df13013e7ba2b745de68c0cd39589ffb832f6b7d790721b3f7ed79 SHA512 bc431703fe588be834f0f21284252674c1c46411808a9903ef3959f3c32c20cacb9b9f05385ba209f624c42da376fbf9939b8c1fa26d4897931c931de38281d7 WHIRLPOOL 97a1d0ff311e3ed6ecb92a83b95d34c67de38fc99b7d3bbf491714cb4df1bf1f633f012f0e3a71fadab4dbfe76af01a465b5910e995af53ffa996ec8fe102e37 +MISC metadata.xml 530 SHA256 76872ae1f52694f58d3b97ec5fa7d94166678396acee8d2ef345d55a54a12433 SHA512 4ec339e99b397a71a0f5b6ffccf7f9cefafdee1ce0627c9c5e5f8b00c0158fd7e73e7d0d9612c8f653ea30113905ad6b4efbec694fcd4c05b3ab59439d558868 WHIRLPOOL 578bfb3cc0338c9039f414c8729676e49d0a0c2afa3c288393e19b619567c21a656b6e7e9f45db01cbcd0d1267fb7ad94baf77b4ebc82528eed916dafeb08582 diff --git a/games-strategy/netherearth/files/Makefile b/games-strategy/netherearth/files/Makefile new file mode 100644 index 000000000000..07c671a10e31 --- /dev/null +++ b/games-strategy/netherearth/files/Makefile @@ -0,0 +1,20 @@ +# ls *.cpp +# +#3dobject-ase.cpp construction.cpp maps.cpp netherdebug.cpp radar.cpp +#3dobject.cpp enemy_ai.cpp menu.cpp nethersave.cpp robot_ai.cpp +#bitmap.cpp glprintf.cpp myglutaux.cpp particles.cpp robots.cpp +#bullet.cpp main.cpp nether.cpp piece3dobject.cpp shadow3dobject.cpp +#cmc.cpp mainmenu.cpp nethercycle.cpp quaternion.cpp vector.cpp + + +SOURCES = 3dobject-ase.cpp 3dobject.cpp cmc.cpp nether.cpp piece3dobject.cpp vector.cpp bitmap.cpp bullet.cpp glprintf.cpp main.cpp mainmenu.cpp maps.cpp menu.cpp myglutaux.cpp nethercycle.cpp netherdebug.cpp nethersave.cpp particles.cpp construction.cpp quaternion.cpp radar.cpp enemy_ai.cpp robot_ai.cpp robots.cpp shadow3dobject.cpp +OBJECTS = $(SOURCES:.cpp=.o) +TARGET = nether_earth + +.cpp.o: + g++ ${CXXFLAGS} -c $< -o $@ + +all: $(TARGET) + +$(TARGET): $(OBJECTS) + g++ $(OBJECTS) -o $(TARGET) -lGL -lGLU -lglut -lSDL -lSDL_mixer -lpthread diff --git a/games-strategy/netherearth/files/netherearth-0.52-freeglut.patch b/games-strategy/netherearth/files/netherearth-0.52-freeglut.patch new file mode 100644 index 000000000000..0fc147f0b7aa --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-freeglut.patch @@ -0,0 +1,18 @@ +--- main.cpp ++++ main.cpp +@@ -8,6 +8,7 @@ + + #include + #include ++#include + #include "SDL/SDL.h" + #include "SDL/SDL_mixer.h" + +@@ -144,6 +145,7 @@ + bool quit = false; + + load_configuration(); ++ glutInit(&argc, argv); + + screen_sfc = initialization((fullscreen ? SDL_FULLSCREEN : 0)); + if (screen_sfc==0) return 0; diff --git a/games-strategy/netherearth/files/netherearth-0.52-gentoo-paths.patch b/games-strategy/netherearth/files/netherearth-0.52-gentoo-paths.patch new file mode 100644 index 000000000000..25f99be50fab --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-gentoo-paths.patch @@ -0,0 +1,139 @@ +diff -ud ../NetherEarth_v0.51-linsrc.orig/3dobject-ase.cpp ./3dobject-ase.cpp +--- ../NetherEarth_v0.51-linsrc.orig/3dobject-ase.cpp 2002-10-26 00:00:00.000000000 +0300 ++++ ./3dobject-ase.cpp 2004-04-16 21:42:55.000000000 +0300 +@@ -34,7 +34,7 @@ + char buffer[256]; + FILE *fp; + +- fp=fopen(file,"r+"); ++ fp=fopen(file,"r"); + if (fp==NULL) return false; + + /* Look for the materials: */ +diff -ud ../NetherEarth_v0.51-linsrc.orig/3dobject.cpp ./3dobject.cpp +--- ../NetherEarth_v0.51-linsrc.orig/3dobject.cpp 2004-01-06 20:49:00.000000000 +0200 ++++ ./3dobject.cpp 2004-04-16 21:43:44.000000000 +0300 +@@ -74,7 +74,7 @@ + + int *smooth; + +- fp=fopen(file,"r+"); ++ fp=fopen(file,"r"); + if (fp==NULL) return false; + + /* Importar un fichero .ASC de 3DStudio */ +diff -ud ../NetherEarth_v0.51-linsrc.orig/bitmap.cpp ./bitmap.cpp +--- ../NetherEarth_v0.51-linsrc.orig/bitmap.cpp 2004-01-06 20:49:00.000000000 +0200 ++++ ./bitmap.cpp 2004-04-16 21:45:13.000000000 +0300 +@@ -14,7 +14,7 @@ + g=0; + b=0; + +- fp=fopen(file,"rb+"); ++ fp=fopen(file,"rb"); + if (fp==NULL) return; + + /* Tag: */ +diff -ud ../NetherEarth_v0.51-linsrc.orig/mainmenu.cpp ./mainmenu.cpp +--- ../NetherEarth_v0.51-linsrc.orig/mainmenu.cpp 2004-01-06 20:50:00.000000000 +0200 ++++ ./mainmenu.cpp 2004-04-16 21:14:14.000000000 +0300 +@@ -6,6 +6,9 @@ + #include + #endif + ++#include ++#include ++#include + #include "string.h" + #include "stdio.h" + #include "math.h" +@@ -483,8 +486,10 @@ + { + int v; + FILE *fp; ++ char cfg_path[300]; + +- fp=fopen("nether.cfg","r"); ++ sprintf(cfg_path, "%s/.netherearth/nether.cfg", getenv("HOME")); ++ fp=fopen(cfg_path,"r"); + if (fp==0) return; + + if (2!=fscanf(fp,"%i %i",&SCREEN_X,&SCREEN_Y)) return; +@@ -510,8 +515,12 @@ + void save_configuration(void) + { + FILE *fp; ++ char cfg_path[300]; + +- fp=fopen("nether.cfg","w"); ++ sprintf(cfg_path, "%s/.netherearth", getenv("HOME")); ++ mkdir(cfg_path, 0755); ++ sprintf(cfg_path, "%s/.netherearth/nether.cfg", getenv("HOME")); ++ fp=fopen(cfg_path,"w"); + if (fp==0) return; + + fprintf(fp,"%i %i\n",SCREEN_X,SCREEN_Y); +diff -ud ../NetherEarth_v0.51-linsrc.orig/nether.cpp ./nether.cpp +--- ../NetherEarth_v0.51-linsrc.orig/nether.cpp 2004-01-06 21:03:00.000000000 +0200 ++++ ./nether.cpp 2004-04-16 20:54:54.000000000 +0300 +@@ -1203,7 +1203,7 @@ + if (option_menu==(i+1)) glColor3f(1.0,0.0,0.0); + else glColor3f(0.5,0.5,1.0); + glTranslatef(0,-2,0); +- sprintf(filename,"savedgame%i.txt",i); ++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), i); + fp=fopen(filename,"r"); + if (fp==0) { + scaledglprintf(0.01,0.01,"SLOT%i - EMPTY",i+1); +@@ -1232,7 +1232,7 @@ + if (option_menu==(i+1)) glColor3f(1.0,0.0,0.0); + else glColor3f(0.5,0.5,1.0); + glTranslatef(0,-2,0); +- sprintf(filename,"savedgame%i.txt",i); ++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), i); + fp=fopen(filename,"r"); + if (fp==0) { + scaledglprintf(0.01,0.01,"SLOT%i - EMPTY",i+1); +@@ -1291,7 +1291,7 @@ + case 4: + { + char filename[80]; +- sprintf(filename,"savedgame%i.txt",option_menu-1); ++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), option_menu-1); + save_game(filename); + //save_debug_report("debugreport.txt"); + game_state=STATE_PAUSE; +@@ -1326,7 +1326,7 @@ + case 4: + { + char filename[80]; +- sprintf(filename,"savedgame%i.txt",option_menu-1); ++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), option_menu-1); + killmenu(act_menu); + load_game(filename); + newmenu(act_menu); +diff -ud ../NetherEarth_v0.51-linsrc.orig/nethersave.cpp ./nethersave.cpp +--- ../NetherEarth_v0.51-linsrc.orig/nethersave.cpp 2003-09-17 00:00:00.000000000 +0300 ++++ ./nethersave.cpp 2004-04-16 21:23:04.000000000 +0300 +@@ -2,6 +2,10 @@ + #include "windows.h" + #endif + ++#include ++#include ++#include ++#include + #include "string.h" + #include "stdio.h" + #include "math.h" +@@ -40,7 +44,10 @@ + ROBOT *r; + BULLET *bul; + EXPLOSION *e; ++ char tmp_path[300]; + ++ sprintf(tmp_path, "%s/.netherearth", getenv("HOME")); ++ mkdir(tmp_path, 0755); + fp=fopen(filename,"w"); + if (fp==0) return false; + diff --git a/games-strategy/netherearth/files/netherearth-0.52-glibc-212.patch b/games-strategy/netherearth/files/netherearth-0.52-glibc-212.patch new file mode 100644 index 000000000000..813f963db4c8 --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-glibc-212.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/335137 + +--- sources/mainmenu.cpp ++++ sources/mainmenu.cpp +@@ -3,6 +3,7 @@ + #else + #include + #include ++#include + #include + #endif + +--- sources/nethersave.cpp ++++ sources/nethersave.cpp +@@ -1,5 +1,8 @@ + #ifdef _WIN32 + #include "windows.h" ++#else ++#include ++#include + #endif + + #include "string.h" diff --git a/games-strategy/netherearth/files/netherearth-0.52-ldflags.patch b/games-strategy/netherearth/files/netherearth-0.52-ldflags.patch new file mode 100644 index 000000000000..6b7ed3a8989c --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-ldflags.patch @@ -0,0 +1,8 @@ +--- Makefile.old 2010-10-12 09:30:19.000000000 +0200 ++++ Makefile 2010-10-12 09:30:38.000000000 +0200 +@@ -17,4 +17,4 @@ + all: $(TARGET) + + $(TARGET): $(OBJECTS) +- g++ $(OBJECTS) -o $(TARGET) -lGL -lGLU -lglut -lSDL -lSDL_mixer -lpthread ++ g++ $(LDFLAGS) $(OBJECTS) -o $(TARGET) -lGL -lGLU -lglut -lSDL -lSDL_mixer -lpthread diff --git a/games-strategy/netherearth/files/netherearth-0.52-linux.patch b/games-strategy/netherearth/files/netherearth-0.52-linux.patch new file mode 100644 index 000000000000..6c4c0d1e9733 --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-linux.patch @@ -0,0 +1,47 @@ +diff -burN sources/glprintf.cpp sources-linux/glprintf.cpp +--- sources/glprintf.cpp 2002-10-26 00:17:00.000000000 +0200 ++++ sources-linux/glprintf.cpp 2005-06-18 18:22:54.000000000 +0200 +@@ -3,6 +3,7 @@ + #endif + #include "GL/gl.h" + ++#include "string.h" + #include "stdio.h" + #include "stdarg.h" + #include "GL/gl.h" +diff -burN sources/list.h sources-linux/list.h +--- sources/list.h 2002-10-27 12:17:00.000000000 +0100 ++++ sources-linux/list.h 2005-06-18 18:21:34.000000000 +0200 +@@ -1,6 +1,9 @@ + #ifndef GENERIC_LIST + #define GENERIC_LIST + ++ ++#include "stdlib.h" ++ + /* + Funciones para LISTAS: + +diff -burN sources/maps.cpp sources-linux/maps.cpp +--- sources/maps.cpp 2005-05-05 23:42:00.000000000 +0200 ++++ sources-linux/maps.cpp 2005-06-18 18:23:05.000000000 +0200 +@@ -3,6 +3,7 @@ + #endif + + #include "stdio.h" ++#include "string.h" + + #include "GL/gl.h" + #include "GL/glu.h" +diff -burN sources/myglutaux.cpp sources-linux/myglutaux.cpp +--- sources/myglutaux.cpp 2002-10-26 00:17:00.000000000 +0200 ++++ sources-linux/myglutaux.cpp 2005-06-18 18:23:29.000000000 +0200 +@@ -5,6 +5,8 @@ + #include + #include "GL/glut.h" + ++#include "string.h" ++#include "stdlib.h" + #include "stdio.h" + #include "math.h" + #include "vector.h" diff --git a/games-strategy/netherearth/metadata.xml b/games-strategy/netherearth/metadata.xml new file mode 100644 index 000000000000..26fb6b6b6d5b --- /dev/null +++ b/games-strategy/netherearth/metadata.xml @@ -0,0 +1,14 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + Nether Earth was the very first real time strategy game. It worked on a + SPECTRUM machine, and only needed 48KB of RAM to work!! It has all the + typical elements of strategy games: resources, factories, combat units, + etc. + + diff --git a/games-strategy/netherearth/netherearth-0.52.ebuild b/games-strategy/netherearth/netherearth-0.52.ebuild new file mode 100644 index 000000000000..7c054852615f --- /dev/null +++ b/games-strategy/netherearth/netherearth-0.52.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +MY_PV="${PV/./}" +DESCRIPTION="A remake of the SPECTRUM game Nether Earth" +HOMEPAGE="http://www.braingames.getput.com/nether/" +SRC_URI="http://www.braingames.getput.com/nether/sources.zip + http://www.braingames.getput.com/nether/${PN}${MY_PV}.zip" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="x86" +IUSE="" +RESTRICT="mirror bindist" + +RDEPEND=">=media-libs/libsdl-1.2.6-r3 + >=media-libs/sdl-mixer-1.2.5-r1 + media-libs/freeglut" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/sources + +data=../nether\ earth\ v${PV} + +src_unpack() { + unzip -LL "${DISTDIR}/${PN}${MY_PV}.zip" >/dev/null || die + unzip -LL "${DISTDIR}/sources.zip" >/dev/null || die +} + +src_prepare() { + DATA_DIR=${GAMES_DATADIR}/${PN} + + cp "${FILESDIR}/Makefile" . || die + + # Fix compilation errors/warnings + epatch "${FILESDIR}"/${P}-linux.patch + + epatch "${FILESDIR}"/${P}-freeglut.patch \ + "${FILESDIR}"/${P}-glibc-212.patch \ + "${FILESDIR}"/${P}-ldflags.patch + + # Modify dirs and some fopen() permissions + epatch "${FILESDIR}/${P}-gentoo-paths.patch" + sed -i \ + -e "s:models:${DATA_DIR}/models:" \ + -e "s:textures:${DATA_DIR}/textures:" \ + -e "s:maps/\*:${DATA_DIR}/maps/\*:" \ + -e "s:\./maps:${DATA_DIR}/maps:" \ + mainmenu.cpp || die + sed -i \ + -e "s:models:${DATA_DIR}/models:g" \ + -e "s:textures:${DATA_DIR}/textures:" \ + -e "s:sound/:${DATA_DIR}/sound/:" \ + nether.cpp || die + sed -i -e "s:maps:${DATA_DIR}/maps:" \ + main.cpp || die + sed -i -e "s:textures/:${DATA_DIR}/textures/:" \ + myglutaux.cpp || die + + cd "${data}" + rm textures/thumbs.db +} + +src_install() { + dogamesbin nether_earth + + cd "${data}" + + # Install all game data + insinto "${DATA_DIR}" + doins -r maps models sound textures + + dodoc readme.txt + + prepgamesdirs +} -- cgit v1.2.3