diff options
author | adamw <adamw@FreeBSD.org> | 2003-10-28 11:03:54 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2003-10-28 11:03:54 +0800 |
commit | f0c29988424945cd1e85133d53045569d83014a6 (patch) | |
tree | 813500dcfb9a7eec1a86760337bfc09d45e3ba9a /games | |
parent | 787717d1860b14f0586a8f814e1bb972d7fedea8 (diff) | |
download | freebsd-ports-gnome-f0c29988424945cd1e85133d53045569d83014a6.tar.gz freebsd-ports-gnome-f0c29988424945cd1e85133d53045569d83014a6.tar.zst freebsd-ports-gnome-f0c29988424945cd1e85133d53045569d83014a6.zip |
Add neverputt.
Neverputt is a 3D mini golf game for 1-4 players based on the Neverball code.
PR: ports/58604
Submitted by: Jeremy Messenger <mezz7@cox.net>
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/neverputt/Makefile | 40 | ||||
-rw-r--r-- | games/neverputt/distinfo | 1 | ||||
-rw-r--r-- | games/neverputt/files/patch-Makefile | 34 | ||||
-rw-r--r-- | games/neverputt/files/patch-config.c | 47 | ||||
-rw-r--r-- | games/neverputt/pkg-descr | 3 | ||||
-rw-r--r-- | games/neverputt/pkg-plist | 105 |
7 files changed, 231 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index a40626f93b58..f9a60484d7d2 100644 --- a/games/Makefile +++ b/games/Makefile @@ -267,6 +267,7 @@ SUBDIR += netspades SUBDIR += nettoe SUBDIR += neverball + SUBDIR += neverputt SUBDIR += newvox SUBDIR += nibbles SUBDIR += nighthawk diff --git a/games/neverputt/Makefile b/games/neverputt/Makefile new file mode 100644 index 000000000000..eaa23f9b2b8c --- /dev/null +++ b/games/neverputt/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: neverputt +# Date created: 26 October 2003 +# Whom: Mezz <mezz7@cox.net> +# +# $FreeBSD$ +# + +PORTNAME= neverputt +PORTVERSION= 0.18.2 +CATEGORIES= games +MASTER_SITES= http://icculus.org/neverball/ + +MAINTAINER= mezz7@cox.net +COMMENT= 3D miniature golf for 1-4 players + +LIB_DEPENDS= SDL_ttf.3:${PORTSDIR}/graphics/sdl_ttf \ + SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \ + SDL_image.10:${PORTSDIR}/graphics/sdl_image + +USE_BZIP2= yes +USE_SDL= yes +USE_GMAKE= yes +USE_X_PREFIX= yes +USE_REINPLACE= yes + +DIRS= bgm map mtrl png snd sol ttf + +post-patch: + @${REINPLACE_CMD} -e 's|./data|${DATADIR}/data|g' \ + ${WRKSRC}/config.h + +do-install: +.for ii in ${DIRS} + @${MKDIR} ${DATADIR}/data/${ii} + @${INSTALL_DATA} ${WRKSRC}/data/${ii}/* ${DATADIR}/data/${ii}/ +.endfor + @${INSTALL_DATA} ${WRKSRC}/data/*.txt ${DATADIR}/data/ + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + +.include <bsd.port.mk> diff --git a/games/neverputt/distinfo b/games/neverputt/distinfo new file mode 100644 index 000000000000..dba0075c9b48 --- /dev/null +++ b/games/neverputt/distinfo @@ -0,0 +1 @@ +MD5 (neverputt-0.18.2.tar.bz2) = 0b166cd83772e7d6be4fde80e1979800 diff --git a/games/neverputt/files/patch-Makefile b/games/neverputt/files/patch-Makefile new file mode 100644 index 000000000000..a8edb4562c69 --- /dev/null +++ b/games/neverputt/files/patch-Makefile @@ -0,0 +1,34 @@ +--- Makefile.orig Mon Oct 27 21:35:19 2003 ++++ Makefile Mon Oct 27 21:37:26 2003 +@@ -3,15 +3,15 @@ + + # Maybe you need one of these. Maybe you don't. + +-#X11_PATH= -L/usr/X11/lib +-#X11_PATH= -L/usr/X11R6/lib ++X11_PATHL= -L${X11BASE}/lib ++X11_PATHI= -I${X11BASE}/include + + #------------------------------------------------------------------------------ + +-CFLAGS= -Wall -g -ansi $(shell sdl-config --cflags) ++CFLAGS+= -Wall -g -ansi $(shell ${SDL_CONFIG} --cflags) ${X11_PATHI} + +-X11_LIBS= $(X11_PATH) -lGLU -lGL -lm +-SDL_LIBS= $(shell sdl-config --libs) ++X11_LIBS= $(X11_PATHL) -lGLU -lGL -lm ++SDL_LIBS= $(shell ${SDL_CONFIG} --libs) + + MAPC_TARG= mapc + GAME_TARG= neverputt +@@ -39,8 +39,8 @@ + glext.o \ + main.o + +-MAPC_DEPS= $(GAME_SRCS:.c=.d) +-GAME_DEPS= $(GAME_OBJS:.o=.d) ++MAPC_DEPS= $(GAME_SRCS:.c) ++GAME_DEPS= $(GAME_OBJS:.o) + + MAPC_LIBS= $(SDL_LIBS) -lSDL_image $(X11_LIBS) + GAME_LIBS= $(SDL_LIBS) -lSDL_image -lSDL_ttf -lSDL_mixer -lfreetype $(X11_LIBS) diff --git a/games/neverputt/files/patch-config.c b/games/neverputt/files/patch-config.c new file mode 100644 index 000000000000..d974c8a9c76c --- /dev/null +++ b/games/neverputt/files/patch-config.c @@ -0,0 +1,47 @@ +--- config.c.orig Mon Oct 27 02:06:05 2003 ++++ config.c Mon Oct 27 02:08:21 2003 +@@ -46,7 +46,7 @@ + static int audio_rate = CONFIG_DEF_AUDIO_RATE; + static int audio_buff = CONFIG_DEF_AUDIO_BUFF; + static int mouse_sense = CONFIG_DEF_MOUSE_SENSE; +-static int nice = CONFIG_DEF_NICE; ++static int nice1 = CONFIG_DEF_NICE; + static int fps = CONFIG_DEF_FPS; + static int sound_vol = CONFIG_DEF_SOUND_VOL; + static int music_vol = CONFIG_DEF_MUSIC_VOL; +@@ -152,7 +152,7 @@ + if (strcmp(key, "audio_rate") == 0) audio_rate = val; + if (strcmp(key, "audio_buff") == 0) audio_buff = val; + if (strcmp(key, "mouse_sense") == 0) mouse_sense = val; +- if (strcmp(key, "nice") == 0) nice = val; ++ if (strcmp(key, "nice") == 0) nice1 = val; + if (strcmp(key, "fps") == 0) fps = val; + if (strcmp(key, "sound_vol") == 0) sound_vol = val; + if (strcmp(key, "music_vol") == 0) music_vol = val; +@@ -178,7 +178,7 @@ + fprintf(fp, "audio_rate %d\n", audio_rate); + fprintf(fp, "audio_buff %d\n", audio_buff); + fprintf(fp, "mouse_sense %d\n", mouse_sense); +- fprintf(fp, "nice %d\n", nice); ++ fprintf(fp, "nice %d\n", nice1); + fprintf(fp, "fps %d\n", fps); + fprintf(fp, "sound_vol %d\n", sound_vol); + fprintf(fp, "music_vol %d\n", music_vol); +@@ -198,7 +198,7 @@ + int config_rate(void) { return audio_rate; } + int config_buff(void) { return audio_buff; } + int config_sens(void) { return mouse_sense; } +-int config_nice(void) { return nice; } ++int config_nice(void) { return nice1; } + int config_fps (void) { return fps; } + int config_sound(void) { return sound_vol; } + int config_music(void) { return music_vol; } +@@ -305,7 +305,7 @@ + + void config_tog_nice(void) + { +- nice = nice ? 0 : 1; ++ nice1 = nice1 ? 0 : 1; + } + + void config_tog_fps(void) diff --git a/games/neverputt/pkg-descr b/games/neverputt/pkg-descr new file mode 100644 index 000000000000..05c4362458f6 --- /dev/null +++ b/games/neverputt/pkg-descr @@ -0,0 +1,3 @@ +Neverputt is a 3D mini golf game for 1-4 players based on the Neverball code. + +WWW: http://icculus.org/neverball/ diff --git a/games/neverputt/pkg-plist b/games/neverputt/pkg-plist new file mode 100644 index 000000000000..4625f6860ef1 --- /dev/null +++ b/games/neverputt/pkg-plist @@ -0,0 +1,105 @@ +bin/neverputt +share/neverputt/data/bgm/flood.ogg +share/neverputt/data/holes.txt +share/neverputt/data/map/01_easy.map +share/neverputt/data/map/02_uturn.map +share/neverputt/data/map/03_kink.map +share/neverputt/data/map/04_aych.map +share/neverputt/data/map/05_ramp.map +share/neverputt/data/map/06_cone.map +share/neverputt/data/map/07_tele.map +share/neverputt/data/map/08_zig.map +share/neverputt/data/map/09_vturn.map +share/neverputt/data/map/10_diamond.map +share/neverputt/data/map/11_mover.map +share/neverputt/data/map/12_bumpy.map +share/neverputt/data/map/13_choose.bak +share/neverputt/data/map/13_choose.map +share/neverputt/data/map/14_walls.map +share/neverputt/data/map/15_hole.map +share/neverputt/data/map/16_pipe.map +share/neverputt/data/map/17_timing.map +share/neverputt/data/map/18_hill.map +share/neverputt/data/mtrl/arrow-green +share/neverputt/data/mtrl/arrow-green.jpg +share/neverputt/data/mtrl/back-red +share/neverputt/data/mtrl/back-red.jpg +share/neverputt/data/mtrl/caution +share/neverputt/data/mtrl/caution.jpg +share/neverputt/data/mtrl/dark-glass +share/neverputt/data/mtrl/dark-glass.jpg +share/neverputt/data/mtrl/edge +share/neverputt/data/mtrl/edge-green-grey +share/neverputt/data/mtrl/edge-green-grey-offset +share/neverputt/data/mtrl/edge-green-grey-offset.jpg +share/neverputt/data/mtrl/edge-green-grey.jpg +share/neverputt/data/mtrl/edge.jpg +share/neverputt/data/mtrl/glass +share/neverputt/data/mtrl/glass.jpg +share/neverputt/data/mtrl/invisible +share/neverputt/data/mtrl/invisible.tga +share/neverputt/data/mtrl/jump +share/neverputt/data/mtrl/jump.tga +share/neverputt/data/mtrl/mtrl.shader +share/neverputt/data/mtrl/turf-green +share/neverputt/data/mtrl/turf-green-offset +share/neverputt/data/mtrl/turf-green-offset.jpg +share/neverputt/data/mtrl/turf-green.jpg +share/neverputt/data/mtrl/turf-grey +share/neverputt/data/mtrl/turf-grey.jpg +share/neverputt/data/mtrl/turf-small-green +share/neverputt/data/mtrl/turf-small-green.jpg +share/neverputt/data/mtrl/white +share/neverputt/data/mtrl/white.jpg +share/neverputt/data/png/ball.png +share/neverputt/data/png/deep_blue.png +share/neverputt/data/png/fire_white.png +share/neverputt/data/png/green_blue.png +share/neverputt/data/png/greys_blues.png +share/neverputt/data/png/horiz_one.png +share/neverputt/data/png/horiz_two.png +share/neverputt/data/png/shadow.png +share/neverputt/data/png/skyline.png +share/neverputt/data/snd/birdie.ogg +share/neverputt/data/snd/bogey.ogg +share/neverputt/data/snd/bump.wav +share/neverputt/data/snd/double.ogg +share/neverputt/data/snd/eagle.ogg +share/neverputt/data/snd/jump.ogg +share/neverputt/data/snd/menu.wav +share/neverputt/data/snd/one.ogg +share/neverputt/data/snd/par.ogg +share/neverputt/data/snd/penalty.ogg +share/neverputt/data/snd/player1.ogg +share/neverputt/data/snd/player2.ogg +share/neverputt/data/snd/player3.ogg +share/neverputt/data/snd/player4.ogg +share/neverputt/data/snd/success.ogg +share/neverputt/data/sol/01_easy.sol +share/neverputt/data/sol/02_uturn.sol +share/neverputt/data/sol/03_kink.sol +share/neverputt/data/sol/04_aych.sol +share/neverputt/data/sol/05_ramp.sol +share/neverputt/data/sol/06_cone.sol +share/neverputt/data/sol/07_tele.sol +share/neverputt/data/sol/08_zig.sol +share/neverputt/data/sol/09_vturn.sol +share/neverputt/data/sol/10_diamond.sol +share/neverputt/data/sol/11_mover.sol +share/neverputt/data/sol/12_bumpy.sol +share/neverputt/data/sol/13_choose.sol +share/neverputt/data/sol/14_walls.sol +share/neverputt/data/sol/15_hole.sol +share/neverputt/data/sol/16_pipe.sol +share/neverputt/data/sol/17_timing.sol +share/neverputt/data/sol/18_hill.sol +share/neverputt/data/ttf/VeraBd.ttf +@dirrm share/neverputt/data/ttf +@dirrm share/neverputt/data/sol +@dirrm share/neverputt/data/snd +@dirrm share/neverputt/data/png +@dirrm share/neverputt/data/mtrl +@dirrm share/neverputt/data/map +@dirrm share/neverputt/data/bgm +@dirrm share/neverputt/data +@dirrm share/neverputt |