diff options
author | miwi <miwi@FreeBSD.org> | 2008-01-27 07:47:40 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-01-27 07:47:40 +0800 |
commit | 3734a3c49f2680c5cbdcc253d7b07185e5136f7b (patch) | |
tree | c5a40d9992baa65a07a63fc8a85eddc0b4ebdf05 /games | |
parent | 057eac6698a56ddbea8c936915582a939954276f (diff) | |
download | freebsd-ports-gnome-3734a3c49f2680c5cbdcc253d7b07185e5136f7b.tar.gz freebsd-ports-gnome-3734a3c49f2680c5cbdcc253d7b07185e5136f7b.tar.zst freebsd-ports-gnome-3734a3c49f2680c5cbdcc253d7b07185e5136f7b.zip |
- Remove games/stormbaancoureur (project was rename to games/stormbaancoureur)
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/sturmbahnfahrer/Makefile | 46 | ||||
-rw-r--r-- | games/sturmbahnfahrer/distinfo | 3 | ||||
-rw-r--r-- | games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.cxx | 196 | ||||
-rw-r--r-- | games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.h | 20 | ||||
-rw-r--r-- | games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-Makefile | 116 | ||||
-rw-r--r-- | games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-controllerpad.cxx | 193 | ||||
-rw-r--r-- | games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-main.cxx | 15 | ||||
-rw-r--r-- | games/sturmbahnfahrer/pkg-descr | 6 | ||||
-rw-r--r-- | games/sturmbahnfahrer/pkg-plist | 34 |
10 files changed, 0 insertions, 630 deletions
diff --git a/games/Makefile b/games/Makefile index 49d0d34bb8b6..ac1825fc49c5 100644 --- a/games/Makefile +++ b/games/Makefile @@ -723,7 +723,6 @@ SUBDIR += stormbaancoureur SUBDIR += stratagus SUBDIR += stroq - SUBDIR += sturmbahnfahrer SUBDIR += stvef-paks SUBDIR += stvef-server SUBDIR += sudoku diff --git a/games/sturmbahnfahrer/Makefile b/games/sturmbahnfahrer/Makefile deleted file mode 100644 index 113a97932dbe..000000000000 --- a/games/sturmbahnfahrer/Makefile +++ /dev/null @@ -1,46 +0,0 @@ -# New ports collection makefile for: sturmbahnfahrer -# Date created: 07 Sep 2006 -# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> -# -# $FreeBSD$ -# - -PORTNAME= sturmbahnfahrer -PORTVERSION= 1.4 -CATEGORIES= games -MASTER_SITES= http://www.stolk.org/sturmbahnfahrer/download/ \ - http://www.amdmi3.ru/distfiles/ - -MAINTAINER= amdmi3@amdmi3.ru -COMMENT= Simulated obstacle course for automobiles - -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut -BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ - ${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode - -BROKEN= does not build - -USE_GL= yes - -MAKE_ENV= DATADIR="${DATADIR}" - -BUILD_WRKSRC= ${WRKSRC}/src-sturmbahnfahrer -INSTALL_WRKSRC= ${WRKSRC}/src-sturmbahnfahrer - -PORTDOCS= README - -.include <bsd.port.pre.mk> - -post-patch: - @${REINPLACE_CMD} -e 's|/usr/share/games/sturmbahnfahrer|${DATADIR}|' \ - ${WRKSRC}/src-sturmbahnfahrer/main.cxx - -.if !defined(NOPORTDOCS) -post-install: - ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor -.endif - -.include <bsd.port.post.mk> diff --git a/games/sturmbahnfahrer/distinfo b/games/sturmbahnfahrer/distinfo deleted file mode 100644 index 614e65a819b9..000000000000 --- a/games/sturmbahnfahrer/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (sturmbahnfahrer-1.4.tar.gz) = a861fffe67c90aa5a0cd114e8e786541 -SHA256 (sturmbahnfahrer-1.4.tar.gz) = 4e324dc080c7c0b302aaf64a9f30640560d08ac73a869bb86a272acee79fe85a -SIZE (sturmbahnfahrer-1.4.tar.gz) = 3090504 diff --git a/games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.cxx b/games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.cxx deleted file mode 100644 index 5dc18d152560..000000000000 --- a/games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.cxx +++ /dev/null @@ -1,196 +0,0 @@ ---- src-common/soundenginealsa.cxx.orig Thu May 17 20:02:03 2007 -+++ src-common/soundenginealsa.cxx Thu Aug 9 02:19:21 2007 -@@ -38,93 +38,20 @@ - complexfeed(0), - enginefeed(0), - activefeed(0), -- handle(0), -- periodsz(0), - batchsize(0), - framelag(lag), - lpfilter(0.0) - { -- // test endiness -- unsigned int scratch=0; -- unsigned char *p = (unsigned char*) &scratch; -- *p = 1; -- assert(scratch == 1 || scratch == 16777216); -- SoundClip::bigendian = (scratch == 16777216); -- //fprintf(stderr,"soundenginealsa.cxx: %s endian\n", (SoundClip::bigendian)?"big":"little"); -- -- /* Open PCM device for playback. */ -- int rc = snd_pcm_open(&handle, "default", SND_PCM_STREAM_PLAYBACK, 0); -- if (rc < 0) -- { -- fprintf(stderr, "unable to open pcm device: %s\n", snd_strerror(rc)); -- return; -- } -- snd_pcm_hw_params_t *params=0; -- -- /* Allocate a hardware parameters object. */ -- snd_pcm_hw_params_alloca(¶ms); -- /* Fill it in with default values. */ -- snd_pcm_hw_params_any(handle, params); -- /* Set the desired hardware parameters. */ -- /* Interleaved mode */ -- snd_pcm_hw_params_set_access(handle, params, SND_PCM_ACCESS_RW_INTERLEAVED); -- /* Signed 16-bit little-endian format */ -- snd_pcm_hw_params_set_format(handle, params, (SoundClip::bigendian)?SND_PCM_FORMAT_S16_BE:SND_PCM_FORMAT_S16_LE); -- /* Two channels (stereo) */ -- snd_pcm_hw_params_set_channels(handle, params, 2); -- /* 44100 bits/second sampling rate (CD quality) */ -- const unsigned int cd_rate = 44100; -- unsigned int playback_sampling_rate = cd_rate; -- int dir=-1; // round down actual rate, please. -- snd_pcm_hw_params_set_rate_near(handle, params, &playback_sampling_rate, &dir); -- if (playback_sampling_rate != cd_rate) -- { -- fprintf -- ( -- stderr, -- "Asked for %dHz playback rate, but got %dHz\n", -- cd_rate, -- playback_sampling_rate -- ); -- } -- -- snd_pcm_uframes_t frames = framelag; -- snd_pcm_hw_params_set_period_size_near(handle, params, &frames, &dir); -- -- /* Write the parameters to the driver */ -- rc = snd_pcm_hw_params(handle, params); -- if (rc < 0) -- { -- fprintf(stderr, "unable to set hw parameters: %s\n", snd_strerror(rc)); -- return; -- } -- snd_pcm_hw_params_get_period_size(params, &periodsz, &dir); -- batchsize = (int) ceilf(framelag / (float) periodsz); -- fprintf(stderr,"soundenginealsa.cxx: requested period %d, got period %d, use batchsize %d\n", framelag, (int) periodsz, batchsize); -- -- simplefeed = new SoundFeedSimple(periodsz); -- complexfeed = new SoundFeedComplex(periodsz); -- modulatedfeed = new SoundFeedModulated(periodsz); -- enginefeed = new SoundFeedEngine(periodsz); -- activefeed = simplefeed; -- opened = true; - } - - - SoundEngineAlsa::~SoundEngineAlsa() - { -- if (opened) -- { -- fprintf(stderr,"Closing down SoundEngineAlsa\n"); -- snd_pcm_drain(handle); -- snd_pcm_close(handle); -- } - } - - - void SoundEngineAlsa::Play(const std::string &fname, int delay, bool looping) - { -- activefeed->Paste(fname, delay, looping); - } - - -@@ -136,40 +63,11 @@ - - void SoundEngineAlsa::SetMode(const std::string &modename) - { -- if (modename=="complex") -- { -- activefeed = complexfeed; -- return; -- } -- if (modename=="simple") -- { -- activefeed = simplefeed; -- return; -- } -- if (modename=="modulated") -- { -- activefeed = modulatedfeed; -- return; -- } -- if (modename=="engine") -- { -- activefeed = enginefeed; -- return; -- } -- if (modename=="none") -- { -- activefeed = 0; -- return; -- } -- assert(0); - } - - - void SoundEngineAlsa::SetModulation(float freq, float ampl) - { -- modulatedfeed->SetModulation(freq, ampl); -- complexfeed->SetModulation(freq, ampl); -- enginefeed->SetModulation(freq, ampl); - } - - -@@ -182,58 +80,6 @@ - - float SoundEngineAlsa::Sustain(void) - { -- if (!activefeed) -- return 0.0; -- snd_pcm_sframes_t delay; -- int avail = snd_pcm_avail_update(handle); -- int rc = snd_pcm_delay(handle, &delay); -- if (rc<0) -- snd_strerror(rc); -- if (rc==-EPIPE) -- fprintf(stderr,"soundenginealsa.cxx: EPIPE\n"); -- else -- assert(!rc); -- -- // We can only trust pcm_delay if the state is running. -- snd_pcm_state_t pcm_state = snd_pcm_state(handle); -- if (pcm_state != SND_PCM_STATE_RUNNING || delay<0) -- { -- delay=0; -- if (pcm_state == SND_PCM_STATE_XRUN) -- snd_pcm_prepare(handle); -- } -- --#if 0 -- if (delay<0) -- fprintf(stderr,"delay=%d, avail=%d, periodsz=%d\n", (int) delay, (int) avail, (int) periodsz); --#else -- (void) avail; --#endif -- -- float fractiondone = activefeed->FractionDone(delay); -- -- if (delay < framelag) -- { -- int cnt = batchsize; -- short *data = activefeed->Get(cnt); -- if (cnt) -- { -- assert(data); -- if (lpfilter>0.01) -- low_pass_filter(data, cnt*periodsz, lpfilter); -- rc = snd_pcm_writei(handle, data, cnt*periodsz); -- assert(rc == -EPIPE || rc >= 0); -- if (rc == -EPIPE) -- { -- snd_pcm_prepare(handle); -- fprintf(stderr,"Underrrun!\n"); -- } -- else -- if (rc != (int) (cnt*periodsz)) -- fprintf(stderr, "short write, wrote %d frames instead of %d\n", rc, (int) periodsz); -- } -- } -- return fractiondone; - } - - clipmap_t SoundClip::clips; diff --git a/games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.h b/games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.h deleted file mode 100644 index d1c186cdff00..000000000000 --- a/games/sturmbahnfahrer/files/patch-src-common-soundenginealsa.h +++ /dev/null @@ -1,20 +0,0 @@ ---- src-common/soundenginealsa.h.orig Thu May 17 20:02:03 2007 -+++ src-common/soundenginealsa.h Thu Aug 9 02:17:07 2007 -@@ -2,8 +2,6 @@ - #ifndef SOUNDENGINE_ALSA_H - #define SOUNDENGINE_ALSA_H - --#include <alsa/asoundlib.h> -- - class SoundClip; - class SoundFeed; - class SoundFeedSimple; -@@ -29,8 +27,6 @@ - SoundFeedModulated *modulatedfeed; - SoundFeedEngine *enginefeed; - SoundFeed *activefeed; -- snd_pcm_t *handle; -- snd_pcm_uframes_t periodsz; // in frames - int batchsize; // in periods - int framelag; // in frames - float lpfilter; diff --git a/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-Makefile b/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-Makefile deleted file mode 100644 index 8d53dfcee8f9..000000000000 --- a/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-Makefile +++ /dev/null @@ -1,116 +0,0 @@ ---- src-sturmbahnfahrer/Makefile.orig Thu May 17 20:02:03 2007 -+++ src-sturmbahnfahrer/Makefile Thu Aug 9 02:28:39 2007 -@@ -6,19 +6,17 @@ - - PLIBPREFIX=$(HOME) - ODEPREFIX=$(HOME) --CXX=g++ -+CXX?=g++ - - # END OF CUSTOM SETTINGS - - CXXFLAGS=\ -- -I$(ODEPREFIX)/include \ -- -I$(PLIBPREFIX)/include \ -+ -I$(LOCALBASE)/include \ - -I../src-common \ -- -O2 -g -Wall -+ -g -Wall - - LFLAGS=\ -- -L$(PLIBPREFIX)/lib \ -- -L/usr/X11R6/lib -+ -L$(LOCALBASE)/lib - - - OBJS=\ -@@ -37,9 +35,9 @@ - - - LIBS=\ -- $(ODEPREFIX)/lib/libode.a \ -+ $(LOCALBASE)/lib/libode.a \ - -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul \ -- -lglut -lGLU -lGL -lasound -+ -lglut -lGLU -lGL - - - all: sturmbahnfahrer -@@ -94,44 +92,43 @@ - GAMEDIR=$(DESTDIR)/usr/share/games/sturmbahnfahrer - install: sturmbahnfahrer - # Directories -- mkdir -p $(DESTDIR)/usr/games/ -- mkdir -p $(GAMEDIR)/images/ -- mkdir -p $(GAMEDIR)/sounds/ -- mkdir -p $(GAMEDIR)/models/ -+ mkdir -p $(DATADIR)/images/ -+ mkdir -p $(DATADIR)/sounds/ -+ mkdir -p $(DATADIR)/models/ - # Binary -- install sturmbahnfahrer $(DESTDIR)/usr/games/sturmbahnfahrer -+ ${BSD_INSTALL_PROGRAM} sturmbahnfahrer $(PREFIX)/bin/sturmbahnfahrer - # Images -- install -m 644 images/engine.tga $(GAMEDIR)/images/engine.tga -- install -m 644 images/info_carpet_smooth.rgb $(GAMEDIR)/images/info_carpet_smooth.rgb -- install -m 644 images/info_door_smooth.rgb $(GAMEDIR)/images/info_door_smooth.rgb -- install -m 644 images/info_jump_smooth.rgb $(GAMEDIR)/images/info_jump_smooth.rgb -+ ${BSD_INSTALL_DATA} -m 644 images/engine.tga $(DATADIR)/images/engine.tga -+ ${BSD_INSTALL_DATA} -m 644 images/info_carpet_smooth.rgb $(DATADIR)/images/info_carpet_smooth.rgb -+ ${BSD_INSTALL_DATA} -m 644 images/info_door_smooth.rgb $(DATADIR)/images/info_door_smooth.rgb -+ ${BSD_INSTALL_DATA} -m 644 images/info_jump_smooth.rgb $(DATADIR)/images/info_jump_smooth.rgb - # Sounds -- install -m 644 sounds/rpm_graph.txt $(GAMEDIR)/sounds/rpm_graph.txt -- install -m 644 sounds/camaro_s16_le.wav $(GAMEDIR)/sounds/camaro_s16_le.wav -- install -m 644 sounds/detonationnorm_s16_le.wav $(GAMEDIR)/sounds/detonationnorm_s16_le.wav -+ ${BSD_INSTALL_DATA} -m 644 sounds/rpm_graph.txt $(DATADIR)/sounds/rpm_graph.txt -+ ${BSD_INSTALL_DATA} -m 644 sounds/camaro_s16_le.wav $(DATADIR)/sounds/camaro_s16_le.wav -+ ${BSD_INSTALL_DATA} -m 644 sounds/detonationnorm_s16_le.wav $(DATADIR)/sounds/detonationnorm_s16_le.wav - # Models -- install -m 644 models/baseplate.3ds $(GAMEDIR)/models/baseplate.3ds -- install -m 644 models/car.3ds $(GAMEDIR)/models/car.3ds -- install -m 644 models/carpet.3ds $(GAMEDIR)/models/carpet.3ds -- install -m 644 models/crate.3ds $(GAMEDIR)/models/crate.3ds -- install -m 644 models/cratejump.3ds $(GAMEDIR)/models/cratejump.3ds -- install -m 644 models/crate_low.3ds $(GAMEDIR)/models/crate_low.3ds -- install -m 644 models/door.3ds $(GAMEDIR)/models/door.3ds -- install -m 644 models/doorstand.3ds $(GAMEDIR)/models/doorstand.3ds -- install -m 644 models/ferriswheelcart.3ds $(GAMEDIR)/models/ferriswheelcart.3ds -- install -m 644 models/ferriswheelstand.3ds $(GAMEDIR)/models/ferriswheelstand.3ds -- install -m 644 models/ferriswheelwheel.3ds $(GAMEDIR)/models/ferriswheelwheel.3ds -- install -m 644 models/finishdoor.3ds $(GAMEDIR)/models/finishdoor.3ds -- install -m 644 models/finishplank.3ds $(GAMEDIR)/models/finishplank.3ds -- install -m 644 models/grid.3ds $(GAMEDIR)/models/grid.3ds -- install -m 644 models/jumpboard.3ds $(GAMEDIR)/models/jumpboard.3ds -- install -m 644 models/licplate.ac $(GAMEDIR)/models/licplate.ac -- install -m 644 models/licplate.bmp $(GAMEDIR)/models/licplate.bmp -- install -m 644 models/ramp.3ds $(GAMEDIR)/models/ramp.3ds -- install -m 644 models/spikegate.3ds $(GAMEDIR)/models/spikegate.3ds -- install -m 644 models/track.3ds $(GAMEDIR)/models/track.3ds -- install -m 644 models/truck.3ds $(GAMEDIR)/models/truck.3ds -- install -m 644 models/wheel.3ds $(GAMEDIR)/models/wheel.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/baseplate.3ds $(DATADIR)/models/baseplate.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/car.3ds $(DATADIR)/models/car.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/carpet.3ds $(DATADIR)/models/carpet.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/crate.3ds $(DATADIR)/models/crate.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/cratejump.3ds $(DATADIR)/models/cratejump.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/crate_low.3ds $(DATADIR)/models/crate_low.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/door.3ds $(DATADIR)/models/door.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/doorstand.3ds $(DATADIR)/models/doorstand.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/ferriswheelcart.3ds $(DATADIR)/models/ferriswheelcart.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/ferriswheelstand.3ds $(DATADIR)/models/ferriswheelstand.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/ferriswheelwheel.3ds $(DATADIR)/models/ferriswheelwheel.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/finishdoor.3ds $(DATADIR)/models/finishdoor.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/finishplank.3ds $(DATADIR)/models/finishplank.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/grid.3ds $(DATADIR)/models/grid.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/jumpboard.3ds $(DATADIR)/models/jumpboard.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/licplate.ac $(DATADIR)/models/licplate.ac -+ ${BSD_INSTALL_DATA} -m 644 models/licplate.bmp $(DATADIR)/models/licplate.bmp -+ ${BSD_INSTALL_DATA} -m 644 models/ramp.3ds $(DATADIR)/models/ramp.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/spikegate.3ds $(DATADIR)/models/spikegate.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/track.3ds $(DATADIR)/models/track.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/truck.3ds $(DATADIR)/models/truck.3ds -+ ${BSD_INSTALL_DATA} -m 644 models/wheel.3ds $(DATADIR)/models/wheel.3ds - - - deb: diff --git a/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-controllerpad.cxx b/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-controllerpad.cxx deleted file mode 100644 index 057236a9eb65..000000000000 --- a/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-controllerpad.cxx +++ /dev/null @@ -1,193 +0,0 @@ ---- src-sturmbahnfahrer/controllerpad.cxx.orig Mon Jul 17 00:26:08 2006 -+++ src-sturmbahnfahrer/controllerpad.cxx Mon Jul 17 00:28:23 2006 -@@ -14,7 +14,6 @@ - #include <windows.h> - #include <mmsystem.h> - #else --#include <linux/joystick.h> - #include <sys/ioctl.h> // for ioctl() - #include <unistd.h> // for close() - #include <stdio.h> // for perror() -@@ -81,100 +80,7 @@ - accel_axis(-1), - accel_button(-1) - { --#ifdef WIN32 -- JOYINFOEX joyinfo; -- JOYCAPS joycaps; -- MMRESULT result; -- int axisCounter; -- -- id = 0; -- -- joyinfo.dwSize = sizeof(joyinfo); -- joyinfo.dwFlags = JOY_RETURNALL; -- -- result = joyGetPosEx(id, &joyinfo); -- if(result != JOYERR_NOERROR) { -- fprintf(stderr, "No input devices found\n"); -- return; -- } -- else { -- result = joyGetDevCaps(id, &joycaps, sizeof(joycaps)); -- if(result != JOYERR_NOERROR) { -- fprintf(stderr, "No input devices found\n"); -- return; -- } -- } -- -- opened = true; -- -- fprintf(stderr, "x min %d max %d\n", joycaps.wXmin, joycaps.wXmax); -- buttoncount = joycaps.wNumButtons; -- axiscount = joycaps.wNumAxes; --#else -- fd = open(devfile.c_str(), O_RDONLY | O_NONBLOCK); -- if (fd==-1) -- { -- if (errno != ENODEV) -- perror("open() on joystick device failed"); -- return; -- } -- opened = true; -- -- int retval; -- -- int version; -- retval = ioctl(fd, JSIOCGVERSION, &version); -- if (retval == -1) -- perror("ioctl JSIOCGVERSION failed"); -- -- unsigned char lo = version; -- unsigned char md = (version>>8); -- unsigned char hi = (version>>16); -- -- retval = ioctl(fd, JSIOCGAXES, &axiscount); -- if (retval == -1) -- perror("ioctl JSIOCGAXES failed"); -- -- retval = ioctl(fd, JSIOCGBUTTONS, &buttoncount); -- if (retval == -1) -- perror("ioctl JSIOCGBUTTONS failed"); -- -- char n[128]; -- retval = ioctl(fd, JSIOCGNAME(128), n); -- if (retval == -1) -- perror("ioctl JSIOCGNAME failed"); -- -- name = n; -- fprintf(stderr,"joystick name: %s\n", name.c_str()); -- fprintf(stderr,"driver version: %d.%d.%d\n", hi,md,lo); -- fprintf(stderr,"button count: %d, axiscount: %d\n", buttoncount, axiscount); --#endif -- -- // search db -- assert(sizeof(joydb_names) == sizeof(joydb_descs)); -- int cnt = sizeof(joydb_names) / sizeof(void *) - 1; -- for (int i=0; i<cnt && !joydb_entry; i++) -- { -- if (!strcmp(joydb_names[i], name.c_str())) -- joydb_entry = joydb_descs[i]; -- } -- -- fprintf -- ( -- stderr, -- "Known in joystick description database: %s\n", -- (joydb_entry)?"yes":"no" -- ); -- -- for (int i=0; i<axiscount; i++) -- AxisValues.push_back(0); -- for (int i=0; i<buttoncount; i++) -- { -- ButtonValues.push_back(false); -- ButtonChanged.push_back(false); -- } -- -- Introspect(); -+ return; - } - - -@@ -194,80 +100,6 @@ - - void ControllerPad::Sustain(float dt) - { --#ifdef WIN32 -- MMRESULT result; -- DWORD flags[6 /*MAX_AXES*/] = { JOY_RETURNX, JOY_RETURNY, JOY_RETURNZ, -- JOY_RETURNR, JOY_RETURNU, JOY_RETURNV }; -- DWORD pos[6 /*MAX_AXES*/]; -- JOYINFOEX joyinfo; -- -- joyinfo.dwSize = sizeof(joyinfo); -- joyinfo.dwFlags = JOY_RETURNALL | JOY_RETURNPOVCTS; -- --#if 0 -- if(!hats) { -- joyinfo.dwFlags &= ~(JOY_RETURNPOV | JOY_RETURNPOVCTS); -- } --#endif -- -- // get the actual data -- result = joyGetPosEx(id, &joyinfo); -- -- if(result != JOYERR_NOERROR) { -- SetMMerror("joyGetPosEx", result); -- return; -- } -- -- /* joystick motion events */ -- pos[0] = joyinfo.dwXpos; -- pos[1] = joyinfo.dwYpos; -- pos[2] = joyinfo.dwZpos; -- pos[3] = joyinfo.dwRpos; -- pos[4] = joyinfo.dwUpos; -- pos[5] = joyinfo.dwVpos; -- -- for(int axisCounter = 0; axisCounter < axiscount; axisCounter++) { -- if(joyinfo.dwFlags & flags[axisCounter]) { -- AxisValues[axisCounter] = float(pos[axisCounter]); -- } -- } --#else -- struct js_event ev; -- int retval; -- do -- { -- retval = read(fd, &ev, sizeof(ev)); -- if (retval == -1) -- { -- if (errno != EAGAIN) -- { -- perror("read() on joystick failed"); -- fprintf(stderr,"joystick read failure\n"); -- } -- } -- int type = ev.type; -- switch(type) -- { -- case JS_EVENT_BUTTON: -- if (ev.number < ButtonValues.size()) -- { -- ButtonValues[ev.number] = ev.value; -- ButtonChanged[ev.number] = true; -- } -- else -- fprintf(stderr,"Illegal buttonnr %d\n", ev.number); -- break; -- case JS_EVENT_AXIS: -- if (ev.number < AxisValues.size()) -- AxisValues[ev.number] = ev.value; -- else -- fprintf(stderr,"Illegal axisnr %d", ev.number); -- break; -- default: -- break; -- } -- } while (retval>0); --#endif - } - - diff --git a/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-main.cxx b/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-main.cxx deleted file mode 100644 index c2c45b30027d..000000000000 --- a/games/sturmbahnfahrer/files/patch-src-sturmbahnfahrer-main.cxx +++ /dev/null @@ -1,15 +0,0 @@ ---- src-sturmbahnfahrer/main.cxx.orig Thu May 17 20:02:03 2007 -+++ src-sturmbahnfahrer/main.cxx Thu Aug 9 02:21:33 2007 -@@ -656,12 +656,7 @@ - fprintf(stderr,"OpenDE is (c) by Russel L. Smith\n"); - - char *bindirname = dirname(argv[0]); -- if (!strcmp(bindirname,".")) - dirprefix="/usr/share/games/sturmbahnfahrer"; -- else -- { -- dirprefix = dirname(bindirname) + std::string("/share/games/sturmbahnfahrer"); -- } - if (getenv("PLODE_DATADIR")) - dirprefix = getenv("PLODE_DATADIR"); - if (getenv("PLODE_DISPLAYMODE")) diff --git a/games/sturmbahnfahrer/pkg-descr b/games/sturmbahnfahrer/pkg-descr deleted file mode 100644 index 304b2fb2bc33..000000000000 --- a/games/sturmbahnfahrer/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -Sturmbahnfahrer... for expert drivers only. If you want to master -it, try to have the laws of physics work with you, not against you. - -Sturmbahnfahrer is a game by Bram Stolk. - -WWW: http://www.sturmbahnfahrer.com/ diff --git a/games/sturmbahnfahrer/pkg-plist b/games/sturmbahnfahrer/pkg-plist deleted file mode 100644 index 847c121c7b22..000000000000 --- a/games/sturmbahnfahrer/pkg-plist +++ /dev/null @@ -1,34 +0,0 @@ -bin/sturmbahnfahrer -%%DATADIR%%/images/engine.tga -%%DATADIR%%/images/info_carpet_smooth.rgb -%%DATADIR%%/images/info_door_smooth.rgb -%%DATADIR%%/images/info_jump_smooth.rgb -%%DATADIR%%/models/baseplate.3ds -%%DATADIR%%/models/car.3ds -%%DATADIR%%/models/carpet.3ds -%%DATADIR%%/models/crate.3ds -%%DATADIR%%/models/crate_low.3ds -%%DATADIR%%/models/cratejump.3ds -%%DATADIR%%/models/door.3ds -%%DATADIR%%/models/doorstand.3ds -%%DATADIR%%/models/ferriswheelcart.3ds -%%DATADIR%%/models/ferriswheelstand.3ds -%%DATADIR%%/models/ferriswheelwheel.3ds -%%DATADIR%%/models/finishdoor.3ds -%%DATADIR%%/models/finishplank.3ds -%%DATADIR%%/models/grid.3ds -%%DATADIR%%/models/jumpboard.3ds -%%DATADIR%%/models/licplate.ac -%%DATADIR%%/models/licplate.bmp -%%DATADIR%%/models/ramp.3ds -%%DATADIR%%/models/spikegate.3ds -%%DATADIR%%/models/track.3ds -%%DATADIR%%/models/truck.3ds -%%DATADIR%%/models/wheel.3ds -%%DATADIR%%/sounds/camaro_s16_le.wav -%%DATADIR%%/sounds/detonationnorm_s16_le.wav -%%DATADIR%%/sounds/rpm_graph.txt -@dirrm %%DATADIR%%/sounds -@dirrm %%DATADIR%%/models -@dirrm %%DATADIR%%/images -@dirrm %%DATADIR%% |