From owner-freebsd-ports Sat Nov 6 15:40:12 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3E9EA14E17 for ; Sat, 6 Nov 1999 15:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA83729; Sat, 6 Nov 1999 15:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from silver.teardrop.org (silver.teardrop.net [216.155.28.66]) by hub.freebsd.org (Postfix) with ESMTP id C6A4B14A16 for ; Sat, 6 Nov 1999 15:38:05 -0800 (PST) (envelope-from adams@silver.teardrop.org) Received: (from adams@localhost) by silver.teardrop.org (8.9.3/8.9.2) id SAA16651; Sat, 6 Nov 1999 18:38:04 -0500 (EST) (envelope-from adams) Message-Id: <199911062338.SAA16651@silver.teardrop.org> Date: Sat, 6 Nov 1999 18:38:04 -0500 (EST) From: adams@digitalspark.net Reply-To: adams@digitalspark.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/14752: new port (xracer) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14752 >Category: ports >Synopsis: new port (xracer) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Nov 6 15:40:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Adam Strohl >Release: FreeBSD 4.0-CURRENT i386 >Organization: DigitalSpark.NET >Environment: N/A >Description: new port (xracer), sweeeeeeeeeeeeeeet >How-To-Repeat: N/A >Fix: port shar file follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # port/ # port/Makefile # port/files # port/files/md5 # port/patches # port/patches/patch-aa # port/pkg # port/pkg/COMMENT # port/pkg/DESCR # port/pkg/MESSAGE # port/pkg/PLIST # echo c - port/ mkdir -p port/ > /dev/null 2>&1 echo x - port/Makefile sed 's/^X//' >port/Makefile << 'END-of-port/Makefile' X# New ports collection makefile for: xracer X# Version required: 0.94 X# Date created: Nov 6th 1999 X# Whom: troll X# X# $Id$ X# X XDISTNAME= xracer-0.94 XCATEGORIES= games XMASTER_SITES= http://xracer.annexia.org/ XDISTFILES= xracer-0.94.tar.gz xracer-data.tar.gz X XMAINTAINER= troll@digitalspark.net X XLIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg:build X XMAKEFILE= Makefile XWRKSRC= ${WRKDIR}/xracer-0.94 X XUSE_GMAKE= YES XHAS_CONFIGURE= YES X Xpost-install: X @ ${ECHO} "===> Installing Tracks and Sound" X @ ${CP} -R ${WRKSRC}/../xracer-data \ X ${PREFIX}/lib/xracer X @ chmod -R 744 ${PREFIX}/lib/xracer X @ chmod -R a+X ${PREFIX}/lib/xracer X @ ${ECHO} "===> Installing Documentation" X @ ${MKDIR} ${PREFIX}/share/doc/xracer X @${INSTALL_DATA} ${WRKSRC}/README \ X ${PREFIX}/share/doc/xracer X @${INSTALL_DATA} ${WRKSRC}/AUTHORS \ X ${PREFIX}/share/doc/xracer X @${INSTALL_DATA} ${WRKSRC}/COPYING \ X ${PREFIX}/share/doc/xracer X @${INSTALL_DATA} ${WRKSRC}/NEWS \ X ${PREFIX}/share/doc/xracer X @${INSTALL_DATA} ${WRKSRC}/README.html \ X ${PREFIX}/share/doc/xracer X @${INSTALL_DATA} ${WRKSRC}/ChangeLog \ X ${PREFIX}/share/doc/xracer X @ ${ECHO} "===> Stripping Binaries" X @ strip ${PREFIX}/bin/xracer X @ strip ${PREFIX}/bin/mktrackmodel X @ strip ${PREFIX}/bin/mktrack X @ strip ${PREFIX}/bin/perlin X @ strip ${PREFIX}/bin/test-poly-opts X X @${CAT} ${PKGDIR}/MESSAGE X X.include END-of-port/Makefile echo c - port/files mkdir -p port/files > /dev/null 2>&1 echo x - port/files/md5 sed 's/^X//' >port/files/md5 << 'END-of-port/files/md5' XMD5 (xracer-0.94.tar.gz) = 0586c827ac57d024e5f89f7d2ff97a6f XMD5 (xracer-data.tar.gz) = 167c3e0688ec7a880ccd8fabac48252f END-of-port/files/md5 echo c - port/patches mkdir -p port/patches > /dev/null 2>&1 echo x - port/patches/patch-aa sed 's/^X//' >port/patches/patch-aa << 'END-of-port/patches/patch-aa' Xdiff -ruN ../xracer-0.94.old/config.log ./config.log X--- ../xracer-0.94.old/config.log Thu Jan 1 00:00:00 1970 X+++ ./config.log Sat Nov 6 16:27:49 1999 X@@ -0,0 +1,55 @@ X+This file contains any messages produced by compilers while X+running configure, to aid debugging if configure makes a mistake. X+ X+configure:604: checking for a BSD compatible install X+configure:657: checking whether build environment is sane X+configure:714: checking whether make sets ${MAKE} X+configure:760: checking for working aclocal X+configure:773: checking for working autoconf X+configure:786: checking for working automake X+configure:799: checking for working autoheader X+configure:812: checking for working makeinfo X+configure:829: checking for gcc X+configure:906: checking whether the C compiler (gcc ) works X+configure:920: gcc -o conftest conftest.c 1>&5 X+configure:940: checking whether the C compiler (gcc ) is a cross-compiler X+configure:945: checking whether we are using GNU C X+configure:954: gcc -E conftest.c X+configure:969: checking whether gcc accepts -g X+configure:999: checking for gcc X+configure:1076: checking whether the C compiler (gcc -g -O2 ) works X+configure:1090: gcc -o conftest -g -O2 conftest.c 1>&5 X+configure:1110: checking whether the C compiler (gcc -g -O2 ) is a cross-compiler X+configure:1115: checking whether we are using GNU C X+configure:1139: checking whether gcc accepts -g X+configure:1177: checking for a BSD compatible install X+configure:1227: checking whether make sets ${MAKE} X+configure:1324: checking for getopt_long X+configure:1352: gcc -o conftest -g -O2 conftest.c 1>&5 X+/tmp/ccP13028.o: In function `main': X+/usr/home/adams/port/xracer/xracer-0.94/configure(.text+0x4): undefined reference to `getopt_long' X+configure: failed program was: X+#line 1329 "configure" X+#include "confdefs.h" X+/* System header to define __stub macros and hopefully few prototypes, X+ which can conflict with char getopt_long(); below. */ X+#include X+/* Override any gcc2 internal prototype to avoid an error. */ X+/* We use char because int might match the return type of a gcc2 X+ builtin and then its argument prototype would still apply. */ X+char getopt_long(); X+ X+int main() { X+ X+/* The GNU C library defines this for functions which it implements X+ to always fail with ENOSYS. Some functions are actually named X+ something starting with __ and the normal name is an alias. */ X+#if defined (__stub_getopt_long) || defined (__stub___getopt_long) X+choke me X+#else X+getopt_long(); X+#endif X+ X+; return 0; } X+configure:1324: checking for getopt X+configure:1352: gcc -o conftest -g -O2 conftest.c 1>&5 Xdiff -ruN ../xracer-0.94.old/configure ./configure X--- ../xracer-0.94.old/configure Sat Nov 6 16:27:49 1999 X+++ ./configure Sat Nov 6 16:27:49 1999 X@@ -2792,7 +2792,7 @@ X echo $ac_n "(cached) $ac_c" 1>&6 X else X ac_save_LIBS="$LIBS" X-LIBS="-ljpeg $jpeg_LIBS $LIBS" X+LIBS="-L/usr/local/lib -ljpeg $jpeg_LIBS $LIBS" X cat > conftest.$ac_ext <&5 X++configure:940: checking whether the C compiler (gcc ) is a cross-compiler X++configure:945: checking whether we are using GNU C X++configure:954: gcc -E conftest.c X++configure:969: checking whether gcc accepts -g X++configure:999: checking for gcc X++configure:1076: checking whether the C compiler (gcc -g -O2 ) works X++configure:1090: gcc -o conftest -g -O2 conftest.c 1>&5 X++configure:1110: checking whether the C compiler (gcc -g -O2 ) is a cross-compiler X++configure:1115: checking whether we are using GNU C X++configure:1139: checking whether gcc accepts -g X++configure:1177: checking for a BSD compatible install X++configure:1227: checking whether make sets ${MAKE} X++configure:1324: checking for getopt_long X++configure:1352: gcc -o conftest -g -O2 conftest.c 1>&5 X++/tmp/ccP13028.o: In function `main': X++/usr/home/adams/port/xracer/xracer-0.94/configure(.text+0x4): undefined reference to `getopt_long' X++configure: failed program was: X++#line 1329 "configure" X++#include "confdefs.h" X++/* System header to define __stub macros and hopefully few prototypes, X++ which can conflict with char getopt_long(); below. */ X++#include X++/* Override any gcc2 internal prototype to avoid an error. */ X++/* We use char because int might match the return type of a gcc2 X++ builtin and then its argument prototype would still apply. */ X++char getopt_long(); X++ X++int main() { X++ X++/* The GNU C library defines this for functions which it implements X++ to always fail with ENOSYS. Some functions are actually named X++ something starting with __ and the normal name is an alias. */ X++#if defined (__stub_getopt_long) || defined (__stub___getopt_long) X++choke me X++#else X++getopt_long(); X++#endif X++ X++; return 0; } X++configure:1324: checking for getopt X++configure:1352: gcc -o conftest -g -O2 conftest.c 1>&5 X+diff -ruN ../xracer-0.94.old/configure ./configure X+--- ../xracer-0.94.old/configure Sat Nov 6 16:27:49 1999 X++++ ./configure Sat Nov 6 16:27:49 1999 X+@@ -2792,7 +2792,7 @@ X+ echo $ac_n "(cached) $ac_c" 1>&6 X+ else X+ ac_save_LIBS="$LIBS" X+-LIBS="-ljpeg $jpeg_LIBS $LIBS" X++LIBS="-L/usr/local/lib -ljpeg $jpeg_LIBS $LIBS" X+ cat > conftest.$ac_ext < X+#include X+#include X+ X+#include X+#include X+ X #include "xracer.h" X+#include "os.h" X X double ws_get_time() X { X- return (double)GetTickCount() * 1e-3; X+ struct timeval tv; X+ X+ gettimeofday(&tv,0); X+ X+ return (double)tv.tv_sec + (double)tv.tv_usec * 1e-6; X } X X+/* X11- and GLUT-specific hack to warp and grab the pointer into the window. */ X+ X+struct GLUTwindow X+{ X+ int num; X+ Window win; X+}; X+ X+extern Display *__glutDisplay; X+ X+extern Window __glutRoot; X+extern struct GLUTwindow *__glutCurrentWindow; X+ X void ws_warp_pointer() X { X+ Window window = __glutCurrentWindow->win; X+ X+ XWarpPointer(__glutDisplay, 0, window, 0, 0, 0, 0, width/2, height/2); X } X X+/* Grab the pointer. */ X+ X void ws_grab_pointer() X { X+ Window window = __glutCurrentWindow->win; X+ X+ if (XGrabPointer(__glutDisplay, window, True, X+ ButtonReleaseMask | ButtonPressMask, X+ GrabModeAsync, GrabModeAsync, X+ window, None, CurrentTime) != GrabSuccess) X+ log (LOG_ERROR, "pointer grab failed"); X } X X void ws_flush_events() X { X+ XSync(__glutDisplay, False); X } X X+/* X11 hack to give window a class, so WindowManagers can interact with it X+ (e.g. start xracer without window borders/titlebar, start fullscreen,...) X+ Why isn't this implemented in glutCreateWindow? */ X+ X void ws_fix_window() X { X+ XClassHint classhint; X+ Window window = __glutCurrentWindow->win; X+ X+ classhint.res_name="xracer"; X+ classhint.res_class="XRacer"; X+ XSetClassHint(__glutDisplay, window, &classhint); X } Xdiff -ruN ../xracer-0.94.old/test/Makefile.in ./test/Makefile.in X--- ../xracer-0.94.old/test/Makefile.in Sat Nov 6 16:27:49 1999 X+++ ./test/Makefile.in Sat Nov 6 16:27:49 1999 X@@ -96,7 +96,7 @@ X DEFS = @DEFS@ -I. -I$(srcdir) -I.. X CPPFLAGS = @CPPFLAGS@ X LDFLAGS = @LDFLAGS@ X-LIBS = @LIBS@ X+LIBS = -L/usr/local/lib @LIBS@ X X_CFLAGS = @X_CFLAGS@ X X_LIBS = @X_LIBS@ X X_EXTRA_LIBS = @X_EXTRA_LIBS@ Xdiff -ruN ../xracer-0.94.old/tools/Makefile.in ./tools/Makefile.in X--- ../xracer-0.94.old/tools/Makefile.in Sat Nov 6 16:27:49 1999 X+++ ./tools/Makefile.in Sat Nov 6 16:27:48 1999 X@@ -104,7 +104,7 @@ X DEFS = @DEFS@ -I. -I$(srcdir) -I.. X CPPFLAGS = @CPPFLAGS@ X LDFLAGS = @LDFLAGS@ X-LIBS = @LIBS@ X+LIBS = -L/usr/local/lib @LIBS@ X X_CFLAGS = @X_CFLAGS@ X X_LIBS = @X_LIBS@ X X_EXTRA_LIBS = @X_EXTRA_LIBS@ END-of-port/patches/patch-aa echo c - port/pkg mkdir -p port/pkg > /dev/null 2>&1 echo x - port/pkg/COMMENT sed 's/^X//' >port/pkg/COMMENT << 'END-of-port/pkg/COMMENT' XA sweet WipeOut clone for OpenGL and X windows. Aww yeeah! END-of-port/pkg/COMMENT echo x - port/pkg/DESCR sed 's/^X//' >port/pkg/DESCR << 'END-of-port/pkg/DESCR' XXRacer is a Wipeout clone. At the moment it is incomplete, but XI will be working on the following areas over the next few Xweeks: X * better game physics (eg. sometimes the craft turns over) X * instrument panel (partially done) X * scenery X * time trial and arcade mode X * weapons, powerups X * LAN multiplayer mode X XWWW: http://xracer.annexia.org/ END-of-port/pkg/DESCR echo x - port/pkg/MESSAGE sed 's/^X//' >port/pkg/MESSAGE << 'END-of-port/pkg/MESSAGE' X - --------------------------------------------------------------------- - X - XRACER PORT NOTES ported by trolld - X - --------------------------------------------------------------------- - X - The xracer data files have been installed to: /usr/local/lib/xracer - X - You'll NEED to set the enviroment variable $XRACER_HOME to this dir - X - otherwise xracer will not work. - X - - X - The xracer documentation has been installed in: - X - /usr/local/share/doc/xracer/ - X - - X - That's it, after setting the enviroment, type xracer to run! - X - Enjoy! - X - - trolld - X - - X - --------------------------------------------------------------------- - X - xracer website: http://xracer.annexia.org/ - X - --------------------------------------------------------------------- - END-of-port/pkg/MESSAGE echo x - port/pkg/PLIST sed 's/^X//' >port/pkg/PLIST << 'END-of-port/pkg/PLIST' Xbin/xracer Xbin/mktrackmodel Xbin/mktrack Xbin/perlin Xbin/test-poly-opts Xshare/doc/xracer/README Xshare/doc/xracer/AUTHORS Xshare/doc/xracer/COPYING Xshare/doc/xracer/NEWS Xshare/doc/xracer/README.html Xshare/doc/xracer/ChangeLog X@dirrm share/doc/xracer Xlib/xracer/images/beestripes1.jpg Xlib/xracer/images/track1.jpg Xlib/xracer/images/track1-large.jpg Xlib/xracer/images/clouds1.jpg Xlib/xracer/images/track2.jpg Xlib/xracer/images/track3.jpg Xlib/xracer/images/beestripes1-large.jpg Xlib/xracer/images/clouds2.jpg Xlib/xracer/images/powerup-energy-alpha.jpg Xlib/xracer/images/powerup-shield-alpha.jpg Xlib/xracer/images/track5.jpg Xlib/xracer/images/skyscraper1.jpg Xlib/xracer/images/snowtex1.jpg Xlib/xracer/images/track5+left-powerup+right-fast.jpg Xlib/xracer/images/track5+right-fast.jpg Xlib/xracer/images/track5+left-fast.jpg Xlib/xracer/images/track5+left-powerup.jpg Xlib/xracer/images/snow1.jpg Xlib/xracer/images/track5+right-powerup.jpg Xlib/xracer/images/track5+left-fast+right-powerup.jpg Xlib/xracer/images/track5+left-faster.jpg Xlib/xracer/images/track5+right-faster.jpg Xlib/xracer/images/track5+left-fast+right-fast.jpg Xlib/xracer/images/track5+left-faster+right-faster.jpg Xlib/xracer/images/track5+left-fast+right-faster.jpg Xlib/xracer/images/track5+left-faster+right-fast.jpg Xlib/xracer/images/track5+left-powerup+right-faster.jpg Xlib/xracer/images/track5+left-faster+right-powerup.jpg Xlib/xracer/images/track5+left-powerup+right-powerup.jpg Xlib/xracer/images/clouds3.jpg Xlib/xracer/images/snowtex2.jpg Xlib/xracer/images/clouds4.jpg Xlib/xracer/images/craft1-side.jpg Xlib/xracer/images/clouds2-large.jpg Xlib/xracer/images/clouds5.jpg Xlib/xracer/images/craft1-windscreen.jpg Xlib/xracer/images/powerup-faster-alpha.jpg Xlib/xracer/images/powerup-autopilot.jpg Xlib/xracer/images/craft1-inner-side.jpg Xlib/xracer/images/snowtex3.jpg Xlib/xracer/images/craft1-back-side.jpg Xlib/xracer/images/craft1-under.jpg Xlib/xracer/images/crillee48.jpg Xlib/xracer/images/xracer-logo-3.jpg Xlib/xracer/images/powerup-autopilot-alpha.jpg Xlib/xracer/images/snow2.jpg Xlib/xracer/images/andre-logo.jpg Xlib/xracer/images/powerup-energy.jpg Xlib/xracer/images/powerup-shield.jpg Xlib/xracer/images/powerup-faster.jpg Xlib/xracer/images/menus-bg.jpg Xlib/xracer/images/crillee36.jpg Xlib/xracer/images/crillee24.jpg Xlib/xracer/images/crillee14.jpg Xlib/xracer/images/mountains4-alpha.jpg Xlib/xracer/images/mountains4.jpg X@dirrm lib/xracer/images Xlib/xracer/tracks/demo.trk.gz X@dirrm lib/xracer/tracks Xlib/xracer/objects/start-lamp/start-lamp-green-texture.jpg Xlib/xracer/objects/start-lamp/start-lamp-orange-texture.jpg Xlib/xracer/objects/start-lamp/start-lamp-red-texture.jpg X@dirrm lib/xracer/objects/start-lamp X@dirrm lib/xracer/objects Xlib/xracer/sounds/powerup.wav Xlib/xracer/sounds/faster.wav Xlib/xracer/sounds/wind.wav X@dirrm lib/xracer/sounds X@dirrm lib/xracer END-of-port/pkg/PLIST exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message