libraries/DevIL: Added to 12.0 repository

This commit is contained in:
Phil Warner 2010-05-11 20:00:40 +02:00 committed by Robby Workman
parent 66dc7ae353
commit 8b2d48c7c3
4 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,57 @@
#!/bin/sh
# Slackware build script for DevIL
# Written by Phil Warner <pc_warner@yahoo.com>
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=DevIL
VERSION=1.6.8
PKG_VERSION=${VERSION}_rc2
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-$(echo $PKG_VERSION | tr _ -).tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+rw,go-w .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr
force_arch="$ARCH" 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
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING CREDITS ChangeLog INSTALL Libraries.txt \
NEWS README README.unix TODO $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-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="DevIL"
VERSION="1.6.8_rc2"
HOMEPAGE="http://openil.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/openil/DevIL-1.6.8-rc2.tar.gz"
MD5SUM="9d815c8637adb6fb6c25c38dc178aca2"
MAINTAINER="Phil Warner"
EMAIL="pc_warner@yahoo.com"
APPROVED="rworkman"

16
libraries/DevIL/README Normal file
View file

@ -0,0 +1,16 @@
Developer's Image Library (DevIL), formerly called OpenIL, is a programmer's
library to develop applications with very powerful image loading capabilities,
yet is easy for a developer to learn and use. Ultimate control of images is
left to the developer, so unnecessary conversions, etc. are not performed.
DevIL utilizes a simple, yet powerful, syntax. DevIL can load, save, convert,
manipulate, filter and display a wide variety of image formats.
Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .jpg, .lbm,
.mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm, .psd, .psp, .raw,
.sgi, .tga and .tif .hdr files.
Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm, .pcx,
.hdr, .pgm,.png, .ppm, .raw, .sgi, .tga and .tif.
DevIL currently supports the following APIs for display: OpenGL, Windows GDI,
SDL, DirectX and Allegro. Compilers that can compile DevIL or use it include
Djgpp, MSVC++, Linux gcc, Delphi, Visual Basic, Power Basic and Dev-C++.

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------------------------------------------------------|
DevIL: DevIL (image library)
DevIL:
DevIL: Developer's Image Library (DevIL) is a programmer's library to
DevIL: develop applications with very powerful image loading capabilities,
DevIL: yet is easy for a developer to learn and use. Ultimate control of
DevIL: images is left to the developer, so unnecessary conversions, etc.
DevIL: are not performed. DevIL utilizes a simple, yet powerful, syntax.
DevIL: DevIL can load, save, convert, manipulate, filter and display a
DevIL: wide variety of image formats.
DevIL:
DevIL: http://openil.sourceforge.net/