summaryrefslogtreecommitdiffstats
path: root/libraries/libgdiplus/libgdiplus.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libgdiplus/libgdiplus.SlackBuild')
-rw-r--r--libraries/libgdiplus/libgdiplus.SlackBuild21
1 files changed, 13 insertions, 8 deletions
diff --git a/libraries/libgdiplus/libgdiplus.SlackBuild b/libraries/libgdiplus/libgdiplus.SlackBuild
index 02776b1eb5..cb4ab7f0d4 100644
--- a/libraries/libgdiplus/libgdiplus.SlackBuild
+++ b/libraries/libgdiplus/libgdiplus.SlackBuild
@@ -2,8 +2,9 @@
# Slackware build script for libgdiplus
-# Copyright 2006 Martin Lefebvre <dadexter@gmail.com>
-# Copyright 2017 Andre Barboza <bmg.andre@gmail.com>
+# Copyright 2023 Steven Voges <Oregon, USA>
+# Copyright 2017 Andre Barboza <bmg.andre@gmail.com>
+# Copyright 2006 Martin Lefebvre <dadexter@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +27,9 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libgdiplus
-VERSION=${VERSION:-6.0.5}
+VERSION=${VERSION:-6.1}
+GOOGLETEST=${GOOGLETEST:-1.11.0}
+#GOOGLETEST=${GOOGLETEST:-703bd9caab50b139428cea1aaff9974ebee5742e}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +42,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
@@ -50,6 +50,7 @@ fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DEPS=$TMP/$PRGNAM-$VERSION/external
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -73,6 +74,10 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+
+tar xvf $CWD/googletest-release-$GOOGLETEST.tar.gz -C \
+ $DEPS/googletest --strip-components 1
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -92,14 +97,14 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--build=$ARCH-slackware-linux
-
make
make install-strip DESTDIR=$PKG
rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/*.la
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS TODO \
+cp -a \
+ *.md docs/* AUTHORS COPYING ChangeLog LICENSE NEWS TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild