mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
games/cgmadness: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
235aeb87a8
commit
6971fc98ee
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
#!/bin/sh
|
||||
|
||||
# Slackware build script for cgmadness
|
||||
|
@ -5,7 +6,7 @@
|
|||
# Written by Zbigniew Baniewski <Zbigniew [dot] Baniewski [at] gmail [dot] com>
|
||||
|
||||
PRGNAM=cgmadness
|
||||
VERSION=1.3
|
||||
VERSION=${VERSION:-1.3}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -51,7 +52,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
cat $CWD/01-Makefile.patch | patch -p1 || exit 1
|
||||
cat $CWD/01-Makefile.patch | patch -p1
|
||||
patch -p1 < $CWD/cgmadness.patch
|
||||
|
||||
make
|
||||
mkdir -p $PKG/usr/share/games/cgmadness/data $PKG/usr/share/games/cgmadness/levels \
|
||||
|
|
10
games/cgmadness/cgmadness.patch
Normal file
10
games/cgmadness/cgmadness.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- cgmadness/libgrapple/socket.c.orig 2016-02-06 01:05:57.214993971 +0700
|
||||
+++ cgmadness/libgrapple/socket.c 2016-02-06 01:06:07.771969910 +0700
|
||||
@@ -34,6 +34,7 @@
|
||||
*/
|
||||
|
||||
#define _XOPEN_SOURCE 500
|
||||
+#define NI_NUMERICHOST 0x0008
|
||||
|
||||
#include "grapple_configure_substitute.h"
|
||||
|
Loading…
Reference in a new issue