diff --git a/games/wolf3d/Makefile b/games/wolf3d/Makefile index 55e738cca13e..51129c4b4548 100644 --- a/games/wolf3d/Makefile +++ b/games/wolf3d/Makefile @@ -7,13 +7,14 @@ PORTNAME= wolf3d PORTVERSION= 20011028 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://www.icculus.org/wolf3d/:wolf \ http://www.liquidx.org/distfiles/:wolfdata DISTFILES= wolf3d-20011028.tar.gz:wolf wolfdata.tar.gz:wolfdata MAINTAINER= tlp@liquidx.org -COMMENT= Wolfenstein 3D by Steven Fuller, based on 1992 id Software game +COMMENT= "Wolfenstein 3D Linux" by Steven Fuller (1992) USE_SDL= yes USE_GZIP= yes @@ -43,4 +44,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}/TODO .endif +post-install: + @${CAT} ${PKGMESSAGE} + .include diff --git a/games/wolf3d/files/wolf3d.in b/games/wolf3d/files/wolf3d.in index a1992422fe11..31b27a852106 100644 --- a/games/wolf3d/files/wolf3d.in +++ b/games/wolf3d/files/wolf3d.in @@ -3,6 +3,33 @@ # # 2004 Travis Poppe +USERDIR=$HOME/.wolf3d + +if [ -x $USERDIR ]; then + echo "wolf3d appears to be installed to $USERDIR/" + echo "" + echo "Basic options:" + echo "" + echo "-nowait Skips introduction" + echo "-nojoy Disables joystick" + echo "-nomouse Disables mouse" + echo "-x2 Increases screen size by x2" + echo "-x3 Increases screen size by x3" + echo "-fullscreen Enables fullscreen mode" + echo "-demotest Starts wolf3d in demonstration mode" + echo "-version Reports game version" + echo "" + + cd $USERDIR + ./sdlwolf3d $* + exit +fi + +mkdir $USERDIR +ln -s %%PREFIX%%/libexec/wolf3d/* $USERDIR + +echo "Installed wolf3d to $USERDIR/" +echo "" echo "Basic options:" echo "" echo "-nowait Skips introduction" @@ -14,5 +41,6 @@ echo "-fullscreen Enables fullscreen mode" echo "-demotest Starts wolf3d in demonstration mode" echo "-version Reports game version" echo "" -cd %%PREFIX%%/libexec/wolf3d + +cd $USERDIR ./sdlwolf3d $* diff --git a/games/wolf3d/pkg-message b/games/wolf3d/pkg-message new file mode 100644 index 000000000000..207dcbd8fe1e --- /dev/null +++ b/games/wolf3d/pkg-message @@ -0,0 +1,8 @@ +------------------------------------------------------------------------------- +This port's wrapper script will install the wolf3d data to your home directory +the first time you run it. If for some odd reason you already have a directory +called .wolf3d in your home directory, you must (re)move it before this port +will function correctly. + +-tlp +-------------------------------------------------------------------------------