### this file is sourced not run

# source: BLFS 2014-09-30
TARBALL=gst-plugins-bad-1.4.3.tar.xz
MD5SUM=77c6bf4b7a328f03860a59171aa1bec5
SRC_URL=http://gstreamer.freedesktop.org/src/gst-plugins-bad/$TARBALL
BUNDLE=

SLACKREQ='gstreamer2 gst2-plugins-base curl liborc libfaad2 libfaac libjasper \
libmodplug librsvg libsndfile librtmp libschroedinger libSDL libxvidcore \
libopus libvpx libneon'
SLACKDESC='gst2-plugins-bad: gst2-plugins-bad 1.4.3 (Gstreamer bad plugins)  
gst2-plugins-bad:  
gst2-plugins-bad: The GStreamer Bad Plug-ins package contains a set a set of 
gst2-plugins-bad: plug-ins that aren'\''t up to par compared to the rest. They 
gst2-plugins-bad: might be close to being good quality, but they'\''re missing 
gst2-plugins-bad: something - be it a good code review, some documentation, a 
gst2-plugins-bad: set of tests, a real live maintainer, or some actual wide 
gst2-plugins-bad: use.  
gst2-plugins-bad: 
gst2-plugins-bad: This set of plugins are for gstreamer2 framework.
gst2-plugins-bad:
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cp $PATCHES_DIR/ladspa.h usr/include &&
	cd tmp/gst* &&
	patch -Np1 -i $PATCHES_DIR/gst-plugins-bad-1.4.3-neon-ssl.patch
}

### default pkg_package
### build
pkg_build() {
	export NEON_CFLAGS=$(pkg-config --cflags neon) NEON_LIBS=$(pkg-config --libs neon)
	CONFFLAGS="$CONFFLAGS --disable-static --disable-schemas-compile "
	
	cd /tmp/gst-*
	./configure $CONFFLAGS --with-package-name="GStreamer Bad Plugins 1.4.3 BLFS"  \
            --with-package-origin="http://www.linuxfromscratch.org/blfs/view/svn/" \
            --enable-egl --enable-gles2 --disable-opengl &&
    make $MAKEFLAGS && make install &&
	
	pkg_build_slackdesc &&
	rm -f /usr/include/ladspa.h
}


