swars, remove obsolete package (#11000)

This commit is contained in:
Schrijvers Luc
2024-08-31 11:44:52 +02:00
committed by GitHub
parent dd5dd99a50
commit 036556147e
3 changed files with 0 additions and 210 deletions

View File

@@ -1,36 +0,0 @@
Syndicate Wars Port is a port of the 1996 DOS game
Syndicate Wars to modern operating systems. In particular, it runs on GNU,
Mac OS and Windows, but it should also work on any system supported by the
SDL library on the i386 architecture.
To create the port, we disassembled the original DOS executable and replaced
most of the DOS-specific parts with platform-independent code, using SDL for
input and video display, Vorbis for music and OpenAL for sound.
As part of the port we only provide a modernised executable which will run on
contemporary systems. However, we do not provide the game data. To install
the Syndicate Wars Port, you will need to have the original data from the
Syndicate Wars CD.
The port is not fully complete. It is possible to finish the single player
campaigns, but support for networking is missing. There is also no support for
joystick control.
Installing
Insert the Syndicate Wars CD and make sure it is mounted
(e.g. in /media/cdrom)
Do "swarsinstall -f SOURCE -t TARGET -l LANG -M", or
"swarsinstall-x86 -f SOURCE -t TARGET -l LANG -M",
where SOURCE is the game CD path, like /media/cdrom,
TARGET is the destination path, either /system/settings/swars or
~/config/settings/swars (depending on where you installed the package),
LANG is the installation language, and can be one of: eng fre ita spa swe.
Note that on haiku the installer can't currently rip the music, but you can
manually rip it to ogg format and place track_1.ogg, track_2.ogg and
track_3.ogg into /system/settings/swars/music or
~/config/settings/swars/music
Run swars, or swars-x86, to play!

View File

@@ -1,94 +0,0 @@
From 36bfe8878323cd4a24572c91c14617884f6e7326 Mon Sep 17 00:00:00 2001
From: Ed Robbins <edd.robbins@gmail.com>
Date: Sat, 30 Jul 2016 21:56:17 +0000
Subject: Check for __HAIKU__ definition as well as ____i
diff --git a/src/dos.c b/src/dos.c
index 1223064..17cddec 100644
--- a/src/dos.c
+++ b/src/dos.c
@@ -18,7 +18,7 @@
#include "util.h"
#include "windows.h"
-#ifdef __unix__
+#if defined(__unix__) || defined(__HAIKU__)
# include <unistd.h>
# ifndef O_BINARY
diff --git a/src/game.c b/src/game.c
index aaa5b65..6c43e06 100644
--- a/src/game.c
+++ b/src/game.c
@@ -52,7 +52,7 @@ game_initialise (void)
return false;
}
-#ifdef __unix__
+#if defined(__unix__) || defined(__HAIKU__)
/* clean up after SDL messing around where it shouldn't */
unix_restore_signal_handlers ();
#endif
diff --git a/src/unix.c b/src/unix.c
index 6365c13..8d2c4ff 100644
--- a/src/unix.c
+++ b/src/unix.c
@@ -1,4 +1,4 @@
-#ifdef __unix__
+#if defined(__unix__) || defined(__HAIKU__)
#include <signal.h>
#include <stdio.h>
diff --git a/src/unix.h b/src/unix.h
index 4ff7668..7d31dda 100644
--- a/src/unix.h
+++ b/src/unix.h
@@ -1,7 +1,7 @@
#ifndef UNIX_H
#define UNIX_H
-#ifdef __unix__
+#if defined(__unix__) || defined(__HAIKU__)
#include <stdbool.h>
diff --git a/src/util.h b/src/util.h
index 4aca9b2..38b7d12 100644
--- a/src/util.h
+++ b/src/util.h
@@ -12,7 +12,7 @@
# define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif
-#ifdef __unix__
+#if defined(__unix__) || defined(__HAIKU__)
# define FS_SEP '/'
# define FS_SEP_STR "/"
#elif defined _WIN32
--
2.7.0
From 18e16c05789c6d5dff769a762e79411699634edb Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sat, 6 Aug 2016 22:38:37 +0200
Subject: disable fullscreen
diff --git a/src/main.c b/src/main.c
index 342d257..1ae06fa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -74,7 +74,7 @@ main (int argc, char **argv)
{
int retval;
- display_set_full_screen (true);
+ display_set_full_screen (false);
display_set_lowres_stretch (true);
process_options (&argc, &argv);
--
2.7.0

View File

@@ -1,80 +0,0 @@
SUMMARY="Port of the DOS game Syndicate Wars"
DESCRIPTION="Syndicate Wars presents a followup to the events in Syndicate \
taking place 95 years later (the year 2191). At the game's opening, the \
player-controlled syndicate (called EuroCorp) is at the peak of its power \
(achieved in the previous game), an alliance of corporations controlling the \
world through a combination of military and economic power, and \
technological mind control. Corporate decisions are facilitated through a \
number of AI entities connected through a global communications network.
Syndicate Wars preserves the isometric view of Syndicate, while adding \
rotation and pitch controls over the view. Control over agents \
(or acolytes, when playing as the Church) is largely the same as the \
previous syndicate games, being based on a combination of keyboard and \
mouse actions.
Check the 'documentation/packages/swars/ReadmeHaiku' on how to play"
HOMEPAGE="http://swars.vexillium.org/"
COPYRIGHT="2010 Unavowed
2010 Gynvael Coldwind
2010 Memek
2010 oshogbo
2010 Blount
2010 Xa
"
LICENSE="GNU GPL v3"
REVISION="5"
SOURCE_URI="http://swars.vexillium.org/files/swars-0.3.tar.bz2"
CHECKSUM_SHA256="01f44e5b792d41b138d361d04810a875cfa5f897c642a2b13d0dde633fabdacb"
SOURCE_DIR="swars-$portVersion"
PATCHES="swars_x86-0.3.patchset"
ADDITIONAL_FILES="ReadmeHaiku"
ARCHITECTURES="!all x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
swars$secondaryArchSuffix = $portVersion
cmd:swars$secondaryArchSuffix
cmd:swarsinstall$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix
lib:libvorbisfile$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libSDL$secondaryArchSuffix
devel:libvorbisfile$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:python
"
BUILD()
{
runConfigure ./configure --datadir=$settingsDir
make $jobArgs
}
INSTALL()
{
make install
/bin/install -m 0755 util/install ${binDir}/swarsinstall
mv $portDir/additional-files/ReadmeHaiku $docDir/ReadmeHaiku
}