summaryrefslogtreecommitdiff
path: root/development/codeblocks/codeblocks.SlackBuild
diff options
context:
space:
mode:
authorJeanne-Kamikaze <jeannekamikaze@gmail.com>2010-05-11 22:53:29 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 22:53:29 +0200
commitc4bb54ca8edb9df69a92fc936a454edb32c390d8 (patch)
tree3b9e51970427e21c1d382ec76811931201aad57f /development/codeblocks/codeblocks.SlackBuild
parenta1579f660ef80883745827ec5e3954175e30d8eb (diff)
downloadslackbuilds-c4bb54ca8edb9df69a92fc936a454edb32c390d8.tar.gz
development/codeblocks: Added to 12.1 repository
Diffstat (limited to 'development/codeblocks/codeblocks.SlackBuild')
-rw-r--r--development/codeblocks/codeblocks.SlackBuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/development/codeblocks/codeblocks.SlackBuild b/development/codeblocks/codeblocks.SlackBuild
new file mode 100644
index 0000000000..e1bf469e08
--- /dev/null
+++ b/development/codeblocks/codeblocks.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for Code::Blocks
+# Written by Jeanne-Kamikaze (AKA SlackerJeanne) (jeannekamikaze@gmail.com)
+# Modified by Erik Hanson <erik@slackbuilds.org>
+
+# The software belongs and is copyrighted by the Code::Blocks team.
+# The proper license can be found along with the software source code.
+
+set -eu
+
+PRGNAM=codeblocks
+VERSION=8.02
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=`pwd`
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOC="AUTHORS BUGS BUILD COMPILERS COPYING NEWS README TODO"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG
+rm -rf $TMP/$PRGNAM-$VERSION
+cd $TMP
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --mandir=/usr/man \
+ --disable-static \
+ --with-contrib-plugins=all \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+gzip -9 $PKG/usr/man/man?/*.?
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOC $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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