aboutsummaryrefslogtreecommitdiff
path: root/graphics/leocad/leocad.SlackBuild
diff options
context:
space:
mode:
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 cce94006aac08..74b895f3967e0 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