mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/libxmi: Updated for version 1.2
This commit is contained in:
parent
77b9dd7054
commit
df94b19b09
4 changed files with 37 additions and 17 deletions
|
@ -1,6 +1,5 @@
|
|||
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.
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
PRGNAM=libxmi
|
||||
VERSION=1.2
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
@ -17,8 +17,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -32,31 +37,45 @@ cd $PRGNAM-$VERSION
|
|||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# Substitute newer automake files that know about x86_64
|
||||
# (as for SBo's soundtouch)
|
||||
am=$(automake --version | grep "1." | cut -d " " -f 4 | cut -d "." -f 2)
|
||||
for i in config.guess config.sub depcomp install-sh missing; do
|
||||
rm -f $i
|
||||
ln -s /usr/share/automake-1.$am/$i $i
|
||||
done
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static
|
||||
--disable-static \
|
||||
--build=$ARCH-slackware-linux \
|
||||
--host=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*.info*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING CUSTOMIZE ChangeLog INSTALL NEWS README \
|
||||
README-X TODO VERSION $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
AUTHORS COPYING CUSTOMIZE ChangeLog INSTALL NEWS README* TODO VERSION \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
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.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -3,6 +3,8 @@ VERSION="1.2"
|
|||
HOMEPAGE="http://www.gnu.org/software/libxmi/"
|
||||
DOWNLOAD="http://ftp.gnu.org/gnu/libxmi/libxmi-1.2.tar.gz"
|
||||
MD5SUM="4e6935484f0ad71b531920bf4c546b47"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="David Spencer"
|
||||
EMAIL="nobbutl@yahoo.co.uk"
|
||||
APPROVED="rworkman,Erik Hanson"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue