mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
development/cmake: Initial import
This commit is contained in:
parent
9931544389
commit
fa2330dc2d
4 changed files with 88 additions and 0 deletions
4
development/cmake/README
Normal file
4
development/cmake/README
Normal file
|
@ -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.
|
69
development/cmake/cmake.SlackBuild
Normal file
69
development/cmake/cmake.SlackBuild
Normal file
|
@ -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
|
8
development/cmake/cmake.info
Normal file
8
development/cmake/cmake.info
Normal file
|
@ -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"
|
7
development/cmake/slack-desc
Normal file
7
development/cmake/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue