diff options
author | Grigorios Bouzakis <grbzks@xsmail.com> | 2011-02-20 01:09:55 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-02-28 09:42:04 -0600 |
commit | 205fd2c562ebd24fc237a1afdfef2103f1e079e9 (patch) | |
tree | 6a5cdd885567b6bebe0079207f8c35bedfb5a456 /network/fdm/fdm.SlackBuild | |
parent | 2062bf16019ebbc0af74e2c58b6a574c418b3f0c (diff) | |
download | slackbuilds-205fd2c562ebd24fc237a1afdfef2103f1e079e9.tar.gz |
network/fdm: fixed build failure with recent gcc
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/fdm/fdm.SlackBuild')
-rw-r--r-- | network/fdm/fdm.SlackBuild | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/network/fdm/fdm.SlackBuild b/network/fdm/fdm.SlackBuild index 2ff29539b1..a66bd13bf5 100644 --- a/network/fdm/fdm.SlackBuild +++ b/network/fdm/fdm.SlackBuild @@ -2,19 +2,33 @@ # Slackware build script for fdm -# Written by Grigorios Bouzakis (grbzks@gmail.com) +# Copyright 2007-2011 Grigorios Bouzakis <grbzks@xsmail.com> +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for any purpose +# with or without fee is hereby granted, provided that the above copyright +# notice and this permission notice appear in all copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +# AUTHORS AND COPYRIGHT HOLDERS AND THEIR CONTRIBUTORS BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=fdm VERSION=${VERSION:-1.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -38,6 +52,8 @@ else LIBDIRSUFFIX="" fi +DOCS="CHANGES MANUAL README TODO examples" + set -e rm -rf $PKG @@ -53,29 +69,19 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix up the Makefiles to not explicity declare owner and group when installing -patch -p1 < $CWD/fix_Makefiles.patch +patch -p1 < $CWD/GNUmakefile.patch -make \ - PREFIX=/usr \ - CFLAGS+="$SLKCFLAGS" \ - CXXFLAGS+="$SLKCFLAGS" -make install \ - PREFIX=/usr \ - DESTDIR=$PKG +make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" +make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( 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 -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - CHANGES MANUAL README TODO examples \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |