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

# source: BLFS 7.5 and 11.3
TARBALL=libtheora-1.1.1.tar.xz
MD5SUM=9eeabf1ad65b7f41533854a59f7a716d 
SRC_URL=http://downloads.xiph.org/releases/theora/$TARBALL
BUNDLE=

SLACKREQ='libogg32 libvorbis32'
SLACKDESC='libtheora32: libtheora32 1.1.1 (Theora video codec library)  
libtheora32:  
libtheora32: Theora video codec library.  
libtheora32: 
libtheora32: This contains 32-bit version of the library.
libtheora32: 
libtheora32: 
libtheora32: 
libtheora32: 
libtheora32: 
libtheora32:
'

### 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/libtheora*

	# BLFS: fix building with libpng 1.6
	sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c &&

	CONFFLAGS="$CONFFLAGS --disable-static --host=${CLFS_TARGET32}" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}



