Date: Mon, 21 Nov 2016 15:24:34 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426728 - in head/games: . asylum asylum/files Message-ID: <201611211524.uALFOYxs016682@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Mon Nov 21 15:24:34 2016 New Revision: 426728 URL: https://svnweb.freebsd.org/changeset/ports/426728 Log: - Add games/asylum SDL Asylum is a C port of the computer game Asylum, which was written by Andy Southgate in 1994 for the Acorn Archimedes and is now public domain. "Young Sigmund has a few problems. To help him resolve his mental instability you must enter the surreal world of his inner mind and shut down the malfunctioning brain cells which are causing him these problems." -- Instructions file from original game WWW: http://sdl-asylum.sourceforge.net/ Added: head/games/asylum/ head/games/asylum/Makefile (contents, props changed) head/games/asylum/distinfo (contents, props changed) head/games/asylum/files/ head/games/asylum/files/patch-Makefile (contents, props changed) head/games/asylum/pkg-descr (contents, props changed) head/games/asylum/pkg-plist (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Mon Nov 21 15:05:03 2016 (r426727) +++ head/games/Makefile Mon Nov 21 15:24:34 2016 (r426728) @@ -52,6 +52,7 @@ SUBDIR += assaultcube SUBDIR += asteroid SUBDIR += asteroids3d + SUBDIR += asylum SUBDIR += atanks SUBDIR += atomix SUBDIR += atr3d Added: head/games/asylum/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asylum/Makefile Mon Nov 21 15:24:34 2016 (r426728) @@ -0,0 +1,48 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= asylum +PORTVERSION= 0.3.2 +CATEGORIES= games +MASTER_SITES= SF/sdl-${PORTNAME}/Asylum/${PORTVERSION}/ + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Surreal platform shooting game + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= gmake +USE_SDL= sdl mixer +ALL_TARGET= build +USE_GL= gl glu + +PORTDOCS= Instruct README +PORTDATA= * + +MAKE_ARGS= INSTALLRESOURCEPATH="${DATADIR}" \ + INSTALLHISCORES="/var/games/${PORTNAME}" + +OPTIONS_DEFINE= DOCS + +post-extract: + @${RM} ${WRKSRC}/${PORTNAME} + @cd ${WRKSRC} && for f in *.c; do \ + ${MV} $${f} $${f}pp; \ + done + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}/var/games/${PORTNAME} +.for f in Ego Psyche Id Extended + ${TOUCH} ${STAGEDIR}/var/games/${PORTNAME}/${f}HighScores.sample +.endfor + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ +.endfor + +.include <bsd.port.mk> Added: head/games/asylum/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asylum/distinfo Mon Nov 21 15:24:34 2016 (r426728) @@ -0,0 +1,3 @@ +TIMESTAMP = 1476901673 +SHA256 (asylum-0.3.2.tar.gz) = 94c5bc7de89f185cbc0ac7a4add21e890ca9680a6d01c21841aae69c4b9e724f +SIZE (asylum-0.3.2.tar.gz) = 462671 Added: head/games/asylum/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asylum/files/patch-Makefile Mon Nov 21 15:24:34 2016 (r426728) @@ -0,0 +1,32 @@ +--- Makefile.orig 2009-02-20 21:46:51 UTC ++++ Makefile +@@ -2,14 +2,15 @@ HOST=generic + #HOST=mingw + #HOST=haiku + +-CC=g++ ++CXX?=g++ + RM=rm +-CFLAGS= -O3 +-COPTS= $(CFLAGS) -funsigned-char \ ++CXXFLAGS?= -O3 ++CXXFLAGS+= `sdl-config --cflags` ++COPTS= $(CXXFLAGS) -funsigned-char \ + -DRESOURCEPATH=\"$(INSTALLRESOURCEPATH)\" \ + -DSCOREPATH=\"$(INSTALLHISCORES)\" +-LIBS= -lm -lSDL -lSDL_mixer -lGL -lGLU +-SRCS= alien.c asylum.c bullet.c file.c keyboard.c maze.c menus.c player.c projectile.c sound.c vdu.c ++LIBS= -lm `sdl-config --libs` -lSDL_mixer -lGL -lGLU ++SRCS= alien.cpp asylum.cpp bullet.cpp file.cpp keyboard.cpp maze.cpp menus.cpp player.cpp projectile.cpp sound.cpp vdu.cpp + + RESOURCES=data/Resources data/Ego data/Psyche data/Id data/Voices + +@@ -95,7 +96,7 @@ oggs: + build: asylum$(EXE) + + asylum$(EXE): $(SRCS) $(OS_SOURCE) asylum.h Makefile +- $(CC) $(COPTS) $(LDFLAGS) -o asylum$(EXE) $(SRCS) $(OS_SOURCE) $(LIBS) ++ $(CXX) $(COPTS) $(LDFLAGS) -o asylum$(EXE) $(SRCS) $(OS_SOURCE) $(LIBS) + + clean: + $(RM) asylum$(EXE) Added: head/games/asylum/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asylum/pkg-descr Mon Nov 21 15:24:34 2016 (r426728) @@ -0,0 +1,10 @@ +SDL Asylum is a C port of the computer game Asylum, which was +written by Andy Southgate in 1994 for the Acorn Archimedes and is +now public domain. + +"Young Sigmund has a few problems. To help him resolve his mental +instability you must enter the surreal world of his inner mind and +shut down the malfunctioning brain cells which are causing him these +problems." -- Instructions file from original game + +WWW: http://sdl-asylum.sourceforge.net/ Added: head/games/asylum/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asylum/pkg-plist Mon Nov 21 15:24:34 2016 (r426728) @@ -0,0 +1,6 @@ +@(,games,2555) bin/asylum +@sample(,games,664) /var/games/asylum/EgoHighScores.sample +@sample(,games,664) /var/games/asylum/ExtendedHighScores.sample +@sample(,games,664) /var/games/asylum/IdHighScores.sample +@sample(,games,664) /var/games/asylum/PsycheHighScores.sample +@dir(,games,775) /var/games/asylum
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611211524.uALFOYxs016682>