aboutsummaryrefslogtreecommitdiff
path: root/games/tuxracer-commercial/Makefile
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2001-01-05 13:19:36 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2001-01-05 13:19:36 +0000
commit39609ad548dca1f25c07300bcfbc128cbf3c5e1f (patch)
tree7849e1ad225c52cb73247f23a487872b6e903652 /games/tuxracer-commercial/Makefile
parent0f82eea8ee54d1ee89eed2de044b6f99f2e89303 (diff)
downloadports-39609ad548dca1f25c07300bcfbc128cbf3c5e1f.tar.gz
ports-39609ad548dca1f25c07300bcfbc128cbf3c5e1f.zip
Add tuxracer, a 3d penguin racing game using OpenGL.
PR: 20582 Submitted by: Eric Anholt
Notes
Notes: svn path=/head/; revision=36816
Diffstat (limited to 'games/tuxracer-commercial/Makefile')
-rw-r--r--games/tuxracer-commercial/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/games/tuxracer-commercial/Makefile b/games/tuxracer-commercial/Makefile
new file mode 100644
index 000000000000..662c933ac6a0
--- /dev/null
+++ b/games/tuxracer-commercial/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: tuxracer
+# Date created: 8 August 2000
+# Whom: Eric Anholt
+#
+# $FreeBSD$
+#
+
+PORTNAME= tuxracer
+PORTVERSION= 0.12.1
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=tuxracer
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \
+ ${PORTNAME}-data-${PORTVERSION}.tar.gz
+
+MAINTAINER= anholt@teleport.com
+
+LIB_DEPENDS= glut.3:${PORTSDIR}/graphics/Mesa3 \
+ tcl82.1:${PORTSDIR}/lang/tcl82
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_AUTOCONF= yes
+CONFIGURE_ARGS+=--with-tcl-inc="${LOCALBASE}/include/tcl8.2" \
+ --with-tcl-libs="${LOCALBASE}/lib" \
+ --with-glut-libs="${X11BASE}/lib" \
+ --with-glut-inc="${X11BASE}/include" \
+ --with-data-dir=${PREFIX}/share/tuxracer
+
+CFLAGS+= -L${X11BASE}/lib
+
+WORKDATA= ${WRKDIR}/${PORTNAME}-data-${PORTVERSION}
+SHAREDIR= ${PREFIX}/share/${PORTNAME}
+COURSEDIRS= 1 2 3 4 5 6 7 8 9 10 11
+
+post-install:
+ ${MKDIR} ${SHAREDIR}/courses
+.for i in ${COURSEDIRS}
+ ${MKDIR} ${SHAREDIR}/courses/${i}
+ ${INSTALL_DATA} ${WORKDATA}/courses/${i}/course.tcl ${SHAREDIR}/courses/${i}/
+ ${INSTALL_DATA} ${WORKDATA}/courses/${i}/elev.rgb ${SHAREDIR}/courses/${i}/
+ ${INSTALL_DATA} ${WORKDATA}/courses/${i}/terrain.rgb ${SHAREDIR}/courses/${i}/
+ ${INSTALL_DATA} ${WORKDATA}/courses/${i}/trees.rgb ${SHAREDIR}/courses/${i}/
+.endfor
+ ${MKDIR} ${SHAREDIR}/courses/common
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/background1.rgb ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/background2.rgb ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/background3.rgb ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/ice.rgb ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/rock.rgb ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/snow.rgb ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/standard_light.tcl ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/tree.rgb ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/tree_polyhedron.tcl ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/tux_moonwalk.tcl ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/courses/common/tux_walk.tcl ${SHAREDIR}/courses/common/
+ ${INSTALL_DATA} ${WORKDATA}/tux.tcl ${SHAREDIR}/
+
+.include <bsd.port.mk>