diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-07-17 23:06:47 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-07-17 23:06:47 +0000 |
commit | 1c391f493c36f1316fcf8615bec00c274f0186a3 (patch) | |
tree | aa61e9e79b0f255f62348b02d563b260659a2abd /games | |
parent | 638760bec72c6b0df698b13a0fcab88de3545f52 (diff) | |
download | ports-1c391f493c36f1316fcf8615bec00c274f0186a3.tar.gz ports-1c391f493c36f1316fcf8615bec00c274f0186a3.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/legesmotus/Makefile | 57 | ||||
-rw-r--r-- | games/legesmotus/distinfo | 3 | ||||
-rw-r--r-- | games/legesmotus/files/patch-common.mak | 43 | ||||
-rw-r--r-- | games/legesmotus/pkg-descr | 6 | ||||
-rw-r--r-- | games/legesmotus/pkg-plist | 84 |
6 files changed, 194 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 7effed87a024..9cf5d88466ee 100644 --- a/games/Makefile +++ b/games/Makefile @@ -430,6 +430,7 @@ SUBDIR += lbreakout2 SUBDIR += ldmud SUBDIR += legends + SUBDIR += legesmotus SUBDIR += lexter SUBDIR += lgeneral SUBDIR += lgeneral-data diff --git a/games/legesmotus/Makefile b/games/legesmotus/Makefile new file mode 100644 index 000000000000..e03d840a26ad --- /dev/null +++ b/games/legesmotus/Makefile @@ -0,0 +1,57 @@ +# New ports collection makefile for: legesmotus +# Date created: 16 Jul 2009 +# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= legesmotus +PORTVERSION= 0.2.1 +CATEGORIES= games +MASTER_SITES= SF + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= A team-based, networked, 2D shooter set in zero-gravity + +USE_GMAKE= yes +MAKE_ENV= DATADIR=${DATADIR} +MAKE_JOBS_SAFE= yes + +PORTDOCS= * + +MAN6= lmserver.6 + +OPTIONS= LM_SERVER_ONLY "Build dedicated server only" off + +.include <bsd.port.options.mk> + +.if defined(WITH_LM_SERVER_ONLY) +PLIST_SUB+= CLIENT="@comment " +ALL_TARGET= server +PKGNAMESUFFIX= -server +.else +MAN6+= legesmotus.6 +PLIST_SUB+= CLIENT="" +USE_SDL= sdl image ttf mixer +USE_GL= gl +.endif + +.include <bsd.port.pre.mk> + +do-install: + ${MKDIR} ${DATADIR} +.if !defined(WITH_LM_SERVER_ONLY) + ${INSTALL_PROGRAM} ${WRKSRC}/client/legesmotus ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/man/man6/legesmotus.6 ${MAN6PREFIX}/man/man6/ + cd ${WRKSRC}/data && ${COPYTREE_SHARE} '*' ${DATADIR}/ +.else + cd ${WRKSRC}/data && ${COPYTREE_SHARE} 'maps' ${DATADIR}/ +.endif + ${INSTALL_PROGRAM} ${WRKSRC}/server/lmserver ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/man/man6/lmserver.6 ${MAN6PREFIX}/man/man6/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ +.endif + +.include <bsd.port.post.mk> diff --git a/games/legesmotus/distinfo b/games/legesmotus/distinfo new file mode 100644 index 000000000000..587c752060ca --- /dev/null +++ b/games/legesmotus/distinfo @@ -0,0 +1,3 @@ +MD5 (legesmotus-0.2.1.tar.gz) = 31848ea48f00e6a0546fda83ed832160 +SHA256 (legesmotus-0.2.1.tar.gz) = c3d582d144790944557bbc3aa9dd33553fcc1e6b2d5c2261b6e4f4872549940d +SIZE (legesmotus-0.2.1.tar.gz) = 1260349 diff --git a/games/legesmotus/files/patch-common.mak b/games/legesmotus/files/patch-common.mak new file mode 100644 index 000000000000..37ea64b87e39 --- /dev/null +++ b/games/legesmotus/files/patch-common.mak @@ -0,0 +1,43 @@ +--- common.mak.orig 2009-07-12 03:27:25.000000000 +0400 ++++ common.mak 2009-07-16 22:27:20.000000000 +0400 +@@ -8,7 +8,6 @@ + VERSION = 0.2.1 + + # These may be overridden by config.mak +-DATADIR = data + #UNIVERSAL = 1 + #UNIXSTYLE = 1 + +@@ -43,8 +42,8 @@ + ifeq ($(MACHINE),SunOS) + LIBS += -lnsl -lsocket -lresolv + endif +-FLAGS_SDL = $(shell sdl-config --cflags) +-LIBS_SDL = $(shell sdl-config --libs) -lSDL_image -lSDL_ttf ++FLAGS_SDL = $(shell ${SDL_CONFIG} --cflags) ++LIBS_SDL = $(shell ${SDL_CONFIG} --libs) -lSDL_image -lSDL_ttf + ifeq ($(NOSOUND),) + LIBS_SDL += -lSDL_mixer + endif +@@ -60,7 +59,7 @@ + ifeq ($(MACHINE),Windows) + LIBS_GL = -lopengl32 + else +-LIBS_GL = -L/usr/X11/lib/ -lGL ++LIBS_GL = -L${LOCALBASE}/lib/ -lGL + endif + endif + +@@ -68,12 +67,6 @@ + + CFLAGS += -Wall + +-ifeq ($(DEBUG),1) +-CFLAGS += -g -O0 +-else +-CFLAGS += -O2 +-endif +- + LDFLAGS += $(CFLAGS) + CFLAGS += $(FLAGS_GL) $(INCLUDES) + ifeq ($(MACHINE),Windows) diff --git a/games/legesmotus/pkg-descr b/games/legesmotus/pkg-descr new file mode 100644 index 000000000000..590fa0e2feb1 --- /dev/null +++ b/games/legesmotus/pkg-descr @@ -0,0 +1,6 @@ +Leges Motus is a networked, team-based, 2D shooter set in zero-gravity. +Using only the force from jumping off of walls and the recoil from +their guns, players must travel across the arena to lower their +opponent's gate + +WWW: http://legesmotus.cs.brown.edu/ diff --git a/games/legesmotus/pkg-plist b/games/legesmotus/pkg-plist new file mode 100644 index 000000000000..5290f8608f6c --- /dev/null +++ b/games/legesmotus/pkg-plist @@ -0,0 +1,84 @@ +%%CLIENT%%bin/legesmotus +bin/lmserver +%%CLIENT%%%%DATADIR%%/fonts/JuraDemiBold.ttf +%%CLIENT%%%%DATADIR%%/fonts/JuraMedium.ttf +%%CLIENT%%%%DATADIR%%/fonts/license-gpl-3.0.txt +%%CLIENT%%%%DATADIR%%/fonts/license-ofl.txt +%%DATADIR%%/maps/COPYING +%%DATADIR%%/maps/alpha1-death.map +%%DATADIR%%/maps/alpha1.map +%%DATADIR%%/maps/beta2.map +%%DATADIR%%/maps/big.map +%%DATADIR%%/maps/gamma3.map +%%DATADIR%%/maps/maze.map +%%DATADIR%%/maps/oneobject.map +%%DATADIR%%/maps/soundbarrier.map +%%DATADIR%%/maps/test.map +%%CLIENT%%%%DATADIR%%/sounds/LMGateSiren-old.ogg +%%CLIENT%%%%DATADIR%%/sounds/LMGateSiren.ogg +%%CLIENT%%%%DATADIR%%/sounds/LMGunshot-alternate.ogg +%%CLIENT%%%%DATADIR%%/sounds/LMGunshot.ogg +%%CLIENT%%%%DATADIR%%/sounds/button_click.ogg +%%CLIENT%%%%DATADIR%%/sounds/buzzerheavy.ogg +%%CLIENT%%%%DATADIR%%/sounds/clockchime1.ogg +%%CLIENT%%%%DATADIR%%/sounds/defeatsound.ogg +%%CLIENT%%%%DATADIR%%/sounds/disenchant.ogg +%%CLIENT%%%%DATADIR%%/sounds/dissolve.ogg +%%CLIENT%%%%DATADIR%%/sounds/enchant.ogg +%%CLIENT%%%%DATADIR%%/sounds/laserhit.ogg +%%CLIENT%%%%DATADIR%%/sounds/positive_gate_siren.ogg +%%CLIENT%%%%DATADIR%%/sounds/victory_fanfare.ogg +%%CLIENT%%%%DATADIR%%/sprites/COPYING +%%CLIENT%%%%DATADIR%%/sprites/blue_armless.png +%%CLIENT%%%%DATADIR%%/sprites/blue_backarm.png +%%CLIENT%%%%DATADIR%%/sprites/blue_backleg.png +%%CLIENT%%%%DATADIR%%/sprites/blue_frontarm.png +%%CLIENT%%%%DATADIR%%/sprites/blue_frontleg.png +%%CLIENT%%%%DATADIR%%/sprites/blue_full.png +%%CLIENT%%%%DATADIR%%/sprites/blue_gate.png +%%CLIENT%%%%DATADIR%%/sprites/blue_head.png +%%CLIENT%%%%DATADIR%%/sprites/blue_head32.png +%%CLIENT%%%%DATADIR%%/sprites/blue_head512.png +%%CLIENT%%%%DATADIR%%/sprites/blue_torso.png +%%CLIENT%%%%DATADIR%%/sprites/crosshairs.png +%%CLIENT%%%%DATADIR%%/sprites/gun_noshot.png +%%CLIENT%%%%DATADIR%%/sprites/gun_shot.png +%%CLIENT%%%%DATADIR%%/sprites/legesmotuslogo.png +%%CLIENT%%%%DATADIR%%/sprites/metal_bg.png +%%CLIENT%%%%DATADIR%%/sprites/metal_bgtile.png +%%CLIENT%%%%DATADIR%%/sprites/metal_bgtile64.png +%%CLIENT%%%%DATADIR%%/sprites/metal_gate_e.png +%%CLIENT%%%%DATADIR%%/sprites/metal_gate_w.png +%%CLIENT%%%%DATADIR%%/sprites/metal_obstacle128.png +%%CLIENT%%%%DATADIR%%/sprites/metal_obstacle64.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_e32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_en32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_es32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_n32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_ne32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_nw32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_s32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_se32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_sw32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_w32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_wn32.png +%%CLIENT%%%%DATADIR%%/sprites/metal_wall_ws32.png +%%CLIENT%%%%DATADIR%%/sprites/mini_bg.png +%%CLIENT%%%%DATADIR%%/sprites/mini_blip_blue.png +%%CLIENT%%%%DATADIR%%/sprites/mini_blip_red.png +%%CLIENT%%%%DATADIR%%/sprites/mini_circle.png +%%CLIENT%%%%DATADIR%%/sprites/red_armless.png +%%CLIENT%%%%DATADIR%%/sprites/red_backarm.png +%%CLIENT%%%%DATADIR%%/sprites/red_backleg.png +%%CLIENT%%%%DATADIR%%/sprites/red_frontarm.png +%%CLIENT%%%%DATADIR%%/sprites/red_frontleg.png +%%CLIENT%%%%DATADIR%%/sprites/red_full.png +%%CLIENT%%%%DATADIR%%/sprites/red_gate.png +%%CLIENT%%%%DATADIR%%/sprites/red_head.png +%%CLIENT%%%%DATADIR%%/sprites/red_torso.png +%%CLIENT%%%%DATADIR%%/sprites/shot.png +%%CLIENT%%@dirrm %%DATADIR%%/sprites +%%CLIENT%%@dirrm %%DATADIR%%/sounds +@dirrm %%DATADIR%%/maps +%%CLIENT%%@dirrm %%DATADIR%%/fonts +@dirrm %%DATADIR%% |