diff options
-rw-r--r-- | libraries/libglpng/README | 4 | ||||
-rw-r--r-- | libraries/libglpng/libglpng.SlackBuild | 39 | ||||
-rw-r--r-- | libraries/libglpng/libglpng.info | 8 | ||||
-rw-r--r-- | libraries/libglpng/slack-desc | 19 |
4 files changed, 70 insertions, 0 deletions
diff --git a/libraries/libglpng/README b/libraries/libglpng/README new file mode 100644 index 0000000000000..cd5b4c1d08081 --- /dev/null +++ b/libraries/libglpng/README @@ -0,0 +1,4 @@ +PNG loader for OpenGL + +glpng is a small toolkit to make loading PNG image files +as an OpenGL texture as easy as possible. diff --git a/libraries/libglpng/libglpng.SlackBuild b/libraries/libglpng/libglpng.SlackBuild new file mode 100644 index 0000000000000..d1c04262fa735 --- /dev/null +++ b/libraries/libglpng/libglpng.SlackBuild @@ -0,0 +1,39 @@ +#!/bin/sh + +# Slackware build script for libglpng +# Written by Erik Hanson erik@slackbuilds.org + +PRGNAM=libglpng +VERSION=1.45 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +make || exit 1 +make install DESTDIR=$PKG/usr || exit 1 + +strip --strip-unneeded $PKG/usr/lib/* 2> /dev/null +rm $PKG/usr/lib/libglpng.a + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install +mv $PKG/usr/share/doc/libglpng/* $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/libraries/libglpng/libglpng.info b/libraries/libglpng/libglpng.info new file mode 100644 index 0000000000000..dcd60af55bae6 --- /dev/null +++ b/libraries/libglpng/libglpng.info @@ -0,0 +1,8 @@ +PRGNAM="libglpng" +VERSION="1.45" +HOMEPAGE="http://www.wyatt100.freeserve.co.uk/" +DOWNLOAD="http://slackbuilds.org/sources/12.0/libglpng-1.45.tar.bz2" +MD5SUM="ed0fee2b07e30c336bab1c14fafa1c15" +MAINTAINER="Erik Hanson" +EMAIL="erik@slackbuilds.org" +APPROVED="David Somero,rworkman" diff --git a/libraries/libglpng/slack-desc b/libraries/libglpng/slack-desc new file mode 100644 index 0000000000000..4b79a499a570c --- /dev/null +++ b/libraries/libglpng/slack-desc @@ -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-----------------------------------------------------| +libglpng: libglpng ( PNG loader for OpenGL ) +libglpng: +libglpng: glpng is a small toolkit to make loading PNG image files as an +libglpng: OpenGL texture as easy as possible. +libglpng: +libglpng: +libglpng: +libglpng: +libglpng: +libglpng: +libglpng: |