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

# source: BLFS 11.3
TARBALL=imlib2-$PKGVER.tar.xz
MD5SUM=596fd0664538adb7867aa609fb718147
SRC_URL=http://downloads.sourceforge.net/enlightenment/$TARBALL
BUNDLE=

SLACKREQ='giflib32 freetype2_32 libpng32 libjpeg-turbo32 libX11_32'
SLACKDESC="imlib2_32: imlib2_32 $PKGVER (Graphics library)  
imlib2_32:  
imlib2_32: Imlib2 is a convenience graphics library for fast file loading, 
imlib2_32: saving, rendering and manipulation. It can load and process several 
imlib2_32: popular formats, such as jpeg, gif, and png; it provides one unified 
imlib2_32: interface for all these formats.  
imlib2_32: 
imlib2_32: This contains 32-bit version of the library.
imlib2_32: 
imlib2_32: 
imlib2_32:
"

### 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
	#mkdir -p usr/bin
	#mv tmp/*-32 usr/bin
}

### build
pkg_build() {
	cd /tmp/imlib*

	# james: re-enable older rsvg
	sed -i -e 's/2.46/2.40/g' configure &&

	CONFFLAGS="$CONFFLAGS --disable-static --disable-amd64 --enable-mmx --without-id3" && # --without-x
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
		
	# multilib
	#mv -v /usr/bin/imlib2-config /tmp/imlib2-config-32
	true
}


