summaryrefslogtreecommitdiffstats
path: root/development/cmake-202x/README_SBo.txt
diff options
context:
space:
mode:
Diffstat (limited to 'development/cmake-202x/README_SBo.txt')
-rw-r--r--development/cmake-202x/README_SBo.txt35
1 files changed, 35 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..e1531c1172
--- /dev/null
+++ b/development/cmake-202x/README_SBo.txt
@@ -0,0 +1,35 @@
+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
+ export "PATH=/opt/cmake-202x/bin:$PATH"
+ 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!