From owner-svn-ports-head@freebsd.org Mon Nov 14 15:10:22 2016 Return-Path: Delivered-To: svn-ports-head@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 C47ADC41317; Mon, 14 Nov 2016 15:10:22 +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 7A59C84; Mon, 14 Nov 2016 15:10:22 +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 uAEFALe2034167; Mon, 14 Nov 2016 15:10:21 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAEFALpE034161; Mon, 14 Nov 2016 15:10:21 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201611141510.uAEFALpE034161@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 14 Nov 2016 15:10:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426111 - in head/games: . crashtest crashtest/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-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 15:10:22 -0000 Author: amdmi3 Date: Mon Nov 14 15:10:20 2016 New Revision: 426111 URL: https://svnweb.freebsd.org/changeset/ports/426111 Log: - Add games/crashtest Crashtest simulates car crashes. This is an educational tool that can be used to acquire much insight into this complex process. The user can learn about the relation between speed, reaction-time and stopping distance. Also, many physical properties can be studied. WWW: http://www.stolk.org/crashtest/ Added: head/games/crashtest/ head/games/crashtest/Makefile (contents, props changed) head/games/crashtest/distinfo (contents, props changed) head/games/crashtest/files/ head/games/crashtest/files/patch-src-crashtest_Makefile (contents, props changed) head/games/crashtest/files/patch-src-crashtest_crashtest.cxx (contents, props changed) head/games/crashtest/pkg-descr (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Mon Nov 14 15:10:06 2016 (r426110) +++ head/games/Makefile Mon Nov 14 15:10:20 2016 (r426111) @@ -167,6 +167,7 @@ SUBDIR += crafty-open-medium SUBDIR += crafty-tablebase-no-pawn SUBDIR += crafty-tablebase-pawn + SUBDIR += crashtest SUBDIR += cre SUBDIR += cretan-hubris SUBDIR += crimson Added: head/games/crashtest/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/crashtest/Makefile Mon Nov 14 15:10:20 2016 (r426111) @@ -0,0 +1,47 @@ +# Created by: Dmitry Marakasov +# $FreeBSD$ + +PORTNAME= crashtest +PORTVERSION= 1.1 +CATEGORIES= games +MASTER_SITES= http://www.stolk.org/crashtest/ + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Educational crash simulator + +BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a:devel/ode \ + ${LOCALBASE}/lib/libplibul.a:x11-toolkits/plib +LIB_DEPENDS= libfltk.so:x11-toolkits/fltk + +USE_GL= gl glu + +BUILD_WRKSRC= ${WRKSRC}/src-crashtest + +PORTDOCS= * +PORTDATA= * +PLIST_FILES= bin/${PORTNAME} + +DESKTOP_ENTRIES="${PORTNAME}" \ + "" \ + "" \ + "${PORTNAME}" \ + "Game;Simulation;Physics;" \ + "" + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/src-crashtest/crashtest.cxx + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR}/models + ${INSTALL_DATA} ${WRKSRC}/models-crashtest/*.3ds ${STAGEDIR}${DATADIR}/models + ${INSTALL_DATA} ${WRKSRC}/models-crashtest/*.ac ${STAGEDIR}${DATADIR}/models + ${INSTALL_DATA} ${WRKSRC}/models-crashtest/*.bmp ${STAGEDIR}${DATADIR}/models + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${BUILD_WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ + +.include Added: head/games/crashtest/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/crashtest/distinfo Mon Nov 14 15:10:20 2016 (r426111) @@ -0,0 +1,3 @@ +TIMESTAMP = 1478619450 +SHA256 (crashtest-1.1.tar.gz) = 55c5ce29857263ceebc1c3f42c153f275dfc47711e9248395fd4398d6ef52ab9 +SIZE (crashtest-1.1.tar.gz) = 134769 Added: head/games/crashtest/files/patch-src-crashtest_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/crashtest/files/patch-src-crashtest_Makefile Mon Nov 14 15:10:20 2016 (r426111) @@ -0,0 +1,32 @@ +--- src-crashtest/Makefile.orig 2009-02-15 22:11:31 UTC ++++ src-crashtest/Makefile +@@ -1,8 +1,7 @@ + # EDIT THESE SETTINGS + +-PLIBPREFIX=/usr +-ODEPREFIX=/usr +-CXX=g++ ++PLIBPREFIX=${LOCALBASE} ++ODEPREFIX=${LOCALBASE} + + #PLIBPREFIX=$(HOME) + #ODEPREFIX=$(HOME) +@@ -10,15 +9,13 @@ CXX=g++ + + # END OF CUSTOM SETTINGS + +-CXXFLAGS=\ ++CXXFLAGS+=\ + -I$(ODEPREFIX)/include \ + -I$(PLIBPREFIX)/include \ +- -I../src-common \ +- -O2 -g -Wall ++ -I../src-common + + LFLAGS=\ +- -L$(PLIBPREFIX)/lib \ +- -L/usr/X11R6/lib ++ -L$(PLIBPREFIX)/lib + + OBJS=staticworldobject.o crashtest.o dynamicobject.o cartobject.o + Added: head/games/crashtest/files/patch-src-crashtest_crashtest.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/crashtest/files/patch-src-crashtest_crashtest.cxx Mon Nov 14 15:10:20 2016 (r426111) @@ -0,0 +1,16 @@ +--- src-crashtest/crashtest.cxx.orig 2009-02-15 22:08:24 UTC ++++ src-crashtest/crashtest.cxx +@@ -616,12 +616,7 @@ void seatbelt_cb(Fl_Widget *o) + int main(int argc, char *argv[]) + { + char *bindirname = dirname(argv[0]); +- if (!strcmp(bindirname,".")) +- dirprefix="/usr/share/games/crashtest"; +- else +- { +- dirprefix = dirname(bindirname) + std::string("/share/games/crashtest"); +- } ++ dirprefix="%%DATADIR%%"; + if (getenv("PLODE_DATADIR")) + dirprefix = getenv("PLODE_DATADIR"); + modelmap = new ModelMap(dirprefix); Added: head/games/crashtest/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/crashtest/pkg-descr Mon Nov 14 15:10:20 2016 (r426111) @@ -0,0 +1,6 @@ +Crashtest simulates car crashes. This is an educational tool that +can be used to acquire much insight into this complex process. The +user can learn about the relation between speed, reaction-time and +stopping distance. Also, many physical properties can be studied. + +WWW: http://www.stolk.org/crashtest/