aboutsummaryrefslogtreecommitdiff
path: root/graphics/tclblt
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-25 12:48:08 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-27 01:09:46 +0700
commit84c851c9189ea9ac5753aa3c42fee75cbb39b816 (patch)
tree3509efe0af3392799bb6bc994c84910d64f48dea /graphics/tclblt
parent11d2c8e8a8a51657ca76c286e2010f008985afe5 (diff)
graphics/tclblt: Add -j1 to make, use /usr/lib64 on x86_64.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/tclblt')
-rw-r--r--graphics/tclblt/README6
-rw-r--r--graphics/tclblt/tclblt.SlackBuild51
2 files changed, 30 insertions, 27 deletions
diff --git a/graphics/tclblt/README b/graphics/tclblt/README
index 4b9e6b8fe00ad..857fc20ddf29b 100644
--- a/graphics/tclblt/README
+++ b/graphics/tclblt/README
@@ -1,3 +1,3 @@
-Tcl BLT is an extension to Tcl/Tk. It adds plotting widgets (X-Y graph,
-barchart, stripchart), a powerful geometry manager, a new canvas
-item, and several new commands to Tk.
+Tcl BLT is an extension to Tcl/Tk. It adds plotting widgets (X-Y
+graph, barchart, stripchart), a powerful geometry manager, a new
+canvas item, and several new commands to Tk.
diff --git a/graphics/tclblt/tclblt.SlackBuild b/graphics/tclblt/tclblt.SlackBuild
index bb8d73ba0b9b9..114d334ab5c49 100644
--- a/graphics/tclblt/tclblt.SlackBuild
+++ b/graphics/tclblt/tclblt.SlackBuild
@@ -22,11 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - add -j1 to make commands (parallel builds fail).
+# - do not install libraries to /usr/lib on x86_64.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tclblt
VERSION=${VERSION:-2.5.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRC="blt-src-2.5.3.zip"
@@ -40,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -77,9 +78,9 @@ cd $SRC_HOME
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
#Here we will apply the patches from Debian project
rm -rv library/dd_protocols && patch -p1 < $CWD/patches/source.patch && sed -i -e 's/\$$(ddFiles)//' library/Makefile.in
@@ -121,28 +122,30 @@ CXXFLAGS="$SLKCFLAGS" \
--with-blt=/usr/lib${LIBDIRSUFFIX} \
--with-tcllibs=/usr/lib${LIBDIRSUFFIX}
-make
-make install INSTALL_ROOT=$PKG
+make -j1
+make -j1 install INSTALL_ROOT=$PKG
+gzip -9 $PKG/usr/man/man*/*
+
+# 20220225 bkw: configure doesn't respect --disable-static, for now
+# just leave the static libs.
-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
+# 20220225 bkw: documentation getting installed in /usr/lib
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+mv $PKG/usr/lib/blt*/{NEWS,PROBLEMS,README,demos} $PKGDOC
-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
+# 20220225 bkw: --libdir not fully respected
+if [ -n "$LIBDIRSUFFIX" ]; then
+ mv $PKG/usr/lib/*.{so,a} $PKG/usr/lib$LIBDIRSUFFIX
+ rm -rf $PKG/usr/lib
+fi
-find $PKG -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
+strip $PKG/usr/bin/* $PKG/usr/lib$LIBDIRSUFFIX/*.so
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a html $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a examples $PKG/usr/doc/$PRGNAM-$VERSION
-DOCLIST="README PROBLEMS NEWS demos"
-for DOCNAME in $DOCLIST ; do mv $PKG/usr/lib/blt2.5/$DOCNAME $PKG/usr/doc/$PRGNAM-$VERSION ; done
-rmdir $PKG/usr/lib/blt2.5
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
+cp -a html $PKGDOC
+cp -a examples $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+find $PKGDOC -type f -exec chmod 644 {} \+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc