abuse: new recipe (#3143)

* abuse: new recipe
This commit is contained in:
Paweł Grobelniak
2019-03-03 16:24:19 +01:00
committed by Schrijvers Luc
parent f33cd80d12
commit ba31d344df
2 changed files with 97 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
SUMMARY="2D side-scrolling platform game"
DESCRIPTION="Abuse is a dark 2D side-scrolling platform game developed by \
Crack dot Com in 1995. It features beautiful lighting, realistic animation \
and nasty alien-like creatures to destroy. It is now maintained by Sam \
Hocevar in an attempt to prevent it from vanishing from the Internet."
HOMEPAGE="http://abuse.zoy.org"
COPYRIGHT="2001-2005 Sam Hocevar
2001 Anthony Kruize
1995 Crack dot Com
1995 Bobby Prince
1995 Crack dot Com
1996-2008 Justin Cassidy"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://abuse.zoy.org/raw-attachment/wiki/download/abuse-$portVersion.tar.gz"
CHECKSUM_SHA256="0104db5fd2695c9518583783f7aaa7e5c0355e27c5a803840a05aef97f9d3488"
PATCHES="abuse-$portVersion.patchset"
ARCHITECTURES="x86_gcc2"
PROVIDES="
abuse = $portVersion
cmd:abuse = $portVersion
cmd:abuse_tool = $portVersion
"
REQUIRES="
haiku
lib:libSDL
lib:libSDL_mixer_1.2
lib:libGL
lib:libGLU
"
BUILD_REQUIRES="
haiku_devel
devel:libSDL
devel:libSDL_mixer_1.2
devel:libGLU
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
cmd:awk
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,43 @@
From 70602ecce40c1502303d83500a01fff697cfcd60 Mon Sep 17 00:00:00 2001
From: Yourself <user@shredder.home>
Date: Tue, 25 Sep 2018 16:05:19 +0000
Subject: removed reference to unused sys/shm.h
diff --git a/src/net/tcpip.h b/src/net/tcpip.h
index 000071c..a13ad9d 100644
--- a/src/net/tcpip.h
+++ b/src/net/tcpip.h
@@ -27,7 +27,6 @@
# include <string.h>
# include <sys/time.h>
# include <sys/ipc.h>
-# include <sys/shm.h>
# include <sys/socket.h>
# include <unistd.h>
# ifdef HAVE_BSTRING_H
--
2.19.0
From 691507d92603cc5d4b0d12205e469060741c5493 Mon Sep 17 00:00:00 2001
From: Yourself <user@shredder.home>
Date: Tue, 25 Sep 2018 16:08:30 +0000
Subject: added missing stdint.h reference
diff --git a/src/intsect.cpp b/src/intsect.cpp
index 8df9cbf..85fc0ec 100644
--- a/src/intsect.cpp
+++ b/src/intsect.cpp
@@ -13,6 +13,7 @@
#endif
#include <stdlib.h>
+#include <stdint.h>
void pushback(int32_t x1,int32_t y1,int32_t &x2,int32_t &y2,
int32_t xp1, int32_t yp1, int32_t xp2, int32_t yp2, int xdir, int ydir, int inside)
--
2.19.0