summaryrefslogtreecommitdiffstats
path: root/rules/gst-plugins-fsl_vpu.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-11-01 14:18:50 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-11-01 14:18:50 +0000
commit9ac5f2facacb27bcd2b55c6c35cbd66c6f4c93ba (patch)
treee674f82f4300dc757b628bae358875133ddb52b9 /rules/gst-plugins-fsl_vpu.make
parent32f2590bba8915d8639deee5f1827fbf7f9a1b57 (diff)
downloadptxdist-9ac5f2facacb27bcd2b55c6c35cbd66c6f4c93ba.tar.gz
ptxdist-9ac5f2facacb27bcd2b55c6c35cbd66c6f4c93ba.tar.xz
* fsl-vpu: add lib and gstreamer plugin
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9030 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/gst-plugins-fsl_vpu.make')
-rw-r--r--rules/gst-plugins-fsl_vpu.make115
1 files changed, 115 insertions, 0 deletions
diff --git a/rules/gst-plugins-fsl_vpu.make b/rules/gst-plugins-fsl_vpu.make
new file mode 100644
index 000000000..afaf9729f
--- /dev/null
+++ b/rules/gst-plugins-fsl_vpu.make
@@ -0,0 +1,115 @@
+# -*-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_ARCH_ARM_IMX)-$(PTXCONF_GST_PLUGINS_FSL_VPU) += gst-plugins-fsl_vpu
+
+#
+# Paths and names
+#
+GST_PLUGINS_FSL_VPU_VERSION := 0.1.0
+GST_PLUGINS_FSL_VPU := gst-plugins-fsl-vpu-$(GST_PLUGINS_FSL_VPU_VERSION)
+GST_PLUGINS_FSL_VPU_SUFFIX := tar.bz2
+GST_PLUGINS_FSL_VPU_URL := http://www.pengutronix.de/software/ptxdist/temporary-src/$(GST_PLUGINS_FSL_VPU).$(GST_PLUGINS_FSL_VPU_SUFFIX)
+GST_PLUGINS_FSL_VPU_SOURCE := $(SRCDIR)/$(GST_PLUGINS_FSL_VPU).$(GST_PLUGINS_FSL_VPU_SUFFIX)
+GST_PLUGINS_FSL_VPU_DIR := $(BUILDDIR)/$(GST_PLUGINS_FSL_VPU)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(GST_PLUGINS_FSL_VPU_SOURCE):
+ @$(call targetinfo)
+ @$(call get, GST_PLUGINS_FSL_VPU)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gst-plugins-fsl_vpu.extract:
+ @$(call targetinfo)
+ @$(call clean, $(GST_PLUGINS_FSL_VPU_DIR))
+ @$(call extract, GST_PLUGINS_FSL_VPU)
+ @$(call patchin, GST_PLUGINS_FSL_VPU)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+GST_PLUGINS_FSL_VPU_PATH := PATH=$(CROSS_PATH)
+GST_PLUGINS_FSL_VPU_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+GST_PLUGINS_FSL_VPU_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/gst-plugins-fsl_vpu.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(GST_PLUGINS_FSL_VPU_DIR)/config.cache)
+ cd $(GST_PLUGINS_FSL_VPU_DIR) && \
+ $(GST_PLUGINS_FSL_VPU_PATH) $(GST_PLUGINS_FSL_VPU_ENV) \
+ ./configure $(GST_PLUGINS_FSL_VPU_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gst-plugins-fsl_vpu.compile:
+ @$(call targetinfo)
+ cd $(GST_PLUGINS_FSL_VPU_DIR) && $(GST_PLUGINS_FSL_VPU_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gst-plugins-fsl_vpu.install:
+ @$(call targetinfo)
+ @$(call install, GST_PLUGINS_FSL_VPU)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gst-plugins-fsl_vpu.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, gst-plugins-fsl_vpu)
+ @$(call install_fixup, gst-plugins-fsl_vpu,PACKAGE,gst-plugins-fsl-vpu)
+ @$(call install_fixup, gst-plugins-fsl_vpu,PRIORITY,optional)
+ @$(call install_fixup, gst-plugins-fsl_vpu,VERSION,$(GST_PLUGINS_FSL_VPU_VERSION))
+ @$(call install_fixup, gst-plugins-fsl_vpu,SECTION,base)
+ @$(call install_fixup, gst-plugins-fsl_vpu,AUTHOR,"Sascha Hauer <your@email.please>")
+ @$(call install_fixup, gst-plugins-fsl_vpu,DEPENDS,)
+ @$(call install_fixup, gst-plugins-fsl_vpu,DESCRIPTION,missing)
+
+ @$(call install_copy, gst-plugins-fsl_vpu, 0, 0, 0755, $(GST_PLUGINS_FSL_VPU_DIR)/src/.libs/libgst-plugins-fsl-vpu.so, /usr/lib/gstreamer-0.10/libmfw_gst_vpu.so)
+
+ @$(call install_finish, gst-plugins-fsl_vpu)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+gst-plugins-fsl_vpu_clean:
+ rm -rf $(STATEDIR)/gst-plugins-fsl_vpu.*
+ rm -rf $(PKGDIR)/gst-plugins-fsl_vpu_*
+ rm -rf $(GST_PLUGINS_FSL_VPU_DIR)
+
+# vim: syntax=make