You are not logged in.

#1 2008-06-16 14:44:11

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

[Request] SDL Sopwith Game

Well i played this games since my 386 pc tongue they where kinda funny, i was playing them in dosbox, but there are native ways to get them run under linux!

Screenshot:
http://upload.wikimedia.org/wikipedia/c … enshot.png

Sopwith SDL Homepage:
    http://sdl-sopwith.sourceforge.net/
Download:
    http://ufpr.dl.sourceforge.net/sourcefo … 7.1.tar.gz

Sopwith (From Wikipedia, the free encyclopedia)
Sopwith is a sidescrolling shoot 'em up created by David L. Clark of BMB Compuscience. It runs on the IBM PC under DOS but there is also a port to the Atari 520ST. The game involves piloting a Sopwith biplane, attempting to bomb enemy buildings while avoiding fire from enemy planes and various other obstacles.
Sopwith was created to demonstrate the "Imaginet" proprietary networking system developed by BMB Compuscience.[1] David L. Clark, employed as a programmer at BMB, developed Sopwith as a multiplayer game. The multiplayer function will not operate without the Imaginet hardware and drivers. However, single player functionality was also included, with the player flying alone or against computer-controlled planes. Because of this, the game was widely distributed, even though the Imaginet system itself was not hugely successful.
All versions of Sopwith feature four-color CGA graphics. Sound is provided by the PC speaker in the form of music and sound effects.
The C source code to Sopwith was released in 2000,[2] at first under a non-commercial use license, but later under the GNU GPL at the request of fans


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#2 2008-06-16 17:52:54

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] SDL Sopwith Game

try

#Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=sopwith  
pkgver=1.7.1
pkgrel=1 
pkgdesc="Sidescrolling shoot 'em up game"
url="http://sdl-sopwith.sourceforge.net/"
arch=('i686')
license=('GPL')
depends=('sdl' 'gtk2')
source=(http://downloads.sourceforge.net/sdl-sopwith/sdl_sopwith-$pkgver.tar.gz \
  gcc4.3.patch)
md5sums=('bc66c80c83b14d48b60ba263403dba9a' '1755f253f022cf8c348136b6bacb8089')
build() {
  cd $startdir/src/sdl_sopwith-$pkgver
  ./configure --prefix=/usr
  patch -p1 < ../gcc4.3.patch || return 1
  make || return 1
  make DESTDIR=$startdir/pkg install
}

together with

diff -ruN sdl_sopwith-1.7.1.orig/src/swsound.c sdl_sopwith-1.7.1.new/src/swsound.c
--- sdl_sopwith-1.7.1.orig/src/swsound.c    2008-06-16 19:44:28.000000000 +0200
+++ sdl_sopwith-1.7.1.new/src/swsound.c    2008-06-16 19:49:10.000000000 +0200
@@ -79,7 +79,7 @@
 };
 #endif
 
-static BOOL titleflg;        /* Playing title tune               */
+extern BOOL titleflg;        /* Playing title tune               */
 static int titlplace;        /*  Place in title tune;            */
 static int titlline;        /* Line in title tune               */
 static unsigned titltone;    /*  Current title tone              */
diff -ruN sdl_sopwith-1.7.1.orig/src/vid_vga.c sdl_sopwith-1.7.1.new/src/vid_vga.c
--- sdl_sopwith-1.7.1.orig/src/vid_vga.c    2008-06-16 19:44:28.000000000 +0200
+++ sdl_sopwith-1.7.1.new/src/vid_vga.c    2008-06-16 19:46:06.000000000 +0200
@@ -22,8 +22,8 @@
 //
 //---------------------------------------------------------------------------
 
+#include <string.h>
 #include "video.h"
-
 #include "sw.h"
 #include "swdisp.h"
 #include "swground.h"

Offline

#3 2008-06-16 18:58:59

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Request] SDL Sopwith Game

Why would it be acceptable for ./configure to fail? Hint hint wink

Offline

#4 2008-06-16 19:49:37

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] SDL Sopwith Game

Nice to see you again!

#Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=sopwith  
pkgver=1.7.1
pkgrel=1 
pkgdesc="Sidescrolling shoot 'em up game"
url="http://sdl-sopwith.sourceforge.net/"
arch=('i686')
license=('GPL')
depends=('sdl' 'gtk2')
source=(http://downloads.sourceforge.net/sdl-sopwith/sdl_sopwith-$pkgver.tar.gz \
  gcc4.3.patch)
md5sums=('bc66c80c83b14d48b60ba263403dba9a' '1755f253f022cf8c348136b6bacb8089')
build() {
  cd $startdir/src/sdl_sopwith-$pkgver
  ./configure --prefix=/usr || return 1
  patch -p1 < ../gcc4.3.patch || return 1
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}

Offline

#5 2008-06-16 19:53:19

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [Request] SDL Sopwith Game

Have you tried Triplane Turmoil ? It should work in DOSBox.


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#6 2008-06-17 00:22:06

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [Request] SDL Sopwith Game

Amazingly fast! tongue thanks really!

but it don't found the patch, and how do you use that diff file?

[aleyscha@aleyscha 61 sopwith]$ makepkg
==> Making package: sopwith 1.7.1-1  (Mon Jun 16 21:19:44 PDT 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found sdl_sopwith-1.7.1.tar.gz in build dir
==> ERROR: gcc4.3.patch was not found in the build directory and is not a URL.

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#7 2008-06-17 01:42:29

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [Request] SDL Sopwith Game

This is the patch. Save it as gcc4.3.patch

Stefan Husmann wrote:
diff -ruN sdl_sopwith-1.7.1.orig/src/swsound.c sdl_sopwith-1.7.1.new/src/swsound.c
--- sdl_sopwith-1.7.1.orig/src/swsound.c    2008-06-16 19:44:28.000000000 +0200
+++ sdl_sopwith-1.7.1.new/src/swsound.c    2008-06-16 19:49:10.000000000 +0200
@@ -79,7 +79,7 @@
 };
 #endif
 
-static BOOL titleflg;        /* Playing title tune               */
+extern BOOL titleflg;        /* Playing title tune               */
 static int titlplace;        /*  Place in title tune;            */
 static int titlline;        /* Line in title tune               */
 static unsigned titltone;    /*  Current title tone              */
diff -ruN sdl_sopwith-1.7.1.orig/src/vid_vga.c sdl_sopwith-1.7.1.new/src/vid_vga.c
--- sdl_sopwith-1.7.1.orig/src/vid_vga.c    2008-06-16 19:44:28.000000000 +0200
+++ sdl_sopwith-1.7.1.new/src/vid_vga.c    2008-06-16 19:46:06.000000000 +0200
@@ -22,8 +22,8 @@
 //
 //---------------------------------------------------------------------------
 
+#include <string.h>
 #include "video.h"
-
 #include "sw.h"
 #include "swdisp.h"
 #include "swground.h"

Offline

#8 2008-06-17 02:37:00

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [Request] SDL Sopwith Game

great! now i have another issue tongue

==> Starting build()...
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -march=i686 -mtune=generic -O2 -pipe ) works... yes
checking whether the C compiler (gcc -march=i686 -mtune=generic -O2 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for a BSD compatible install... /bin/install -c
checking for sdl-config... (cached) /usr/bin/sdl-config
checking for SDL - version >= 1.1.3... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for glib-2.0 >= 2.0 gtk+-2.0 >= 2.0... yes
checking GTK_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1  
checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
checking how to run the C preprocessor... (cached) gcc -E
checking for netinet/ip.h... (cached) yes
creating ./config.status
creating Makefile
sed: file conftest.s1 line 48: unterminated `s' command
creating src/Makefile
sed: file conftest.s1 line 48: unterminated `s' command
creating src/gtk/Makefile
sed: file conftest.s1 line 48: unterminated `s' command
creating src/sdl/Makefile
sed: file conftest.s1 line 48: unterminated `s' command
creating src/psion/Makefile
sed: file conftest.s1 line 48: unterminated `s' command
creating doc/Makefile
sed: file conftest.s1 line 48: unterminated `s' command
creating config.h
config.h is unchanged
patching file src/swsound.c
Hunk #1 FAILED at 79.
1 out of 1 hunk FAILED -- saving rejects to file src/swsound.c.rej
patching file src/vid_vga.c
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file src/vid_vga.c.rej
==> ERROR: Build Failed.
    Aborting...

Last edited by leo2501 (2008-06-17 02:37:40)


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#9 2008-06-17 06:14:27

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] SDL Sopwith Game

Weird, I did not have that. Perhaps a cut and past error.

Offline

#10 2008-06-17 10:33:20

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [Request] SDL Sopwith Game

well, tryed a lot more times but the same error again and again sad


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#11 2008-06-17 10:55:30

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] SDL Sopwith Game

I will try again this evening. I am not at my arch system now.

Offline

#12 2008-06-17 15:31:56

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] SDL Sopwith Game

I upload the tarball to the AUR. I cannot reproduce the error you got, sorry.
If the build fails again, please delete the src-directory and try again.

There already was a first tester on AUR, so it should work now.

Last edited by Stefan Husmann (2008-06-17 16:39:57)

Offline

Board footer

Powered by FluxBB