#Packager: George Vlahavas pkgname=libglpng pkgver=1.45 pkgrel=1gv arch=x86_64 source=("libglpng-$pkgver.tar.bz2" "libglpng-1.45-extra_cflags.patch") url=http://www.t2-project.org/packages/libglpng.html options=('nosrcpack') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "libglpng (a library to load PNG and bind them to OpenGL textures)" "LibGLPng is a library for OpenGL to load PNG graphics files as OpenGL" "textures, as easily as possible. It also has a number of options for" "generating the alpha channel and mipmaps. It is implemented using" "modified vesions of the LibPNG 1.0.2 and ZLib 1.1.3 libraries." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/libglpng-1.45-extra_cflags.patch || exit 1 make EXTRA_CFLAGS="$CFLAGS" || return 1 make install DOCDIR=$startdir/pkg/usr/doc/$pkgname-$pkgver DESTDIR=$startdir/pkg/usr if [ $arch="x86_64" ]; then mv $startdir/pkg/usr/lib $startdir/pkg/usr/lib${LIBDIRSUFFIX} fi }