diff --git a/games/glaxium/Makefile b/games/glaxium/Makefile index 5c998a94baa6..1d3c8a06cfa6 100644 --- a/games/glaxium/Makefile +++ b/games/glaxium/Makefile @@ -1,43 +1,45 @@ PORTNAME= glaxium PORTVERSION= 0.5 -PORTREVISION= 19 +PORTREVISION= 20 CATEGORIES= games MASTER_SITES= http://xhosxe.free.fr/glaxium/ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= OpenGL based space-ship "shoot-em-up" game WWW= http://xhosxe.free.fr/glaxium/ +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + LIB_DEPENDS= libpng.so:graphics/png -USES= dos2unix gl gmake sdl +USES= dos2unix gl gmake sdl xorg USE_SDL= sdl mixer -USE_GL= glut +USE_GL= gl glu glut +USE_XORG= x11 xi xmu GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share ALL_TARGET= ${PORTNAME} DOS2UNIX_FILES= variables.cpp scene.cpp DESKTOP_ENTRIES= "Glaxium" \ "Space-ship \"shoot-em-up\" game" \ "${DATADIR}/textures/myship.png" \ "glaxium" \ "Game;ArcadeGame;" \ false post-patch: @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g; \ s|/games/glaxium|/glaxium|g' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|gcc -g -o|$$(CC) -o|g ; \ - s|/games/glaxium|/glaxium|g' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|Scratcher:: Scratcher|Scratcher|g' \ ${WRKSRC}/scratcher.hpp @${REINPLACE_CMD} -e 's|TankFire::TankFire|TankFire|g' \ ${WRKSRC}/tank.hpp post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include diff --git a/games/glaxium/files/patch-Makefile.in b/games/glaxium/files/patch-Makefile.in index 37ff8100794c..a47d9bd97be7 100644 --- a/games/glaxium/files/patch-Makefile.in +++ b/games/glaxium/files/patch-Makefile.in @@ -1,16 +1,20 @@ ---- ./Makefile.in.orig 2002-10-20 18:30:12.000000000 +0000 -+++ ./Makefile.in 2013-10-22 22:38:44.900225905 +0000 -@@ -13,10 +13,10 @@ +--- Makefile.in.orig 2002-10-20 18:30:12 UTC ++++ Makefile.in +@@ -13,13 +13,13 @@ mandir=@mandir@ bindir=@bindir@ mandir=@mandir@ -GLAXIUM_INSTALLDIR=$(bindir) +GLAXIUM_INSTALLDIR=$(DESTDIR)$(bindir) DATA_DIRS=samples textures -GLAXIUM_HOME=$(datadir)/games/glaxium -MAN_DIR=$(mandir) -+GLAXIUM_HOME=$(DESTDIR)$(datadir)/games/glaxium ++GLAXIUM_HOME=$(DESTDIR)$(datadir)/glaxium +MAN_DIR=$(DESTDIR)$(mandir) glaxium : $(OBJ) - gcc -g -o glaxium $(OBJ) $(LIB) +- gcc -g -o glaxium $(OBJ) $(LIB) ++ $(CC) -o glaxium $(OBJ) $(LIB) + + + diff --git a/games/glaxium/files/patch-scene.cpp b/games/glaxium/files/patch-scene.cpp index 3b55656d3d70..b989bece62df 100644 --- a/games/glaxium/files/patch-scene.cpp +++ b/games/glaxium/files/patch-scene.cpp @@ -1,11 +1,11 @@ ---- ./scene.cpp.orig Thu Oct 10 16:57:58 2002 -+++ ./scene.cpp Sat Jul 21 17:54:40 2007 -@@ -2361,7 +2361,7 @@ +--- scene.cpp.orig 2024-11-06 19:04:58 UTC ++++ scene.cpp +@@ -2361,7 +2361,7 @@ void Scene::menuIdle() oldTimer = newTimer; globalList->move() ; #ifndef PI -#define PI=3.151592653589793 +#define PI=3.141592653589793 #endif benchFrames++; diff --git a/games/glaxium/files/patch-variables.cpp b/games/glaxium/files/patch-variables.cpp index 7f38c9925099..689ca4a4ff36 100644 --- a/games/glaxium/files/patch-variables.cpp +++ b/games/glaxium/files/patch-variables.cpp @@ -1,10 +1,10 @@ ---- ./variables.cpp.orig Fri Oct 18 01:53:00 2002 -+++ ./variables.cpp Sat Jul 21 17:51:10 2007 -@@ -453,6 +453,7 @@ +--- variables.cpp.orig 2024-11-06 19:04:58 UTC ++++ variables.cpp +@@ -453,6 +453,7 @@ char* GlaxiumVariables::getFullOptionsPath() { static char strReturn[1024]; strcpy(strReturn, getenv("HOME")); strcat(strReturn, "/.glaxiumrc"); + return strReturn; #endif } diff --git a/games/glaxium/pkg-plist b/games/glaxium/pkg-plist index e28bd62ffc4f..f32bcaa07c52 100644 --- a/games/glaxium/pkg-plist +++ b/games/glaxium/pkg-plist @@ -1,59 +1,59 @@ bin/glaxium -share/man/man6/glaxium.6.gz %%DATADIR%%/samples/detection.wav %%DATADIR%%/samples/explode1.wav %%DATADIR%%/samples/explode2.wav %%DATADIR%%/samples/gameover.wav %%DATADIR%%/samples/glax.xm %%DATADIR%%/samples/glax3.xm %%DATADIR%%/samples/glups.wav %%DATADIR%%/samples/powerup.wav %%DATADIR%%/samples/tachefire.wav %%DATADIR%%/samples/tir.wav %%DATADIR%%/samples/welcome.wav %%DATADIR%%/textures/bandit1.png %%DATADIR%%/textures/bandit2.png %%DATADIR%%/textures/board.png %%DATADIR%%/textures/bord.png %%DATADIR%%/textures/border.png %%DATADIR%%/textures/border2.png %%DATADIR%%/textures/camouflage.png %%DATADIR%%/textures/capsule_bomb.png %%DATADIR%%/textures/capsule_invul.png %%DATADIR%%/textures/capsule_power.png %%DATADIR%%/textures/capsule_shield.png %%DATADIR%%/textures/chain.png %%DATADIR%%/textures/chars.png %%DATADIR%%/textures/cube.png %%DATADIR%%/textures/deadtache.png %%DATADIR%%/textures/effect1.png %%DATADIR%%/textures/fighter2.png %%DATADIR%%/textures/floor.png %%DATADIR%%/textures/floor1.png %%DATADIR%%/textures/floor2.png %%DATADIR%%/textures/floor3.png %%DATADIR%%/textures/floor4.png %%DATADIR%%/textures/floormap.png %%DATADIR%%/textures/floormap1.png %%DATADIR%%/textures/floormap2.png %%DATADIR%%/textures/floormap3.png %%DATADIR%%/textures/floormap4.png %%DATADIR%%/textures/fumee1.png %%DATADIR%%/textures/fumee2.png %%DATADIR%%/textures/fumee3.png %%DATADIR%%/textures/galaxy.png %%DATADIR%%/textures/gameover.png %%DATADIR%%/textures/glax2.png %%DATADIR%%/textures/iflicla.png %%DATADIR%%/textures/mark.png %%DATADIR%%/textures/missile.png %%DATADIR%%/textures/myship.png %%DATADIR%%/textures/piege.png %%DATADIR%%/textures/ship1.png %%DATADIR%%/textures/space0.png %%DATADIR%%/textures/space1.png %%DATADIR%%/textures/space2.png %%DATADIR%%/textures/space3.png %%DATADIR%%/textures/sphere.png %%DATADIR%%/textures/tache.png %%DATADIR%%/textures/thunder.png +share/man/man6/glaxium.6.gz