summaryrefslogtreecommitdiff
path: root/graphics/leocad/leocad.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2012-09-13 13:51:09 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2012-09-13 13:51:09 -0300
commit4efce2e0f77c59c334dd7465b781ba8f55618207 (patch)
tree4f7205d7acd8794c45cf5106b6ce34d30d373c02 /graphics/leocad/leocad.SlackBuild
parent035feb58bfefa5a51a2511186947af63c7df7032 (diff)
downloadslackbuilds-4efce2e0f77c59c334dd7465b781ba8f55618207.tar.gz
graphics/leocad: Updated for version 0.77.0 (+fix for gcc-4.7)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'graphics/leocad/leocad.SlackBuild')
-rw-r--r--graphics/leocad/leocad.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/graphics/leocad/leocad.SlackBuild b/graphics/leocad/leocad.SlackBuild
index cce94006aa..74b895f396 100644
--- a/graphics/leocad/leocad.SlackBuild
+++ b/graphics/leocad/leocad.SlackBuild
@@ -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