SUBDIRS_EXAMPLES =
endif
-SUBDIRS = include gst libs tools \
- $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) $(SUBDIRS_DOCS)
-
-# These are all the possible subdirs
-DIST_SUBDIRS = include libs gst tools tests testsuite examples docs
+all-local: gst-element-check-@GST_MAJORMINOR@.m4
-all-local: gstreamer-@GST_MAJORMINOR@.pc gstreamer-@GST_MAJORMINOR@-uninstalled.pc
+gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
+ cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
-gstreamer-@GST_MAJORMINOR@.pc: gstreamer.pc gstreamer.pc.in
- cp gstreamer.pc gstreamer-@GST_MAJORMINOR@.pc
-gstreamer-@GST_MAJORMINOR@-uninstalled.pc: gstreamer-uninstalled.pc gstreamer-uninstalled.pc.in
- cp gstreamer-uninstalled.pc gstreamer-@GST_MAJORMINOR@-uninstalled.pc
+aclocaldir = $(datadir)/aclocal
+aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = gstreamer-@GST_MAJORMINOR@.pc
+SUBDIRS = include gst libs tools \
+ $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) $(SUBDIRS_DOCS) \
+ pkgconfig
-EXTRA_DIST = gstreamer.spec.in \
- gstreamer.pc.in \
- gstreamer-uninstalled.pc.in \
+# These are all the possible subdirs
+DIST_SUBDIRS = include libs gst \
+ tools \
+ tests testsuite \
+ examples \
+ docs \
+ pkgconfig
+
+EXTRA_DIST = gstreamer.spec.in gst-element-check.m4 \
configure.ac autogen.sh depcomp \
REQUIREMENTS ABOUT-NLS RELEASE DOCBUILDING DEVEL \
idiottest.mak common
docs/plugins/Makefile
docs/plugins/gstreamer-plugins.types
docs/xsl/Makefile
+pkgconfig/Makefile
stamp.h
-gstreamer.pc
-gstreamer-uninstalled.pc
+pkgconfig/gstreamer.pc
+pkgconfig/gstreamer-uninstalled.pc
+pkgconfig/gstreamer-control.pc
+pkgconfig/gstreamer-control-uninstalled.pc
gstreamer.spec,
echo "$infomessages", infomessages="$infomessages"
)
--- /dev/null
+dnl Perform a check for a GStreamer element using gst-inspect
+dnl Thomas Vander Stichele <thomas at apestaart dot org>
+dnl Last modification: 23/10/2002
+
+dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
+
+AC_DEFUN(AM_GST_ELEMENT_CHECK,
+[
+ AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
+ if test "x$GST_INSPECT" != "x"; then
+ AC_MSG_CHECKING(GStreamer element $1)
+ if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
+ AC_MSG_RESULT(found.)
+ $2
+ else
+ AC_MSG_RESULT(not found.)
+ $3
+ fi
+ fi
+])
--- /dev/null
+dnl Perform a check for a GStreamer element using gst-inspect
+dnl Thomas Vander Stichele <thomas at apestaart dot org>
+dnl Last modification: 23/10/2002
+
+dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
+
+AC_DEFUN(AM_GST_ELEMENT_CHECK,
+[
+ AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
+ if test "x$GST_INSPECT" != "x"; then
+ AC_MSG_CHECKING(GStreamer element $1)
+ if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
+ AC_MSG_RESULT(found.)
+ $2
+ else
+ AC_MSG_RESULT(not found.)
+ $3
+ fi
+ fi
+])
+++ /dev/null
-# the standard variables don't make sense for an uninstalled copy
-prefix=
-exec_prefix=
-libdir=${pcfiledir}
-includedir=${pcfiledir}
-toolsdir=${pcfiledir}/tools
-gstcontrol_libs=-lgstcontrol-@GST_MAJORMINOR@
-
-Name: GStreamer Uninstalled
-Description: Streaming-media framework, Not Installed
-Version: @VERSION@
-Requires: @GST_PKG_DEPS@@LIBXML_PKG@
-Libs: ${libdir}/gst/libgstreamer-@GST_MAJORMINOR@.la -L${libdir}/libs/gst/control/
-Cflags: -I${includedir} -I${includedir}/libs -I${pc_top_builddir}/${pcfiledir}/@srcdir@ -I${pc_top_builddir}/${pcfiledir}/@srcdir@/libs @GST_PKG_CFLAGS@
# %{_libdir}/libgstreamer.a
%{_libdir}/libgstreamer-%{majorminor}.so
%{_libdir}/libgstcontrol-%{majorminor}.so
+%{_datadir}/aclocal/gst-element-check-%{majorminor}.m4
%{_libdir}/pkgconfig/gstreamer-%{majorminor}.pc
## we specify the API docs as regular files since %docs doesn't fail when
# files aren't found anymore for RPM >= 4
--- /dev/null
+### all of the standard pc files we need to generate
+pcfiles = \
+ gstreamer-@GST_MAJORMINOR@.pc \
+ gstreamer-control-@GST_MAJORMINOR@.pc
+
+pcfiles_uninstalled = \
+ gstreamer-@GST_MAJORMINOR@-uninstalled.pc \
+ gstreamer-control-@GST_MAJORMINOR@-uninstalled.pc
+
+all-local: $(pcfiles) $(pcfiles_uninstalled)
+
+### how to generate pc files
+$(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
+ cp $< $@
+$(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
+ cp $< $@
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = $(pcfiles)
+
+EXTRA_DIST = \
+ gstreamer.pc.in \
+ gstreamer-uninstalled.pc.in \
+ gstreamer-control.pc.in \
+ gstreamer-control-uninstalled.pc.in
+
+CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
--- /dev/null
+# the standard variables don't make sense for an uninstalled copy
+prefix=
+exec_prefix=
+libdir=${pcfiledir}/../libs
+includedir=${pcfiledir}/..
+gstcontrol_libs=-lgstcontrol-@GST_MAJORMINOR@
+
+Name: GStreamer control library, uninstalled
+Description: Dynamic parameters for plug-ins
+Requires: gstreamer-@GST_MAJORMINOR@ = @VERSION@
+Version: @VERSION@
+
+Libs: ${libdir}/gst/control/libgstcontrol-@GST_MAJORMINOR@.la
+Cflags: -I${includedir} -I${includedir}/libs @GST_PKG_CFLAGS@
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/gstreamer-@GST_MAJORMINOR@
+
+Name: GStreamer control library
+Description: Dynamic parameters for plug-ins
+Requires: gstreamer-@GST_MAJORMINOR@
+Version: @VERSION@
+Libs: -L${libdir} -lgstcontrol-@GST_MAJORMINOR@
+Cflags: -I${includedir} @GST_PKG_CFLAGS@
--- /dev/null
+# the standard variables don't make sense for an uninstalled copy
+prefix=
+exec_prefix=
+libdir=${pcfiledir}/..
+includedir=${pcfiledir}/..
+toolsdir=${pcfiledir}/../tools
+gstcontrol_libs=-lgstcontrol-@GST_MAJORMINOR@
+
+Name: GStreamer Uninstalled
+Description: Streaming-media framework, Not Installed
+Version: @VERSION@
+Requires: @GST_PKG_DEPS@@LIBXML_PKG@
+Libs: ${libdir}/gst/libgstreamer-@GST_MAJORMINOR@.la
+Cflags: -I${includedir} -I${includedir}/libs @GST_PKG_CFLAGS@