diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-10-07 11:47:34 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-10-07 11:47:34 +0000 |
commit | da1f34ac7f4dbe02cb9c9a03307a90eebea50967 (patch) | |
tree | 3a00212a848d5b3bd234e95749af0062b1fe73a4 /rules/gst-plugins-bad.make | |
parent | 843c6dc86e0cf3a6c9630611700080146b3b4575 (diff) | |
download | ptxdist-da1f34ac7f4dbe02cb9c9a03307a90eebea50967.tar.gz ptxdist-da1f34ac7f4dbe02cb9c9a03307a90eebea50967.tar.xz |
* gstreamer: add plugins-bad
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8916 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/gst-plugins-bad.make')
-rw-r--r-- | rules/gst-plugins-bad.make | 177 |
1 files changed, 177 insertions, 0 deletions
diff --git a/rules/gst-plugins-bad.make b/rules/gst-plugins-bad.make new file mode 100644 index 000000000..84e1783df --- /dev/null +++ b/rules/gst-plugins-bad.make @@ -0,0 +1,177 @@ +# -*-makefile-*- +# $Id: template-make 8785 2008-08-26 07:48:06Z wsa $ +# +# Copyright (C) 2008 by Sascha Hauer +# +# 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_BAD) += gst-plugins-bad + +# +# Paths and names +# +GST_PLUGINS_BAD_VERSION := 0.10.8 +GST_PLUGINS_BAD := gst-plugins-bad-$(GST_PLUGINS_BAD_VERSION) +GST_PLUGINS_BAD_SUFFIX := tar.bz2 +GST_PLUGINS_BAD_URL := http://gstreamer.freedesktop.org/src/gst-plugins-bad//$(GST_PLUGINS_BAD).$(GST_PLUGINS_BAD_SUFFIX) +GST_PLUGINS_BAD_SOURCE := $(SRCDIR)/$(GST_PLUGINS_BAD).$(GST_PLUGINS_BAD_SUFFIX) +GST_PLUGINS_BAD_DIR := $(BUILDDIR)/$(GST_PLUGINS_BAD) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(GST_PLUGINS_BAD_SOURCE): + @$(call targetinfo) + @$(call get, GST_PLUGINS_BAD) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-plugins-bad.extract: + @$(call targetinfo) + @$(call clean, $(GST_PLUGINS_BAD_DIR)) + @$(call extract, GST_PLUGINS_BAD) + @$(call patchin, GST_PLUGINS_BAD) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +GST_PLUGINS_BAD_PATH := PATH=$(CROSS_PATH) +GST_PLUGINS_BAD_ENV := $(CROSS_ENV) + +# +# autoconf +# +GST_PLUGINS_BAD_AUTOCONF := $(CROSS_AUTOCONF_USR) \ + --disable-examples \ + --disable-quicktime \ + --disable-vcd \ + --disable-alsa \ + --disable-amrwb \ + --disable-bz2 \ + --disable-cdaudio \ + --disable-dc1394 \ + --disable-directfb \ + --disable-dirac \ + --disable-dts \ + --disable-divx \ + --disable-dvdnav \ + --disable-metadata \ + --disable-faac \ + --disable-faad \ + --disable-gsm \ + --disable-ivorbis \ + --disable-jack \ + --disable-ladspa \ + --disable-libmms \ + --disable-mpeg2enc \ + --disable-mplex \ + --disable-musepack \ + --disable-musicbrainz \ + --disable-mythtv \ + --disable-nas \ + --disable-neon \ + --disable-ofa \ + --disable-timidity \ + --disable-wildmidi \ + --disable-sdl \ + --disable-sdltest \ + --disable-sndfile \ + --disable-soundtouch \ + --disable-spc \ + --disable-swfdec \ + --disable-theoradec \ + --disable-x264 \ + --disable-xvid \ + --disable-dvb \ + --disable-oss4 \ + --disable-wininet + +ifdef PTXCONF_GST_PLUGINS_BAD__FBDEVSINK +GST_PLUGINS_BAD_AUTOCONF += --enable-fbdev +GST_PLUGINS_BAD_INSTALL += /usr/lib/gstreamer-0.10/libgstfbdevsink.so +else +GST_PLUGINS_BADD_AUTOCONF += --disable-fbdev +endif + +ifdef PTXCONF_GST_PLUGINS_BAD__BAYER +GST_PLUGINS_BAD_AUTOCONF += --enable-bayer +GST_PLUGINS_BAD_INSTALL += /usr/lib/gstreamer-0.10/libgstbayer.so +else +GST_PLUGINS_BADD_AUTOCONF += --disable-bayer +endif + + +$(STATEDIR)/gst-plugins-bad.prepare: + @$(call targetinfo) + @$(call clean, $(GST_PLUGINS_BAD_DIR)/config.cache) + cd $(GST_PLUGINS_BAD_DIR) && \ + $(GST_PLUGINS_BAD_PATH) $(GST_PLUGINS_BAD_ENV) \ + ./configure $(GST_PLUGINS_BAD_AUTOCONF) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-plugins-bad.compile: + @$(call targetinfo) + cd $(GST_PLUGINS_BAD_DIR) && $(GST_PLUGINS_BAD_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-plugins-bad.install: + @$(call targetinfo) + @$(call install, GST_PLUGINS_BAD) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-plugins-bad.targetinstall: + @$(call targetinfo) + + @$(call install_init, gst-plugins-bad) + @$(call install_fixup, gst-plugins-bad,PACKAGE,gst-plugins-bad) + @$(call install_fixup, gst-plugins-bad,PRIORITY,optional) + @$(call install_fixup, gst-plugins-bad,VERSION,$(GST_PLUGINS_BAD_VERSION)) + @$(call install_fixup, gst-plugins-bad,SECTION,base) + @$(call install_fixup, gst-plugins-bad,AUTHOR,"Sascha Hauer <your@email.please>") + @$(call install_fixup, gst-plugins-bad,DEPENDS,) + @$(call install_fixup, gst-plugins-bad,DESCRIPTION,missing) + + # install all activated plugins + for i in $(GST_PLUGINS_BAD_INSTALL); do \ + $(call install_copy, gst-plugins-bad, 0, 0, 644, \ + $(PKGDIR)/$(GST_PLUGINS_BAD)$$i, $$i) \ + done + + @$(call install_finish, gst-plugins-bad) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +gst-plugins-bad_clean: + rm -rf $(STATEDIR)/gst-plugins-bad.* + rm -rf $(PKGDIR)/gst-plugins-bad_* + rm -rf $(GST_PLUGINS_BAD_DIR) + +# vim: syntax=make |