summaryrefslogtreecommitdiff
path: root/development/icecream/icecream.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/icecream/icecream.SlackBuild')
-rw-r--r--development/icecream/icecream.SlackBuild34
1 files changed, 25 insertions, 9 deletions
diff --git a/development/icecream/icecream.SlackBuild b/development/icecream/icecream.SlackBuild
index 8b24280622..55db8355d9 100644
--- a/development/icecream/icecream.SlackBuild
+++ b/development/icecream/icecream.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for icecream
-# Copyright 2009-2010 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2009-2014 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=icecream
SRCNAM=icecc
VERSION=1.0.1
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -41,6 +41,18 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if ! grep ^icecream: /etc/group 2>&1 > /dev/null; then
+ echo " Must have a icecream group to run this script."
+ echo " # groupadd -g 282 icecream"
+ echo " Or something similar."
+ exit 1
+elif ! grep ^icecream: /etc/passwd 2>&1 > /dev/null; then
+ echo " Must have a icecream user to run this script."
+ echo " # useradd -u 282 -g icecream -d /var/cache/icecream icecream"
+ echo " Or something similar."
+ exit 1
+fi
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -78,13 +90,15 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --enable-clang-rewrite-includes \
+ --enable-clang-wrappers \
+ --enable-shared \
+ --disable-static \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
-rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.a
-
mkdir -p $PKG/etc/profile.d/
cp $CWD/profile.d/* $PKG/etc/profile.d/
chmod 0755 $PKG/etc/profile.d/*
@@ -95,13 +109,15 @@ install -m 0755 $CWD/rc.iceccd $PKG/etc/rc.d/rc.iceccd.new
install -m 0755 $CWD/rc.icecc-scheduler $PKG/etc/rc.d/rc.icecc-scheduler.new
install -m 0644 $CWD/rc.icecream.conf $PKG/etc/rc.d/rc.icecream.conf.new
-mkdir -p $PKG/opt/icecream/bin
-for i in g++ gcc cc c++ $ARCH-slackware-linux-c++ \
- $ARCH-slackware-linux-g++ $ARCH-slackware-linux-gcc; do
- ln -s /usr/bin/icecc $PKG/opt/icecream/bin/$i
- rm -f $PKG/usr/bin/$i
+for i in $ARCH-slackware-linux-c++ $ARCH-slackware-linux-g++ \
+ $ARCH-slackware-linux-gcc $ARCH-slackware-linux-clang \
+ $ARCH-slackware-linux-clang++; do
+ ln -s /usr/bin/icecc $PKG/usr/libexec/icecc/bin/$i
done
+mkdir -p $PKG/var/{cache,log}/icecream
+chown icecream:icecream $PKG/var/{cache,log}/icecream
+
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION