From 2023da5a8df5f1b8f7977e12a096db3035177eab Mon Sep 17 00:00:00 2001 From: gb Date: Tue, 23 Mar 2010 07:31:04 +0000 Subject: [PATCH] Add -doc package. --- configure.ac | 11 ++++++++++- debian/Makefile.am | 3 +++ debian/control.in | 9 +++++++++ debian/gstreamer-vaapi-doc.install.in | 1 + debian/rules | 14 ++++++++++++++ 5 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 debian/gstreamer-vaapi-doc.install.in diff --git a/configure.ac b/configure.ac index 64b2871..786ef7b 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,11 @@ m4_define([libva_glx_sds_package_version_0_31], [0.31.0-1+sds1]) m4_define([libva_sds_version], [libva_glx_sds_version_0_31]) m4_define([libva_sds_package_version], [libva_glx_sds_package_version_0_31]) +# gtk-doc version number +m4_define([gtkdoc_major_version], [1]) +m4_define([gtkdoc_minor_version], [9]) +m4_define([gtkdoc_version], [gtkdoc_major_version.gtkdoc_minor_version]) + AC_PREREQ([2.57]) AC_INIT([gst_vaapi], [gst_vaapi_version], [gbeauchesne@splitted-desktop.com], @@ -91,8 +96,10 @@ AM_PROG_CC_C_O AC_PROG_LIBTOOL dnl Check for Gtk doc -GTK_DOC_CHECK([1.9]) +GTKDOC_VERSION=gtkdoc_version +GTK_DOC_CHECK([$GTKDOC_VERSION]) AM_CONDITIONAL([BUILD_GTK_DOC], [test "x$enable_gtk_doc" = "xyes"]) +AC_SUBST(GTKDOC_VERSION) dnl Check for GLib PKG_CHECK_MODULES([GLIB], [glib-2.0]) @@ -186,6 +193,8 @@ AC_OUTPUT([ debian/control debian/gstreamer$GST_MAJORMINOR-vaapi.install:\ debian/gstreamer-vaapi.install.in + debian/gstreamer$GST_MAJORMINOR-vaapi-doc.install:\ +debian/gstreamer-vaapi-doc.install.in debian/libgstvaapi$GST_VAAPI_MAJOR_VERSION.install:\ debian/libgstvaapi.install.in debian/libgstvaapi$GST_VAAPI_MAJOR_VERSION-dev.install:\ diff --git a/debian/Makefile.am b/debian/Makefile.am index d015ab6..93b9514 100644 --- a/debian/Makefile.am +++ b/debian/Makefile.am @@ -14,6 +14,8 @@ DEBIANFILES = \ copyright \ gstreamer-vaapi.install.in \ gstreamer$(GST_MAJORMINOR)-vaapi.install \ + gstreamer-vaapi-doc.install.in \ + gstreamer$(GST_MAJORMINOR)-vaapi-doc.install \ libgstvaapi.install.in \ libgstvaapi$(GST_VAAPI_MAJOR_VERSION).install \ libgstvaapi-dev.install.in \ @@ -27,6 +29,7 @@ DEBIANGENFILES = \ control \ changelog \ gstreamer$(GST_MAJORMINOR)-vaapi.install \ + gstreamer$(GST_MAJORMINOR)-vaapi-doc.install \ libgstvaapi$(GST_VAAPI_MAJOR_VERSION).install \ libgstvaapi$(GST_VAAPI_MAJOR_VERSION)-dev.install \ libgstvaapi-x11-$(GST_VAAPI_MAJOR_VERSION).install \ diff --git a/debian/control.in b/debian/control.in index f547769..ca4bd12 100644 --- a/debian/control.in +++ b/debian/control.in @@ -8,17 +8,26 @@ Build-Depends: debhelper (>= 5), libgstreamer@GST_MAJORMINOR@-dev (>= @GST_VERSION_REQUIRED@), libgstreamer-plugins-base@GST_MAJORMINOR@-dev (>= @GST_PLUGINS_BASE_VERSION_REQUIRED@), libva-dev (>= @LIBVA_SDS_PACKAGE_VERSION@) +Build-Depends-Indep: gtk-doc-tools (>= @GTKDOC_VERSION@) Standards-Version: 3.7.2 Package: gstreamer@GST_MAJORMINOR@-vaapi Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: gstreamer@GST_MAJORMINOR@-vaapi-doc Description: VA-API plugins for GStreamer This package contains GStreamer plugins for VA-API support: - `vaapiconvert': converts from YUV pixels to VA surfaces - `vaapisink': a VA-API based video sink +Package: gstreamer@GST_MAJORMINOR@-vaapi-doc +Architecture: all +Section: doc +Recommends: libgstvaapi@GST_VAAPI_MAJOR_VERSION@-dev (= ${source:Version}) +Description: GStreamer VA-API documentation and manuals + This packages contains documentation for libraries and elements. + Package: gstreamer@GST_MAJORMINOR@-vaapi-dbg Section: libdevel Architecture: any diff --git a/debian/gstreamer-vaapi-doc.install.in b/debian/gstreamer-vaapi-doc.install.in new file mode 100644 index 0000000..ff84ca1 --- /dev/null +++ b/debian/gstreamer-vaapi-doc.install.in @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/gstreamer@GST_MAJORMINOR@-vaapi diff --git a/debian/rules b/debian/rules index 76c4183..0ec96be 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,8 @@ include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk include /usr/share/cdbs/1/rules/utils.mk +gst_pkgname = $(shell dpkg-parsechangelog | grep ^Source: | cut -d' ' -f2) + # Allow SMP build ifeq ($(DEBIAN_BUILD_NCPUS),) DEBIAN_BUILD_NCPUS = $(shell /usr/bin/getconf _NPROCESSORS_ONLN) @@ -13,3 +15,15 @@ ifneq ($(DEBIAN_BUILD_NCPUS),) EXTRA_MAKE_FLAGS += -j$(DEBIAN_BUILD_NCPUS) endif MAKE += $(EXTRA_MAKE_FLAGS) + +# Allow HTML documentation build +indep_conf_flags = \ + --with-html-dir=\$${prefix}/share/doc/$(gst_pkgname) + +# only build the docs if gtk-doc-tools is installed, i.e. binary-indep is +# called +ifeq ($(shell test "`dpkg -l gtk-doc-tools | grep ^ii`" && echo binary-indep),binary-indep) +indep_conf_flags += --enable-gtk-doc +endif + +DEB_CONFIGURE_EXTRA_FLAGS += $(indep_conf_flags) -- 2.7.4