development/codeblocks: Updated for version 8.02

This commit is contained in:
Jeanne-Kamikaze 2010-05-13 00:24:21 +02:00 committed by Erik Hanson
parent f8ce6e0966
commit d7a968965f
5 changed files with 37 additions and 20 deletions

View file

@ -1,7 +1,6 @@
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its
users. It is designed to be very extensible and fully configurable.
users. It is designed to be very extensible and fully configurable.
Built around a plugin framework, Code::Blocks can be extended with plugins.
Any kind of functionality can be added by installing/coding a plugin.
Requires libmspack, wxGTK or wxPython, available at SlackBuilds.org
This requires libmspack and either wxGTK or wxPython.

View file

@ -4,31 +4,30 @@
# 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`
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"
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -eu
rm -rf $PKG
mkdir -p $TMP $PKG
rm -rf $TMP/$PRGNAM-$VERSION
@ -42,13 +41,13 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--mandir=/usr/man \
--disable-static \
--with-contrib-plugins=all \
--build=$ARCH-slackware-linux \
--host=$ARCH-slackware-linux
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@ -56,11 +55,14 @@ 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
cp -a \
AUTHORS BUGS BUILD COMPILERS COPYING NEWS README TODO \
$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
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -3,6 +3,8 @@ VERSION="8.02"
HOMEPAGE="http://www.codeblocks.org"
DOWNLOAD="http://downloads.sourceforge.net/codeblocks/codeblocks-8.02-src.tar.bz2"
MD5SUM="ac15b4b3de50d7650c2f7a8dbcb30f88"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Jeanne-Kamikaze"
EMAIL="jeannekamikaze@gmail.com"
APPROVED="Erik Hanson"

View file

@ -0,0 +1,14 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -e usr/share/icons/gnome/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/gnome >/dev/null 2>&1
fi
fi

View file

@ -5,15 +5,15 @@
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
|-----handy-ruler------------------------------------------------------|
codeblocks: Code::Blocks (a free C++ IDE)
codeblocks:
codeblocks: Code::Blocks is a free C++ IDE built to meet the most demanding
codeblocks: needs of its users. It is designed to be very extensible and fully
codeblocks: configurable.
codeblocks:
codeblocks: Homepage: http://www.codeblocks.org/
codeblocks:
codeblocks:
codeblocks:
codeblocks: http://www.codeblocks.org/
codeblocks: