aboutsummaryrefslogtreecommitdiff
path: root/games/frogatto/frogatto.SlackBuild
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds@schoepfer.info>2022-03-05 13:05:37 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-07 08:45:29 +0700
commit539ad1538b51e051036659a4caa81fd1967e564f (patch)
tree686b304c97caa321c56df115c9f6d1e88697fd24 /games/frogatto/frogatto.SlackBuild
parentc24fcbc634c09aa3ad9d450fef1499ca0ae0b676 (diff)
games/frogatto: Fix FTBFS.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/frogatto/frogatto.SlackBuild')
-rw-r--r--games/frogatto/frogatto.SlackBuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/games/frogatto/frogatto.SlackBuild b/games/frogatto/frogatto.SlackBuild
index 0f24518542a04..6e555d740e5e3 100644
--- a/games/frogatto/frogatto.SlackBuild
+++ b/games/frogatto/frogatto.SlackBuild
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -72,6 +69,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
+rm -rf MacOSJet
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -79,8 +77,19 @@ 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 {} \;
+# Thanks to the Arch folks
+patch -p1 -i $CWD/fbsd-fixes.patch
+patch -p0 -i $CWD/frogatto-boost-1.70.patch
+
# Fix linking with boost libs and remove -Werror
-sed -i -e 's,-mt,,g' -e 's, -Werror,,' Makefile
+sed -i \
+ -e 's,-mt,,g' \
+ -e 's, -Werror,,' \
+ -e 's/-lprofiler//g' \
+ -e 's/ccache //g' \
+ -e 's/\.io_service/\.get_io_service/g' \
+ -e 's/\%lu\\n/\%zu\\n/g' \
+ Makefile
make \
OPTIMIZE=no \