### this file is sourced not run
PKGVER=5.2.1
PKGBUILD=1
PKGARCH=i686

# source: BLFS 11.3
TARBALL=giflib-$PKGVER.tar.gz
MD5SUM=6f03aee4ebe54ac2cc1ab3e4b0a049e5
SRC_URL=http://downloads.sourceforge.net/giflib/$TARBALL
BUNDLE=

SLACKREQ='libX11_32'
SLACKDESC="giflib32: giflib32 $PKGVER (GIF image library)  
giflib32:  
giflib32: The giflib package contains libraries for reading and writing GIFs as 
giflib32: well as programs for converting and working with GIF files. The 
giflib32: libraries are useful for any graphics program wishing to deal with GIF 
giflib32: files while the programs are useful for conversion purposes as well as 
giflib32: cleaning up images.  
giflib32: 
giflib32: This contains 32-bit version of the library.
giflib32: 
giflib32:
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/giflib* &&
	
	patch -Np1 -i ../pkg/reinstate-quantize.patch &&
	
	make &&
	make PREFIX=/usr LIBDIR=/usr/$LIBDIR install &&

	# BLFS - remove static lib
	rm -fv /usr/$LIBDIR/libgif.a &&
	
	pkg_build_slackdesc	
}


