Browse Source

gnome/gtkmm: Added.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
2b7128704f
  1. 1
      gnome/gtkmm/gtkmm-2.12.7.tar.bz2.sha1
  2. 109
      gnome/gtkmm/gtkmm.SlackBuild
  3. 19
      gnome/gtkmm/slack-desc

1
gnome/gtkmm/gtkmm-2.12.7.tar.bz2.sha1

@ -0,0 +1 @@
ee7211c99e860c4b22091e81e6d1676d12fbb23c ./gtkmm-2.12.7.tar.bz2

109
gnome/gtkmm/gtkmm.SlackBuild

@ -0,0 +1,109 @@
#!/bin/sh
# Build script for Slackware
# by: Parein Nicolas "_Hitek_" http://www.slackbuilds.net < hitek at slackbuilds dot net >
#
# Copyright: See COPYING file at http://www.slackbuilds.net/COPYING
#
# Latest gtkmm sourcecode is available at:
# http://www.gtkmm.org
#
# Depends: gnome/libsigc++, gnome/glibmm, l/cairomm
## Fill these variables to your needs ##
NAMESRC=${NAMESRC:-gtkmm}
VERSION=${VERSION:-2.12.7}
EXT=${EXT:-tar.bz2}
NAMETGZ=${NAMETGZ:-gtkmm}
BUILD=${BUILD:-1_SBn}
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
ARCH=${ARCH:-i486}
WGET=${WGET:-ftp://ftp.gnome.org/pub/gnome/sources/gtkmm/2.12/$NAMESRC-$VERSION.$EXT}
########################################
set -e
if [ ! -r $NAMESRC-$VERSION.$EXT ]; then
wget "$WGET"
fi
sha1sum -c $NAMESRC-$VERSION.$EXT.sha1
CWD=`pwd`
PKG=$TMP/build/$NAMETGZ
NAME=`tar ft $NAMESRC-$VERSION.$EXT | head -1 | awk -F/ '{ print $1 }'`
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
if [ $UID -eq 0 ]; then
echo "You shouldn't run this SlackBuild as ROOT !"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP doesn't exist or is not a directory !"
exit 1
fi
# Build the software
cd $TMP
echo "Building $NAMESRC-$VERSION.$EXT..."
tar xf $CWD/$NAMESRC-$VERSION.$EXT
cd $NAME
CFLAGS=$SLKCFLAGS \
CXXFLAGS=$SLKCFLAGS \
./configure \
--prefix=/usr \
--disable-static \
--build=$ARCH-slackware-linux
make -j3
make install DESTDIR=$PKG
# Install a slack-desc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
# Install a doinst.sh, if it exists
if [ -r $CWD/doinst.sh ]; then
cat $CWD/doinst.sh > $PKG/install/doinst.sh
fi
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMETGZ-$VERSION
install -m 644 \
AUTHORS ChangeLog CHANGES COPYING README \
$PKG/usr/doc/$NAMETGZ-$VERSION
mv $PKG/usr/share/doc/gtkmm-2.4 $PKG/usr/doc/$NAMETGZ-$VERSION
rm -rf $PKG/usr/share/doc
# Strip binaries and libraries
find $PKG | xargs file | grep "ELF 32-bit LSB executable" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || echo "No ELF 32-bit LSB executable to strip"
find $PKG | xargs file | grep "shared object" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || echo "No shared object to strip"
# Build the package
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

19
gnome/gtkmm/slack-desc

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
gtkmm: gtkmm (a C++ interface for GTK+2)
gtkmm:
gtkmm: gtkmm is the official C++ interface for the popular GUI library
gtkmm: GTK+2. Highlights include typesafe callbacks, and a comprehensive
gtkmm: set of widgets that are easily extensible via inheritance.
gtkmm:
gtkmm: For more information, see: http://www.gtkmm.org
gtkmm:
gtkmm:
gtkmm:
gtkmm:
Loading…
Cancel
Save