1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Tokamak Game Physics SDK is a high performance real-time physics

library designed specially for games.  It has a high-level, simple
to use programming interface. With Tokamak, game developers and
designers are empowered to produce the next generation of interactive
games.

WWW: http://www.tokamakphysics.com/

Approved by:	miwi (mentor)
This commit is contained in:
Dmitry Marakasov 2008-06-24 11:04:50 +00:00
parent 19b99d8af6
commit 01a9ddb50e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215680
6 changed files with 123 additions and 0 deletions

View File

@ -2451,6 +2451,7 @@
SUBDIR += tmake
SUBDIR += tnt
SUBDIR += toh
SUBDIR += tokamak
SUBDIR += towitoko
SUBDIR += tpasm
SUBDIR += tpg

55
devel/tokamak/Makefile Normal file
View File

@ -0,0 +1,55 @@
# New ports collection makefile for: tokamak
# Date created: 24 Jun 2008
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tokamak
PORTVERSION= 1.0.5a
CATEGORIES= devel
MASTER_SITES= SF
MASTER_SITE_SUBDIR= tokamakp
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= High performance real-time physics library
USE_ZIP= yes
USE_GMAKE= yes
USE_DOS2UNIX= *
MAKE_ENV= CC=${CC} CXX=${CXX}
MAKEFILE= tokamak.make
ALL_TARGET=
WRKSRC= ${WRKDIR}/tokamak_release
BUILD_WRKSRC= ${WRKSRC}/build/gnu
PORTDOCS= *
.include <bsd.port.pre.mk>
.if !defined(WITH_DEBUG)
MAKE_ENV+= CPPFLAGS=-DNDEBUG
.endif
post-extract:
@cd ${WRKSRC} && ${UNZIP_CMD} -q tokamak-premake.zip
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/include/tokamak.h
do-install:
${MKDIR} ${PREFIX}/include/math/
${INSTALL_DATA} ${WRKSRC}/include/tokamak.h ${PREFIX}/include/
${INSTALL_DATA} ${WRKSRC}/include/math/*.h ${PREFIX}/include/math/
${INSTALL_DATA} ${WRKSRC}/lib/libtokamak_m.a ${PREFIX}/lib/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/license.txt ${WRKSRC}/readme.txt ${DOCSDIR}
cd ${WRKSRC}/documentation && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

3
devel/tokamak/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (tokamak_1.0.5a.zip) = fb2df0580d506aa72a5acce49801e531
SHA256 (tokamak_1.0.5a.zip) = 56c7e5d3f6f4852fee16540d9a90e068fa33f5ff8c9b35d45f304d19176ffcab
SIZE (tokamak_1.0.5a.zip) = 2085830

View File

@ -0,0 +1,42 @@
--- build/gnu/tokamak.make.orig 2008-06-24 00:30:13.000000000 +0400
+++ build/gnu/tokamak.make 2008-06-24 00:31:55.000000000 +0400
@@ -2,7 +2,7 @@
# Don't edit this file! Instead edit `premake.lua` then rerun `make`
ifndef CONFIG
- CONFIG=Debug
+ CONFIG=Release
endif
ifeq ($(CONFIG),Debug)
@@ -25,9 +25,9 @@
LIBDIR := ../../lib
OBJDIR := obj/Release
OUTDIR := ../../lib
- CPPFLAGS := -MMD -D "WIN32" -D "_LIB" -D "_CRT_SECURE_NO_DEPRECATE" -D "NDEBUG" -I "../../include/"
- CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -O2
- CXXFLAGS := $(CFLAGS) --no-exceptions --no-rtti
+ CPPFLAGS += -I "../../include/"
+ CFLAGS += $(CPPFLAGS)
+ CXXFLAGS += $(CPPFLAGS) --no-exceptions --no-rtti
LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -s
LDDEPS :=
RESFLAGS := -D "WIN32" -D "_LIB" -D "_CRT_SECURE_NO_DEPRECATE" -D "NDEBUG" -I "../../include/"
@@ -44,7 +44,7 @@
$(OBJDIR)/dcd.o \
$(OBJDIR)/lines.o \
$(OBJDIR)/ne_interface.o \
- $(OBJDIR)/perfwin32.o \
+ $(OBJDIR)/perflinux.o \
$(OBJDIR)/region.o \
$(OBJDIR)/restcontact.o \
$(OBJDIR)/rigidbody.o \
@@ -139,7 +139,7 @@
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o $@ -c $<
-$(OBJDIR)/perfwin32.o: ../../tokamaksrc/src/perfwin32.cpp
+$(OBJDIR)/perflinux.o: ../../tokamaksrc/src/perflinux.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)
@$(CXX) $(CXXFLAGS) -o $@ -c $<

7
devel/tokamak/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
Tokamak Game Physics SDK is a high performance real-time physics
library designed specially for games. It has a high-level, simple
to use programming interface. With Tokamak, game developers and
designers are empowered to produce the next generation of interactive
games.
WWW: http://www.tokamakphysics.com/

15
devel/tokamak/pkg-plist Normal file
View File

@ -0,0 +1,15 @@
include/math/ne_debug.h
include/math/ne_math.h
include/math/ne_math_m3_inline.h
include/math/ne_math_m4_inline.h
include/math/ne_math_misc_inline.h
include/math/ne_math_q_inline.h
include/math/ne_math_t3_inline.h
include/math/ne_math_v2_inline.h
include/math/ne_math_v3_inline.h
include/math/ne_math_v4_inline.h
include/math/ne_smath.h
include/math/ne_type.h
include/tokamak.h
lib/libtokamak_m.a
@dirrm include/math