libraries/libxmi: Added to 12.0 repository

This commit is contained in:
David Spencer 2010-05-11 20:00:58 +02:00 committed by Robby Workman
parent 7caa20c85e
commit 1f55742f69
4 changed files with 95 additions and 0 deletions

6
libraries/libxmi/README Normal file
View file

@ -0,0 +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.

View file

@ -0,0 +1,62 @@
#!/bin/sh
# Slackware build script for libxmi
# Written by David Spencer <nobbutl@yahoo.co.uk>
# This script is dedicated to the public domain
PRGNAM=libxmi
VERSION=1.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static
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
)
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
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

View file

@ -0,0 +1,8 @@
PRGNAM="libxmi"
VERSION="1.2"
HOMEPAGE="Homepage: http://www.gnu.org/software/libxmi/"
DOWNLOAD="http://ftp.gnu.org/gnu/libxmi/libxmi-1.2.tar.gz"
MD5SUM="4e6935484f0ad71b531920bf4c546b47"
MAINTAINER="David Spencer"
EMAIL="nobbutl@yahoo.co.uk"
APPROVED="rworkman,Erik Hanson"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
libxmi: libxmi (library for rasterizing 2-D vector graphics)
libxmi:
libxmi: GNU libxmi is a C/C++ function library for rasterizing 2-D vector
libxmi: graphics. It can draw 2-D graphical primitives, including wide
libxmi: polygonal lines and circular and elliptical arcs, into a user
libxmi: supplied matrix of pixels. Sophisticated line styles, such as
libxmi: multicolored dashing patterns, can be specified. There is also
libxmi: support for filling and texturing polygons.
libxmi:
libxmi: Homepage: http://www.gnu.org/software/libxmi/
libxmi: