diff options
author | Erwin Rol <erwin@erwinrol.com> | 2010-01-25 12:39:50 +0100 |
---|---|---|
committer | Erwin Rol <erwin@erwinrol.com> | 2010-02-02 13:10:33 +0100 |
commit | cafafdc000b05806e6019906652ecc91c675dfa8 (patch) | |
tree | 61b7b2cf2ca06e2608994444730f5ae461e4c6a2 /rules/gst-plugins-ugly.make | |
parent | bae34b5b0fca408e81b1d84d69e146a9c28bb0db (diff) | |
download | ptxdist-cafafdc000b05806e6019906652ecc91c675dfa8.tar.gz ptxdist-cafafdc000b05806e6019906652ecc91c675dfa8.tar.xz |
[gst-plugins-ugly] New packet
Signed-off-by: Erwin Rol <erwin@erwinrol.com>
Diffstat (limited to 'rules/gst-plugins-ugly.make')
-rw-r--r-- | rules/gst-plugins-ugly.make | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/rules/gst-plugins-ugly.make b/rules/gst-plugins-ugly.make new file mode 100644 index 000000000..a8daaa6e3 --- /dev/null +++ b/rules/gst-plugins-ugly.make @@ -0,0 +1,117 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Erwin Rol <erwin@erwinrol.com> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_GST_PLUGINS_UGLY) += gst-plugins-ugly + +# +# Paths and names +# +GST_PLUGINS_UGLY_VERSION := 0.10.13 +GST_PLUGINS_UGLY := gst-plugins-ugly-$(GST_PLUGINS_UGLY_VERSION) +GST_PLUGINS_UGLY_SUFFIX := tar.bz2 +GST_PLUGINS_UGLY_URL := http://gstreamer.freedesktop.org/src/gst-plugins-ugly/$(GST_PLUGINS_UGLY).$(GST_PLUGINS_UGLY_SUFFIX) +GST_PLUGINS_UGLY_SOURCE := $(SRCDIR)/$(GST_PLUGINS_UGLY).$(GST_PLUGINS_UGLY_SUFFIX) +GST_PLUGINS_UGLY_DIR := $(BUILDDIR)/$(GST_PLUGINS_UGLY) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(GST_PLUGINS_UGLY_SOURCE): + @$(call targetinfo) + @$(call get, GST_PLUGINS_UGLY) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_ASFDEMUX) += asfdemux +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_DVDLPCMDEC) += dvdlpcmdec +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_DVDSUB) += dvdsub +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_IEC958) += iec958 +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_MPEGAUDIOPARSE) += mpegaudioparse +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_MPEGSTREAM) += mpegstream +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_REALMEDIA) += realmedia +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_SYNAESTHESIA) += synaesthesia +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_A52DEC) += a52dec +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_AMRNB) += amrnb +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_AMRWBDEC) += amrwb +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_CDIO) += cdio +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_DVDREADSRC) += dvdread +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_LAME) += lame +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_MAD) += mad +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_MPEG2DEC) += mpeg2dec +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_SID) += sidplay +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_TWOLAME) += twolame +GST_PLUGINS_UGLY_ENABLE-$(PTXCONF_GST_PLUGINS_UGLY_X264) += x264 + +# +# autoconf +# +GST_PLUGINS_UGLY_CONF_TOOL := autoconf +GST_PLUGINS_UGLY_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-rpath \ + --disable-nls \ + --disable-debug \ + --disable-profiling \ + --disable-valgrind \ + --disable-gcov \ + --disable-examples \ + --enable-external \ + --enable-experimental \ + --disable-gtk-doc \ + --with-package-origin="PTXDist" \ + --enable-shave +# +# the --with-plugins sadly only applies to depencyless plugings +# and when no plugins are sellected it builds them all. So +# --with-plugins is useless, so we generate a --enable-* +# and --disable-* below +# +ifneq ($(call remove_quotes,$(GST_PLUGINS_UGLY_ENABLE-y)),) +GST_PLUGINS_UGLY_CONF_OPT += --enable-$(subst $(space),$(space)--enable-,$(strip $(GST_PLUGINS_UGLY_ENABLE-y))) +endif + +ifneq ($(call remove_quotes,$(GST_PLUGINS_UGLY_ENABLE-)),) +GST_PLUGINS_UGLY_CONF_OPT += --disable-$(subst $(space),$(space)--disable-,$(strip $(GST_PLUGINS_UGLY_ENABLE-))) +endif + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-plugins-ugly.targetinstall: + @$(call targetinfo) + + @$(call install_init, gst-plugins-ugly) + @$(call install_fixup, gst-plugins-ugly,PACKAGE,gst-plugins-ugly) + @$(call install_fixup, gst-plugins-ugly,PRIORITY,optional) + @$(call install_fixup, gst-plugins-ugly,VERSION,$(GST_PLUGINS_UGLY_VERSION)) + @$(call install_fixup, gst-plugins-ugly,SECTION,base) + @$(call install_fixup, gst-plugins-ugly,AUTHOR,"Erwin Rol <erwin@erwinrol.com>") + @$(call install_fixup, gst-plugins-ugly,DEPENDS,) + @$(call install_fixup, gst-plugins-ugly,DESCRIPTION,missing) + + # install all activated plugins + @if [ -d $(GST_PLUGINS_UGLY_PKGDIR)/usr/lib/gstreamer-0.10/ ]; then \ + cd $(GST_PLUGINS_UGLY_PKGDIR) && for plugin in `find ./usr/lib/gstreamer-0.10/ -name "*.so"`; do \ + $(call install_copy, gst-plugins-ugly, 0, 0, 0644, -, /$$plugin); \ + done \ + fi + + @$(call install_finish, gst-plugins-ugly) + + @$(call touch) + +# vim: syntax=make |