From owner-svn-ports-all@freebsd.org Mon Nov 21 15:24:36 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84574C4D7CB; Mon, 21 Nov 2016 15:24:36 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 470CB18B1; Mon, 21 Nov 2016 15:24:36 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uALFOZiV016688; Mon, 21 Nov 2016 15:24:35 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uALFOYxs016682; Mon, 21 Nov 2016 15:24:34 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201611211524.uALFOYxs016682@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 21 Nov 2016 15:24:34 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 15:24:36 -0000 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 +# $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 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