graphics/leocad: Updated for version 0.77.0 (+fix for gcc-4.7)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Niels Horn 2012-09-13 13:51:09 -03:00 committed by Niels Horn
parent 035feb58bf
commit 4efce2e0f7
2 changed files with 12 additions and 11 deletions

View file

@ -3,7 +3,7 @@
# Slackware build script for LeoCAD:
# 3D design program for bricks
# Copyright 2009-2011 Niels Horn, Rio de Janeiro, Brazil
# Copyright 2009-2012 Niels Horn, Rio de Janeiro, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,15 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# revision date 2011/06/29
# revision date 2012/08/10
PRGNAM=leocad
VERSION=${VERSION:-0.75.2}
VERSION=${VERSION:-0.77.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCVERSION=$(echo $VERSION | cut -f1-2 -d. )
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@ -61,14 +59,17 @@ fi
set -e
rm -rf $TMP/$PRGNAM-$SRCVERSION $PKG
rm -rf $TMP/$PRGNAM $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION-src.tgz
cd $PRGNAM-$SRCVERSION
cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Include libs gcc-4.7 won't find by itself
sed "/^LIBS/s/=/= -lX11 -ldl/" -i Makefile
make config PREFIX=/usr DESTDIR=$PKG
CFLAGS="$SLKCFLAGS" CPPFLAGS="$SLKCFLAGS" make
make install
@ -87,7 +88,7 @@ cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CREDITS.txt README.txt docs/CHANGES.txt docs/COPYING.txt docs/INSTALL.txt \
CREDITS.txt README.txt docs/COPYING.txt docs/INSTALL.txt \
docs/LINUX.txt docs/TODO.txt $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="leocad"
VERSION="0.75.2"
VERSION="0.77.0"
HOMEPAGE="http://www.leocad.org/"
DOWNLOAD="http://leocad.googlecode.com/files/leocad-0.75.2-src.tgz"
MD5SUM="6d20156bb35a68f3da2d608411dea363"
DOWNLOAD="http://leocad.googlecode.com/files/leocad-0.77.0-src.tgz"
MD5SUM="007fba24d1ecd72f177af107cb3fa946"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="leocad_pieces"