summaryrefslogtreecommitdiff
path: root/development/cmake
diff options
context:
space:
mode:
authorMichael Johnson <youngmug@animeneko.net>2010-05-11 14:05:50 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 14:05:50 +0200
commitfa2330dc2d7a08a16f8a658c251807527bdb1932 (patch)
tree1b68b77560a72bd6ba36f76f6f27e213318a92fe /development/cmake
parent9931544389c96e881670d5c8734ad3c726f7ab31 (diff)
downloadslackbuilds-fa2330dc2d7a08a16f8a658c251807527bdb1932.tar.gz
development/cmake: Initial import
Diffstat (limited to 'development/cmake')
-rw-r--r--development/cmake/README4
-rw-r--r--development/cmake/cmake.SlackBuild69
-rw-r--r--development/cmake/cmake.info8
-rw-r--r--development/cmake/slack-desc7
4 files changed, 88 insertions, 0 deletions
diff --git a/development/cmake/README b/development/cmake/README
new file mode 100644
index 0000000000..94b0c56cd9
--- /dev/null
+++ b/development/cmake/README
@@ -0,0 +1,4 @@
+CMake is an extensible, open-source system that manages the
+build process in an operating system and compiler independent
+manner.
+CMake uses the system compilers and thus will need gcc to run.
diff --git a/development/cmake/cmake.SlackBuild b/development/cmake/cmake.SlackBuild
new file mode 100644
index 0000000000..7158c8b162
--- /dev/null
+++ b/development/cmake/cmake.SlackBuild
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+# Slackware build script for CMake
+
+# Written by <youngmug@animeneko.net>
+# Modified by the SlackBuilds.org project
+
+PRGNAM=cmake
+VERSION=2.4.3
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-cmake
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $TMP/$PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --docdir=/doc/$PRGNAM-$VERSION \
+ || exit 1
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+cp -a \
+ Copyright.txt ChangeLog.txt Docs/cmake-indent.vim Docs/cmake-syntax.vim \
+ Example $PKG/usr/doc/$PRGNAM-$VERSION
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+
+if [ "$1" = "--cleanup" ]; then
+ cd $CWD
+ rm -rf $TMP/$PRGNAM-$VERSION
+ rm -rf $PKG
+fi
diff --git a/development/cmake/cmake.info b/development/cmake/cmake.info
new file mode 100644
index 0000000000..e27866efd6
--- /dev/null
+++ b/development/cmake/cmake.info
@@ -0,0 +1,8 @@
+PRGNAM="cmake"
+VERSION="2.4.3"
+HOMEPAGE="http://www.cmake.org/"
+DOWNLOAD="http://www.cmake.org/files/v2.4/cmake-2.4.3.tar.gz"
+MD5SUM="c9b50c488a24edd5297ffc3230ecd0f2"
+MAINTAINER="Michael Johnson"
+EMAIL="youngmug@animeneko.net"
+APPROVED="robw810"
diff --git a/development/cmake/slack-desc b/development/cmake/slack-desc
new file mode 100644
index 0000000000..088cf82a35
--- /dev/null
+++ b/development/cmake/slack-desc
@@ -0,0 +1,7 @@
+cmake: cmake (Cross-platform Make)
+cmake:
+cmake: CMake is an extensible, open-source system that manages the
+cmake: build process in an operating system and compiler independent
+cmake: manner.
+cmake:
+cmake: