diff options
-rw-r--r-- | rules/gst-validate1.in | 21 | ||||
-rw-r--r-- | rules/gst-validate1.make | 98 |
2 files changed, 119 insertions, 0 deletions
diff --git a/rules/gst-validate1.in b/rules/gst-validate1.in new file mode 100644 index 000000000..fd8ae885b --- /dev/null +++ b/rules/gst-validate1.in @@ -0,0 +1,21 @@ +## SECTION=multimedia_gstreamer1 + +menuconfig GST_VALIDATE1 + tristate + select GSTREAMER1 + select GST_PLUGINS_BASE1 + select PYTHON if RUNTIME + prompt "gst-validate " + help + GstValidate is a tool that allows GStreamer developers to check + that the GstElements they write behave the way they are supposed to. + It was first started to provide plug-ins developers with a tool to + check that they use the framework the proper way. + +if GST_VALIDATE1 + +config GST_VALIDATE1_LAUNCHER + bool + prompt "install gst-validate-launcher" + +endif diff --git a/rules/gst-validate1.make b/rules/gst-validate1.make new file mode 100644 index 000000000..62e520987 --- /dev/null +++ b/rules/gst-validate1.make @@ -0,0 +1,98 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# 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_VALIDATE1) += gst-validate1 + +# +# Paths and names +# +GST_VALIDATE1_VERSION := 1.4.0 +GST_VALIDATE1_MD5 := f85b335f39a29c1ebee231bd17767b4e +GST_VALIDATE1 := gst-validate-$(GST_VALIDATE1_VERSION) +GST_VALIDATE1_SUFFIX := tar.xz +GST_VALIDATE1_URL := http://gstreamer.freedesktop.org/data/src/gst-validate/$(GST_VALIDATE1).$(GST_VALIDATE1_SUFFIX) +GST_VALIDATE1_SOURCE := $(SRCDIR)/$(GST_VALIDATE1).$(GST_VALIDATE1_SUFFIX) +GST_VALIDATE1_DIR := $(BUILDDIR)/$(GST_VALIDATE1) +GST_VALIDATE1_LICENSE := LGPLv2.1+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +GST_VALIDATE1_CONF_ENV := \ + $(CROSS_ENV) \ + ac_cv_prog_enable_sphinx_doc=no \ + ac_cv_path_PYTHON=/usr/bin/python + +# +# autoconf +# +GST_VALIDATE1_CONF_TOOL := autoconf +GST_VALIDATE1_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-nls \ + --disable-rpath \ + --disable-debug \ + --disable-valgrind \ + --disable-gcov \ + --disable-introspection \ + --disable-docbook \ + --disable-gtk-doc \ + --disable-gtk-doc-html \ + --disable-gtk-doc-pdf \ + --disable-gobject-cast-checks \ + --disable-glib-asserts + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-validate1.targetinstall: + @$(call targetinfo) + + @$(call install_init, gst-validate1) + @$(call install_fixup, gst-validate1,PRIORITY,optional) + @$(call install_fixup, gst-validate1,SECTION,base) + @$(call install_fixup, gst-validate1,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, gst-validate1,DESCRIPTION,missing) + + @$(call install_lib, gst-validate1, 0, 0, 0644, libgstvalidate-1.0) + @$(call install_lib, gst-validate1, 0, 0, 0644, \ + libgstvalidate-default-overrides-1.0) + + @$(call install_copy, gst-validate1, 0, 0, 0755, -, \ + /usr/bin/gst-validate-1.0) + @$(call install_copy, gst-validate1, 0, 0, 0755, -, \ + /usr/bin/gst-validate-media-check-1.0) + @$(call install_copy, gst-validate1, 0, 0, 0755, -, \ + /usr/bin/gst-validate-transcoding-1.0) + + @$(call install_tree, gst-validate1, 0, 0, -, \ + /usr/share/gstreamer-1.0/validate-scenario) + +ifdef PTXCONF_GST_VALIDATE1_LAUNCHER + @$(call install_copy, gst-validate1, 0, 0, 0755, -, \ + /usr/bin/gst-validate-launcher) + + @cd $(GST_VALIDATE1_PKGDIR)/usr/lib/gst-validate-launcher/python && \ + for file in `find launcher/ -name "*.pyc"`; do \ + $(call install_copy, gst-validate1, 0, 0, 0644, -, \ + /usr/lib/gst-validate-launcher/python/$${file}); \ + done +endif + + @$(call install_finish, gst-validate1) + + @$(call touch) + +# vim: syntax=make |