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

# BLFS 7.5
TARBALL=gst-plugins-ugly-0.10.19.tar.xz
MD5SUM=ba26045c8c8c91f0d48d327ccf53ac0c 
SRC_URL=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/$TARBALL
BUNDLE=

SLACKREQ='gstreamer32 gst-plugins-base32 lame32 libdvdnav32 libdvdread32 liba52_32 \
libmad32 libopencore-amr32 liborc32 twolame32 libx264_32'
SLACKDESC='gst-plugins-ugly32: gst-plugins-ugly32 0.10.19 (Gstreamer ugly plugins)  
gst-plugins-ugly32:  
gst-plugins-ugly32: The GStreamer Ugly Plug-ins is a set of plug-ins considered 
gst-plugins-ugly32: by the GStreamer developers to have good quality and correct 
gst-plugins-ugly32: functionality, but distributing them might pose problems. 
gst-plugins-ugly32: The license on either the plug-ins or the supporting 
gst-plugins-ugly32: libraries might not be how the GStreamer developers would 
gst-plugins-ugly32: like. The code might be widely known to present patent 
gst-plugins-ugly32: problems.  
gst-plugins-ugly32: 
gst-plugins-ugly32: This contains 32-bit version of the library.
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/gst* &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/gst-plugins-ugly-0.10.19-libcdio_fixes-1.patch
}

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

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static"
	cd /tmp/gst-*
	export AMRWB_CFLAGS=-I/usr/include/opencore-amrwb
	export AMRNB_CFLAGS=-I/usr/include/opencore-amrnb
	pkg_build_autoconf &&	
	pkg_build_slackdesc &&
	make -C docs/plugins install-data
}


<< "EOF"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... ^Csh-4.2# ./configure --help
`configure' configures GStreamer Ugly Plug-ins 0.10.19 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root
                          [DATAROOTDIR/doc/gst-plugins-ugly]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-maintainer-mode  enable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-nls           do not use Native Language Support
  --disable-rpath         do not hardcode runtime library paths
  --disable-debug         disable addition of -g debugging info
  --enable-profiling      adds -pg to compiler commandline, for profiling
  --disable-valgrind      disable run-time valgrind detection
  --enable-gcov           compile with coverage profiling instrumentation (gcc
                          only)
  --disable-examples      disable building examples
  --disable-external           disable building of plug-ins with external deps
  --enable-experimental        enable building of experimental plug-ins
  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
  --enable-gobject-cast-checks=[no/auto/yes]
                          Enable GObject cast checks
  --enable-glib-asserts=[no/auto/yes]
                          Enable GLib assertion
  --enable-orc            use Orc if installed
  --disable-asfdemux      disable dependency-less asfdemux plugin
  --disable-dvdlpcmdec    disable dependency-less dvdlpcmdec plugin
  --disable-dvdsub        disable dependency-less dvdsub plugin
  --disable-iec958        disable dependency-less iec958 plugin
  --disable-mpegaudioparse
                          disable dependency-less mpegaudioparse plugin
  --disable-mpegstream    disable dependency-less mpegstream plugin
  --disable-realmedia     disable dependency-less realmedia plugin
  --disable-synaesthesia  disable dependency-less synaesthesia plugin
  --disable-a52dec             disable a52dec: a52dec
  --disable-amrnb              disable amrnb library: amrnb
  --disable-amrwb              disable amrwb library: amrwbdec
  --disable-cdio               disable cdio library: cdio
  --disable-dvdread            disable dvdread library: dvdreadsrc
  --disable-lame               disable lame mp3 encoder library: lame
  --disable-mad                disable mad mp3 decoder: mad
  --disable-mpeg2dec           disable mpeg2dec: mpeg2dec
  --disable-sidplay            disable libsidplay: sid
  --disable-twolame            disable twolame: twolame
  --disable-x264               disable x264 plug-in: x264

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --with-autoconf         use a different autoconf for regeneration of
                          Makefiles
  --with-autoheader       use a different autoheader for regeneration of
                          Makefiles
  --with-automake         use a different automake for regeneration of
                          Makefiles
  --with-aclocal          use a different aclocal for regeneration of
                          Makefiles
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  --without-libintl-prefix     don't search for libintl in includedir and libdir
  --with-pkg-config-path  colon-separated list of pkg-config(1) dirs
  --with-package-name     specify package name to use in plugins
  --with-package-origin   specify package origin URL to use in plugins
  --with-plugins          comma-separated list of dependencyless plug-ins to
                          compile
  --with-html-dir=PATH    path to installed docs
  --with-default-audiosink
                          specify default audio sink
  --with-default-audiosrc specify default audio source
  --with-default-videosink
                          specify default video sink
  --with-default-videosrc specify default video source
  --with-default-visualizer
                          specify default visualizer
  --with-a52dec-prefix=PFX
                          prefix where a52dec is installed (optional)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  VALGRIND_CFLAGS
              C compiler flags for VALGRIND, overriding pkg-config
  VALGRIND_LIBS
              linker flags for VALGRIND, overriding pkg-config
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
  ORC_CFLAGS  C compiler flags for ORC, overriding pkg-config
  ORC_LIBS    linker flags for ORC, overriding pkg-config
  GST_CFLAGS  C compiler flags for GST, overriding pkg-config
  GST_LIBS    linker flags for GST, overriding pkg-config
  GST_BASE_CFLAGS
              C compiler flags for GST_BASE, overriding pkg-config
  GST_BASE_LIBS
              linker flags for GST_BASE, overriding pkg-config
  GST_CHECK_CFLAGS
              C compiler flags for GST_CHECK, overriding pkg-config
  GST_CHECK_LIBS
              linker flags for GST_CHECK, overriding pkg-config
  GST_PLUGINS_BASE_CFLAGS
              C compiler flags for GST_PLUGINS_BASE, overriding pkg-config
  GST_PLUGINS_BASE_LIBS
              linker flags for GST_PLUGINS_BASE, overriding pkg-config
  AMRNB_CFLAGS
              C compiler flags for AMRNB, overriding pkg-config
  AMRNB_LIBS  linker flags for AMRNB, overriding pkg-config
  AMRWB_CFLAGS
              C compiler flags for AMRWB, overriding pkg-config
  AMRWB_LIBS  linker flags for AMRWB, overriding pkg-config
  CDIO_CFLAGS C compiler flags for CDIO, overriding pkg-config
  CDIO_LIBS   linker flags for CDIO, overriding pkg-config
  MAD_CFLAGS  C compiler flags for MAD, overriding pkg-config
  MAD_LIBS    linker flags for MAD, overriding pkg-config
  MPEG2DEC_CFLAGS
              C compiler flags for MPEG2DEC, overriding pkg-config
  MPEG2DEC_LIBS
              linker flags for MPEG2DEC, overriding pkg-config
  TWOLAME_CFLAGS
              C compiler flags for TWOLAME, overriding pkg-config
  TWOLAME_LIBS
              linker flags for TWOLAME, overriding pkg-config
  X264_CFLAGS C compiler flags for X264, overriding pkg-config
  X264_LIBS   linker flags for X264, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
EOF
