* gstreamer/Makefile.am: fix up line continuations
+ * configure.ac, Makefile.am, pkgconfig/*: add pkgconfig support
+
2003-06-11 Thomas Vander Stichele <thomas at apestaart dot org>
* gst-python.spec.in: fix
-AUTOMAKE_OPTIONS = 1.5
-
-SUBDIRS = gstreamer examples
+SUBDIRS = gstreamer pkgconfig examples
EXTRA_DIST = \
gst-python.spec.in gst-python.spec
+
+snap:
+ $(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`
AC_SUBST(GST_LIBS)
AC_SUBST(GST_CFLAGS)
+AC_SUBST(GST_MAJORMINOR)
dnl check for pygtk
PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= $PYGTK_REQ)
AC_OUTPUT([
Makefile
gstreamer/Makefile
+ pkgconfig/Makefile
+ pkgconfig/gst-python.pc
+ pkgconfig/gst-python-uninstalled.pc
examples/Makefile
examples/gstreamer/Makefile
gst-python.spec
--- /dev/null
+Makefile
+Makefile.in
+*.pc
--- /dev/null
+### all of the standard pc files we need to generate
+pcfiles = \
+ gst-python-@GST_MAJORMINOR@.pc
+
+pcfiles_uninstalled = \
+ gst-python-@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 = \
+ gst-python.pc.in \
+ gst-python-uninstalled.pc.in
+
+CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
--- /dev/null
+# the standard variables don't make sense for an uninstalled copy
+#prefix=
+#exec_prefix=
+#includedir=${pcfiledir}/..
+#datadir=${pcfiledir}/..
+
+# you can use the --variable=pygtkincludedir argument to
+# pkg-config to get this value. You might want to use this to
+# install additional headers.
+#gstpythonincludedir=${includedir}/gst-python-@GST_MAJORMINOR@
+
+# same here. Useful when calling the code generator in addon packages.
+#defsdir=${datadir}/gst-python/@GST_MAJORMINOR@/defs
+
+Name: gst-python uninstalled
+Description: Python bindings for GStreamer, not installed
+Requires: pygtk-2.0, gstreamer-@GST_MAJORMINOR@
+Version: @VERSION@
+#Cflags: -I${gstpythonincludedir}
--- /dev/null
+#prefix=@prefix@
+#exec_prefix=@exec_prefix@
+#includedir=@includedir@
+#datadir=@datadir@
+
+# you can use the --variable=pygtkincludedir argument to
+# pkg-config to get this value. You might want to use this to
+# install additional headers.
+#gstpythonincludedir=${includedir}/gst-python-@GST_MAJORMINOR@
+
+# same here. Useful when calling the code generator in addon packages.
+#defsdir=${datadir}/gst-python/@GST_MAJORMINOR@/defs
+
+Name: gst-python
+Description: Python bindings for GStreamer
+Requires: pygtk-2.0, gstreamer-@GST_MAJORMINOR@
+Version: @VERSION@
+#Cflags: -I${gstpythonincludedir}