summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-04-24 07:02:05 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-04-24 07:02:05 +0000
commite6a59ddb58ccae84c0bb99f98476f47719d436da (patch)
tree200c15966e1e91285d35ac23e2c2602779ed3a73
parent6f7e00e148e15d010897c60654bb010da5ec8748 (diff)
parentd0f4a8a5bd4399e0030aafdc4b354f87aaf42207 (diff)
downloadpackages-e6a59ddb58ccae84c0bb99f98476f47719d436da.tar.gz
packages-e6a59ddb58ccae84c0bb99f98476f47719d436da.tar.bz2
packages-e6a59ddb58ccae84c0bb99f98476f47719d436da.tar.xz
packages-e6a59ddb58ccae84c0bb99f98476f47719d436da.zip
Merge branch 'user/bzflag' into 'master'
user/bzflag: new package BZFlag is a 3D networked multi-player multi-platform tank battle game. See merge request !28
-rw-r--r--user/bzflag/APKBUILD42
-rw-r--r--user/bzflag/defineAddrLen.patch11
2 files changed, 53 insertions, 0 deletions
diff --git a/user/bzflag/APKBUILD b/user/bzflag/APKBUILD
new file mode 100644
index 000000000..12f55f405
--- /dev/null
+++ b/user/bzflag/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=bzflag
+pkgver=2.4.12
+pkgrel=0
+pkgdesc="a 3D networked multi-player multi-platform tank battle game"
+url="https://www.bzflag.org/"
+arch="all"
+license="LGPL-2.1+ MPL-2.0"
+depends=""
+depends_dev="zlib-dev c-ares-dev curl-dev ncurses-dev sdl2-dev glew-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://download.bzflag.org/bzflag/source/$pkgver/$pkgname-$pkgver.tar.bz2
+ defineAddrLen.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="9b5fa6b7ab7eb13043242defcc86cbed083e98306b2f611932b48d6d833a37bbe2ab05a0a3d1a2c9b861bfbd834fc6e86783ba82d8a841527d0eedb06f3bde9f bzflag-2.4.12.tar.bz2
+568e581dd82ca28aa43281a86867408c726ad4f2145f115a5d3535dbc472463c94288e9349ced715004191af0925daff7e3d55fe1db3ab35554352cc703d79b9 defineAddrLen.patch"
diff --git a/user/bzflag/defineAddrLen.patch b/user/bzflag/defineAddrLen.patch
new file mode 100644
index 000000000..b1189dcac
--- /dev/null
+++ b/user/bzflag/defineAddrLen.patch
@@ -0,0 +1,11 @@
+--- a/include/network.h 2018-04-23 23:17:50.969874036 -0700
++++ b/include/network.h 2018-04-23 23:18:37.750554121 -0700
+@@ -57,7 +57,7 @@
+ # include <bstring.h>
+ #endif
+
+-#if defined(BSD) || defined(__sun__) || defined(__GLIBC__)
++#if defined(BSD) || defined(__sun__) || defined(__linux__)
+ # define AddrLen socklen_t
+ #elif defined (__APPLE__)
+ # include <AvailabilityMacros.h>