1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

The Wild Magic Real-Time 3D Graphics Engine is described in the book "3D Game

Engine Design: A Practical Approach to Real-Time Computer Graphics".

Much of the source code is for 3D real-time graphics, but you will find quite a
bit for other purposes.

<http://www.geometrictools.com/>
This commit is contained in:
Thierry Thomas 2007-05-26 19:23:44 +00:00
parent e165e3d1b7
commit cf88fd19da
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191925
9 changed files with 3016 additions and 0 deletions

View File

@ -711,6 +711,7 @@
SUBDIR += vvv
SUBDIR += whirlgif
SUBDIR += white_dune
SUBDIR += wildmagic
SUBDIR += wings
SUBDIR += wmgrabimage
SUBDIR += wmicons

View File

@ -0,0 +1,90 @@
# New ports collection makefile for: WildMagic
# Date created: Sun 1 apr 2007
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= WildMagic
DISTVERSION= 4p4
CATEGORIES= graphics
MASTER_SITES= http://www.geometrictools.com/Downloads/
DISTNAME= ${PORTNAME}${DISTVERSION}
MAINTAINER= thierry@FreeBSD.org
COMMENT= The Wild Magic Real-Time 3D Graphics Engine
USE_ZIP= yes
USE_DOS2UNIX= yes
USE_GL= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/GeometricTools/${PORTNAME}${MV}
DOS2UNIX_REGEX= .*\.(wm${MV}|h|inl)
MAKEFILE= makefile.wm${MV}
ALL_TARGET= build
MAKE_ARGS= CFG=${CONFIG} SYS=${OPSYS:L} GRF=${GRF}
MAKE_ENV= CC=${CXX} GCC=${CC} AR=${AR} EGL=${EGL} EGL0=glx EGL1=Glx \
INCPATH="-I${LOCALBASE}/include -I${X11BASE}/include" \
LIBPATH="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
XLIBS="-lX11 -lXext" GLIBS="-lGL -lGLU"
PLIST_SUB= CFG=${CONFIG} GRF=${GRF} WM=Wm${MV}
.if defined(WITH_OPENGL)
GRF= OpenGL
EGL= Glx
PLIST_SUB+= OGL="" SOFT="@comment "
IGNORE= this version does not run with OpenGL
.else
GRF= Soft
EGL= XSoft
PLIST_SUB+= OGL="@comment " SOFT=""
.endif
MV= ${PORTVERSION:R}
SAMPLEDIRS= SampleFoundation SampleGraphics SampleImagics SamplePhysics
.if defined(WITH_DEBUG)
CONFIG= Debug
CFLAGS+= -D_DEBUG
.else
# Legit values: Debug, Release, DebugMemory, ReleaseMemory
CONFIG= Release
#CFLAGS+= -DNDEBUG
.endif
pre-configure:
${FIND} ${WRKSRC} -name "*.wm${MV}" | ${XARGS} \
${REINPLACE_CMD} -e 's|make -f|${SETENV} ${MAKE_ENV} ${GMAKE} -f|; \
s|; make |; ${SETENV} ${MAKE_ENV} ${GMAKE} |; \
s|-O2 -DNDEBUG|${CFLAGS} |;s|CFLAGS := -c|CFLAGS += -c|;\
s|INCPATH := |INCPATH += |; s|LIBPATH := |LIBPATH += |'
${REINPLACE_CMD} -e 's|GetEnv("WM4_PATH")|"${DATADIR}"|' \
${WRKSRC}/LibFoundation/System/Wm4System.cpp
post-build:
.for sd in ${SAMPLEDIRS}
${FIND} ${WRKSRC}/${sd} -type f -perm 755 -exec \
${STRIP_CMD} {} \;
.endfor
do-install:
${MKDIR} ${PREFIX}/include/Wm${MV} ${DATADIR}
${FIND} ${WRKSRC}/SDK/Library/Release -name "libWm*" -exec \
${INSTALL_DATA} {} ${PREFIX}/lib \;
${FIND} ${WRKSRC}/SDK/Include -name "Wm*" -exec \
${INSTALL_DATA} {} ${PREFIX}/include/Wm${MV} \;
${CP} -R ${WRKSRC}/Data ${DATADIR}
.ifndef NOPORTDOCS
${MKDIR} ${EXAMPLESDIR}
. for sd in ${SAMPLEDIRS}
${CP} -R ${WRKSRC}/${sd} ${EXAMPLESDIR}
. endfor
# make clean
${FIND} ${EXAMPLESDIR} -type d -name ${CONFIG} -exec \
${RM} -rf {} \; 2>/dev/null || ${TRUE}
${FIND} ${EXAMPLESDIR} -name "*.orig" -delete
${FIND} ${EXAMPLESDIR} -name "*.bak" -delete
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (WildMagic4p4.zip) = 1831f40c6ac8196b8ab717f5bf554b93
SHA256 (WildMagic4p4.zip) = 0b4756f093c7243463db701d73e38b2543eecc9ddbde682ae0750d77634c670b
SIZE (WildMagic4p4.zip) = 25458968

View File

@ -0,0 +1,12 @@
--- ./SampleFoundation/makeapp.wm4.orig Wed Apr 4 22:17:21 2007
+++ ./SampleFoundation/makeapp.wm4 Wed Apr 4 22:19:44 2007
@@ -3,7 +3,8 @@
INCPATH := -I ../../SDK/Include
CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \
-lWm4Foundation
-
+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm
+
ifeq (Soft,$(findstring Soft,$(GRF)))
CFLAGS += -DWM4_HAS_SOFT_SHADER
endif

View File

@ -0,0 +1,12 @@
--- ./SampleGraphics/makeapp.wm4.orig Wed Apr 4 22:17:21 2007
+++ ./SampleGraphics/makeapp.wm4 Wed Apr 4 22:20:04 2007
@@ -3,7 +3,8 @@
INCPATH := -I ../../SDK/Include
CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \
-lWm4Foundation
-
+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm
+
ifeq (Soft,$(findstring Soft,$(GRF)))
CFLAGS += -DWM4_HAS_SOFT_SHADER
endif

View File

@ -0,0 +1,12 @@
--- ./SampleImagics/makeapp.wm4.orig Wed Apr 4 22:17:21 2007
+++ ./SampleImagics/makeapp.wm4 Wed Apr 4 22:20:25 2007
@@ -3,7 +3,8 @@
INCPATH := -I ../../SDK/Include
CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \
-lWm4Imagics -lWm4Foundation
-
+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm
+
ifeq (Soft,$(findstring Soft,$(GRF)))
CFLAGS += -DWM4_HAS_SOFT_SHADER
endif

View File

@ -0,0 +1,12 @@
--- ./SamplePhysics/makeapp.wm4.orig Wed Apr 4 22:17:21 2007
+++ ./SamplePhysics/makeapp.wm4 Wed Apr 4 22:20:39 2007
@@ -3,7 +3,8 @@
INCPATH := -I ../../SDK/Include
CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \
-lWm4Imagics -lWm4Physics -lWm4Foundation
-
+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm
+
ifeq (Soft,$(findstring Soft,$(GRF)))
CFLAGS += -DWM4_HAS_SOFT_SHADER
endif

View File

@ -0,0 +1,7 @@
The Wild Magic Real-Time 3D Graphics Engine is described in the book "3D Game
Engine Design: A Practical Approach to Real-Time Computer Graphics".
Much of the source code is for 3D real-time graphics, but you will find quite a
bit for other purposes.
WWW: http://www.geometrictools.com/

2867
graphics/wildmagic/pkg-plist Normal file

File diff suppressed because it is too large Load Diff