Browse Source

ap/mapmaker: Updated.

current-20191101
parent
commit
52d33e17ad
  1. 23
      ap/mapmaker/mapmaker-0.3.0-fix-missing-includes.patch
  2. 1
      ap/mapmaker/mapmaker-0.3.0.tar.gz.sha1
  3. 1
      ap/mapmaker/mapmaker-0.3.0.tar.gz.sha256
  4. 10
      ap/mapmaker/mapmaker.SlackBuild

23
ap/mapmaker/mapmaker-0.3.0-fix-missing-includes.patch

@ -0,0 +1,23 @@
diff -Naur mapmaker-0.3.0.orig/src/bin/akagoria-map/akagoria-map.cc mapmaker-0.3.0/src/bin/akagoria-map/akagoria-map.cc
--- mapmaker-0.3.0.orig/src/bin/akagoria-map/akagoria-map.cc 2014-04-26 19:53:14.000000000 +0100
+++ mapmaker-0.3.0/src/bin/akagoria-map/akagoria-map.cc 2019-11-28 23:17:53.912147412 +0000
@@ -15,6 +15,7 @@
*/
#include <cinttypes>
#include <cstdio>
+#include <cassert>
#include <algorithm>
#include <exception>
diff -Naur mapmaker-0.3.0.orig/src/include/mm/fractal.h mapmaker-0.3.0/src/include/mm/fractal.h
--- mapmaker-0.3.0.orig/src/include/mm/fractal.h 2014-04-26 19:53:14.000000000 +0100
+++ mapmaker-0.3.0/src/include/mm/fractal.h 2019-11-28 23:17:28.447552848 +0000
@@ -16,6 +16,8 @@
#ifndef MM_FRACTAL_H
#define MM_FRACTAL_H
+#include <functional>
+
#include <mm/heightmap.h>
#include <mm/random.h>

1
ap/mapmaker/mapmaker-0.3.0.tar.gz.sha1

@ -1 +0,0 @@
6fad337b5d5b0b443d6caee472194df3ebc7eab8 mapmaker-0.3.0.tar.gz

1
ap/mapmaker/mapmaker-0.3.0.tar.gz.sha256

@ -0,0 +1 @@
f752434ddb962acb5c797d865fe0e6f6c6fcb7482105b1e4c5e4d9a31dcf525a mapmaker-0.3.0.tar.gz

10
ap/mapmaker/mapmaker.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014 Damien Goutte-Gattat
# Copyright (C) 2014,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -78,7 +78,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -86,6 +86,7 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/mapmaker-0.3.0-fix-missing-includes.patch
mkdir build && cd build
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
@ -111,6 +112,11 @@ cp -r examples $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
yaml-cpp
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save