validate: Update autogen.sh
And add a gst-validate.doap file.
This commit is contained in:
parent
15f880858c
commit
d59b117174
@ -1,13 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# gst-validate autogen.sh
|
||||||
|
#
|
||||||
# Run this to generate all the initial makefiles, etc.
|
# Run this to generate all the initial makefiles, etc.
|
||||||
|
#
|
||||||
|
# This file has been generated from common/autogen.sh.in via common/update-autogen
|
||||||
|
|
||||||
|
|
||||||
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
||||||
|
test -n "$srcdir" || srcdir=.
|
||||||
|
|
||||||
|
olddir=`pwd`
|
||||||
|
cd "$srcdir"
|
||||||
|
|
||||||
DIE=0
|
DIE=0
|
||||||
package=gst-validate
|
package=gst-validate
|
||||||
srcfile=tools/gst-validate.c
|
srcfile=gst-validate.doap
|
||||||
|
|
||||||
# Make sure we have common
|
# Make sure we have common
|
||||||
cd ../
|
if test ! -f common/gst-autogen.sh;
|
||||||
if test ! -f validate/common/gst-autogen.sh;
|
|
||||||
then
|
then
|
||||||
echo "+ Setting up common submodule"
|
echo "+ Setting up common submodule"
|
||||||
git submodule init
|
git submodule init
|
||||||
@ -25,40 +36,37 @@ fi
|
|||||||
. common/gst-autogen.sh
|
. common/gst-autogen.sh
|
||||||
|
|
||||||
# install pre-commit hook for doing clean commits
|
# install pre-commit hook for doing clean commits
|
||||||
echo "installing pre-commit hooks"
|
if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
|
||||||
rm -f ../.git/hooks/pre-commit
|
then
|
||||||
ln -s ../../validate/multi-pre-commit.hook ../.git/hooks/pre-commit
|
rm -f ../.git/hooks/pre-commit
|
||||||
|
ln -s ../../validate/multi-pre-commit.hook ../.git/hooks/pre-commit
|
||||||
|
fi
|
||||||
|
|
||||||
# GNU gettext automake support doesn't get along with git.
|
# GNU gettext automake support doesn't get along with git.
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
|
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
|
||||||
touch -t 200001010000 po/gst-validate-0.10.pot
|
if test -d po ; then
|
||||||
|
touch -t 200001010000 po/gst-validate-1.0.pot
|
||||||
|
fi
|
||||||
|
|
||||||
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
|
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
|
||||||
|
|
||||||
|
if test "x$package" = "xgstreamer"; then
|
||||||
|
CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-docbook --enable-failing-tests --enable-poisoning"
|
||||||
|
fi
|
||||||
|
|
||||||
autogen_options $@
|
autogen_options $@
|
||||||
|
|
||||||
printf "+ check for build tools"
|
printf "+ check for build tools"
|
||||||
if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
|
if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
|
||||||
version_check "autoconf" "$AUTOCONF autoconf autoconf270 autoconf269 autoconf268 autoconf267 autoconf266 autoconf265 autoconf264 autoconf263 autoconf262" \
|
version_check "autoreconf" "autoreconf " \
|
||||||
"ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 62 || DIE=1
|
"ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 68 || DIE=1
|
||||||
version_check "automake" "$AUTOMAKE automake automake-1.11" \
|
|
||||||
"ftp://ftp.gnu.org/pub/gnu/automake/" 1 11 || DIE=1
|
|
||||||
version_check "autopoint" "autopoint" \
|
|
||||||
"ftp://ftp.gnu.org/pub/gnu/gettext/" 0 17 || DIE=1
|
|
||||||
version_check "libtoolize" "libtoolize glibtoolize" \
|
|
||||||
"ftp://ftp.gnu.org/pub/gnu/libtool/" 2 2 6 || DIE=1
|
|
||||||
version_check "pkg-config" "" \
|
version_check "pkg-config" "" \
|
||||||
"http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
|
"http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
|
||||||
|
|
||||||
die_check $DIE
|
die_check $DIE
|
||||||
|
|
||||||
aclocal_check || DIE=1
|
|
||||||
autoheader_check || DIE=1
|
|
||||||
|
|
||||||
die_check $DIE
|
|
||||||
|
|
||||||
# if no arguments specified then this will be printed
|
# if no arguments specified then this will be printed
|
||||||
if test -z "$*"; then
|
if test -z "$*" && test -z "$NOCONFIGURE"; then
|
||||||
echo "+ checking for autogen.sh options"
|
echo "+ checking for autogen.sh options"
|
||||||
echo " This autogen script will automatically run ./configure as:"
|
echo " This autogen script will automatically run ./configure as:"
|
||||||
echo " ./configure $CONFIGURE_DEF_OPT"
|
echo " ./configure $CONFIGURE_DEF_OPT"
|
||||||
@ -69,46 +77,32 @@ fi
|
|||||||
toplevel_check $srcfile
|
toplevel_check $srcfile
|
||||||
|
|
||||||
# autopoint
|
# autopoint
|
||||||
# older autopoint (< 0.12) has a tendency to complain about mkinstalldirs
|
if test -d po ; then
|
||||||
if test -x mkinstalldirs; then rm mkinstalldirs; fi
|
tool_run "autopoint" "--force"
|
||||||
# first remove patch if necessary, then run autopoint, then reapply
|
|
||||||
if test -f po/Makefile.in.in;
|
|
||||||
then
|
|
||||||
patch -p0 -R --forward < common/gettext.patch
|
|
||||||
fi
|
fi
|
||||||
tool_run "$autopoint" "--force" "patch -p0 < common/gettext.patch"
|
|
||||||
patch -p0 < common/gettext.patch
|
|
||||||
|
|
||||||
# aclocal
|
# aclocal
|
||||||
# if test -f acinclude.m4; then rm acinclude.m4; fi
|
if test -f acinclude.m4; then rm acinclude.m4; fi
|
||||||
|
|
||||||
tool_run "$libtoolize" "--copy --force"
|
autoreconf --force --install || exit 1
|
||||||
tool_run "$aclocal" "-I m4 -I common/m4 $ACLOCAL_FLAGS"
|
|
||||||
tool_run "$autoheader"
|
|
||||||
|
|
||||||
# touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode
|
|
||||||
echo timestamp > stamp-h.in 2> /dev/null
|
|
||||||
|
|
||||||
tool_run "$autoconf"
|
|
||||||
debug "automake: $automake"
|
|
||||||
tool_run "$automake" "--add-missing --copy"
|
|
||||||
|
|
||||||
test -n "$NOCONFIGURE" && {
|
test -n "$NOCONFIGURE" && {
|
||||||
echo "skipping configure stage for package $package, as requested."
|
echo "+ skipping configure stage for package $package, as requested."
|
||||||
echo "autogen.sh done."
|
echo "+ autogen.sh done."
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cd "$olddir"
|
||||||
|
|
||||||
echo "+ running configure ... "
|
echo "+ running configure ... "
|
||||||
test ! -z "$CONFIGURE_DEF_OPT" && echo " ./configure default flags: $CONFIGURE_DEF_OPT"
|
test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
|
||||||
test ! -z "$CONFIGURE_EXT_OPT" && echo " ./configure external flags: $CONFIGURE_EXT_OPT"
|
test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo ./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
|
echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
|
||||||
./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
|
"$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
|
||||||
echo " configure failed"
|
echo " configure failed"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Now type 'make' to compile $package."
|
echo "Now type 'make' to compile $package."
|
||||||
|
|
||||||
|
71
validate/gst-validate.doap
Normal file
71
validate/gst-validate.doap
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
<Project
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|
||||||
|
xmlns="http://usefulinc.com/ns/doap#"
|
||||||
|
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||||
|
xmlns:admin="http://webns.net/mvcb/">
|
||||||
|
|
||||||
|
<name>GStreamer</name>
|
||||||
|
<shortname>gstreamer</shortname>
|
||||||
|
<homepage rdf:resource="http://gstreamer.freedesktop.org/modules/gstreamer.html" />
|
||||||
|
<created>1999-10-31</created>
|
||||||
|
<shortdesc xml:lang="en">
|
||||||
|
GstValidate is a testing framework aiming at providing GStreamer developers
|
||||||
|
tools that check the GstElements they write behave the way they are supposed to.
|
||||||
|
</shortdesc>
|
||||||
|
<description xml:lang="en">
|
||||||
|
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.
|
||||||
|
|
||||||
|
GstValidate implements a monitoring logic that allows the system to check that
|
||||||
|
the elements of a GstPipeline respect some rules GStreamer components have to
|
||||||
|
follow so that elements can properly interact together. For example, a
|
||||||
|
GstValidatePadMonitor will make sure that if we receive a GstSegment from
|
||||||
|
upstream, an equivalent segment is sent downstream before any buffer gets out.
|
||||||
|
|
||||||
|
Then GstValidate implements a reporting system that allows users to get
|
||||||
|
detailed informations about what was not properly handle in elements. The
|
||||||
|
reports are order by level of importance from "issue" to "critical".
|
||||||
|
|
||||||
|
Some tools have been implemented to help the developer validate and test their
|
||||||
|
GstElement, you can have a look at the command line tools section to find more
|
||||||
|
information
|
||||||
|
|
||||||
|
On top of those tools, the notion of scenario has been implemented so that
|
||||||
|
developers can easily execute a set of actions on pipelines and thus test real
|
||||||
|
world interactive cases and reproduce existing issues in a convenient way.
|
||||||
|
</description>
|
||||||
|
<category></category>
|
||||||
|
<bug-database rdf:resource="http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer&component=gst-devtools" />
|
||||||
|
<screenshots></screenshots>
|
||||||
|
<mailing-list rdf:resource="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" />
|
||||||
|
<programming-language>C</programming-language>
|
||||||
|
<license rdf:resource="http://usefulinc.com/doap/licenses/lgpl" />
|
||||||
|
<download-page rdf:resource="http://gstreamer.freedesktop.org/download/" />
|
||||||
|
|
||||||
|
<repository>
|
||||||
|
<GitRepository>
|
||||||
|
<location rdf:resource="git://anongit.freedesktop.org/gstreamer/gst-devtools"/>
|
||||||
|
<browse rdf:resource="http://cgit.freedesktop.org/gstreamer/gst-devtools/"/>
|
||||||
|
</GitRepository>
|
||||||
|
</repository>
|
||||||
|
|
||||||
|
<release>
|
||||||
|
<Version>
|
||||||
|
<revision>1.4.0</revision>
|
||||||
|
<branch>1.4</branch>
|
||||||
|
<name></name>
|
||||||
|
<created>2014-09-29</created>
|
||||||
|
<file-release rdf:resource="http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.4.0.tar.xz" />
|
||||||
|
</Version>
|
||||||
|
</release>
|
||||||
|
|
||||||
|
<maintainer>
|
||||||
|
<foaf:Person>
|
||||||
|
<foaf:name>Thibault Saunier</foaf:name>
|
||||||
|
</foaf:Person>
|
||||||
|
</maintainer>
|
||||||
|
|
||||||
|
</Project>
|
@ -1,7 +1,7 @@
|
|||||||
# Makefile variables for PO directory in any package using GNU gettext.
|
# Makefile variables for PO directory in any package using GNU gettext.
|
||||||
|
|
||||||
# Usually the message domain is the same as the package name.
|
# Usually the message domain is the same as the package name.
|
||||||
DOMAIN = $(GETTEXT_PACKAGE)
|
DOMAIN = gst-validate-1.0
|
||||||
|
|
||||||
# These two variables depend on the location of this directory.
|
# These two variables depend on the location of this directory.
|
||||||
subdir = po
|
subdir = po
|
||||||
|
Loading…
x
Reference in New Issue
Block a user