summaryrefslogtreecommitdiffstats
path: root/libraries/libxmi
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libxmi')
-rw-r--r--libraries/libxmi/README11
-rw-r--r--libraries/libxmi/libxmi.SlackBuild33
2 files changed, 29 insertions, 15 deletions
diff --git a/libraries/libxmi/README b/libraries/libxmi/README
index 34a820cf68..35ce89042f 100644
--- a/libraries/libxmi/README
+++ b/libraries/libxmi/README
@@ -1,5 +1,6 @@
-GNU libxmi is a C/C++ function library for rasterizing 2-D vector graphics.
-It can draw 2-D graphical primitives, including wide polygonal lines and
-circular and elliptical arcs, into a user supplied matrix of pixels.
-Sophisticated line styles, such as multicolored dashing patterns, can be
-specified. There is also support for filling and texturing polygons.
+GNU libxmi is a C/C++ function library for rasterizing 2-D vector
+graphics. It can draw 2-D graphical primitives, including wide
+polygonal lines and circular and elliptical arcs, into a user supplied
+matrix of pixels. Sophisticated line styles, such as multicolored
+dashing patterns, can be specified. There is also support for filling
+and texturing polygons.
diff --git a/libraries/libxmi/libxmi.SlackBuild b/libraries/libxmi/libxmi.SlackBuild
index 58c756c23b..6b613f6615 100644
--- a/libraries/libxmi/libxmi.SlackBuild
+++ b/libraries/libxmi/libxmi.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for libxmi
@@ -22,26 +22,37 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220420 bkw: Modified by SlackBuilds.org, BUILD=5:
+# - remove empty/useless docs.
+# - i486 => i586.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=libxmi
VERSION=${VERSION:-1.2}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -65,9 +76,9 @@ cd $PRGNAM-$VERSION
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 {} \+
# Substitute newer automake files that know about x86_64
am=$(automake --version | head -1 | cut -d " " -f 4 | cut -d "." -f 2)
@@ -97,12 +108,14 @@ gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING CUSTOMIZE ChangeLog INSTALL NEWS README* TODO VERSION \
+ AUTHORS COPYING CUSTOMIZE NEWS README* TODO VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/lib*/*.la
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE