summaryrefslogtreecommitdiffstats
path: root/development/cmake-202x/README_SBo.txt
diff options
context:
space:
mode:
author B. Watson2020-09-18 20:44:31 +0200
committer Willy Sudiarto Raharjo2020-09-19 03:55:01 +0200
commitc8894756c3b34d755204e6298d1ae1737670cf50 (patch)
treef8519cfbebfbd867a17ff81998f47b2f6fd50e9a /development/cmake-202x/README_SBo.txt
parentad12611654b13c8bbbf13970ee97aa5372612ca4 (diff)
downloadslackbuilds-c8894756c3b34d755204e6298d1ae1737670cf50.tar.gz
development/cmake-202x: Added (cross-platform, FOSS make system)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/cmake-202x/README_SBo.txt')
-rw-r--r--development/cmake-202x/README_SBo.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/development/cmake-202x/README_SBo.txt b/development/cmake-202x/README_SBo.txt
new file mode 100644
index 0000000000..5dd70eb50d
--- /dev/null
+++ b/development/cmake-202x/README_SBo.txt
@@ -0,0 +1,34 @@
+The main purpose for cmake-202x is to allow SlackBuild scripts to
+build software that needs a cmake newer than the version that ships
+with Slackware 14.2.
+
+If you're writing a new SlackBuild or updating an old one, and you're
+using cmake.template, but you get an error complaining that CMake is
+too old, here's how to use this:
+
+1. Change the "cmake" command in your SlackBuild to
+ /opt/cmake-202x/bin/cmake. In context, it will look like:
+
+ mkdir -p build
+ cd build
+ /opt/cmake-202x/bin/cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ ...etc, etc.
+
+2. Add cmake-202x to the REQUIRES in your .info file.
+
+That's it. Your SlackBuild shouldn't need any other changes. If you
+want to look at a complete SlackBuild script that uses cmake-202x,
+see academic/bibletime.
+
+Note: If you're using cmake interactively (developing software outside
+the context of SlackBuild scripts), there are a couple of things you
+might want to add to your .bash_profile to make things smoother:
+
+ export PATH=/opt/cmake-202x/bin:$PATH
+ export MANPATH=/opt/cmake-202x/man:$MANPATH
+
+Then when you type "cmake", you'll get the new version. Also "man
+cmake" will show the man page for the new version. You *don't* need
+this stuff in a SlackBuild script!