Add debian packaging.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 16 Mar 2010 13:53:54 +0000 (13:53 +0000)
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 16 Mar 2010 13:53:54 +0000 (13:53 +0000)
debian/Makefile.am [new file with mode: 0644]
debian/changelog.in [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/gstreamer-vaapi.install.in [new file with mode: 0644]
debian/libgstvaapi-dev.install.in [new file with mode: 0644]
debian/libgstvaapi-x11.install.in [new file with mode: 0644]
debian/libgstvaapi.install.in [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/Makefile.am b/debian/Makefile.am
new file mode 100644 (file)
index 0000000..d015ab6
--- /dev/null
@@ -0,0 +1,39 @@
+DOCS = \
+       AUTHORS \
+       COPYING \
+       NEWS    \
+       README  \
+       $(NULL)
+
+DEBIANFILES = \
+       changelog                                               \
+       changelog.in                                            \
+       compat                                                  \
+       control                                                 \
+       control.in                                              \
+       copyright                                               \
+       gstreamer-vaapi.install.in                              \
+       gstreamer$(GST_MAJORMINOR)-vaapi.install                \
+       libgstvaapi.install.in                                  \
+       libgstvaapi$(GST_VAAPI_MAJOR_VERSION).install           \
+       libgstvaapi-dev.install.in                              \
+       libgstvaapi$(GST_VAAPI_MAJOR_VERSION)-dev.install       \
+       libgstvaapi-x11.install.in                              \
+       libgstvaapi-x11-$(GST_VAAPI_MAJOR_VERSION).install      \
+       rules                                                   \
+       $(NULL)
+
+DEBIANGENFILES = \
+       control                                                 \
+       changelog                                               \
+       gstreamer$(GST_MAJORMINOR)-vaapi.install                \
+       libgstvaapi$(GST_VAAPI_MAJOR_VERSION).install           \
+       libgstvaapi$(GST_VAAPI_MAJOR_VERSION)-dev.install       \
+       libgstvaapi-x11-$(GST_VAAPI_MAJOR_VERSION).install      \
+       $(NULL)
+
+EXTRA_DIST = \
+       $(DEBIANFILES)
+
+# Extra clean files so that maintainer-clean removes *everything*
+MAINTAINERCLEANFILES = Makefile.in $(DEBIANGENFILES)
diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644 (file)
index 0000000..4ecfad0
--- /dev/null
@@ -0,0 +1,5 @@
+gstreamer@GST_MAJORMINOR@-vaapi (@PACKAGE_VERSION@-1) unstable; urgency=low
+
+  * Autogenerated package, see NEWS file for ChangeLog.
+
+ -- Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>  @TODAY@
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control.in b/debian/control.in
new file mode 100644 (file)
index 0000000..9db525b
--- /dev/null
@@ -0,0 +1,57 @@
+Source: gstreamer@GST_MAJORMINOR@-vaapi
+Section: libs
+Priority: optional
+Maintainer: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
+Build-Depends: debhelper (>= 5),
+              cdbs,
+              libglib2.0-dev,
+              libgstreamer@GST_MAJORMINOR@-dev,
+              libgstreamer-plugins-base@GST_MAJORMINOR@-dev,
+              libva-dev (>= @LIBVA_SDS_PACKAGE_VERSION@)
+Standards-Version: 3.7.2
+
+Package: gstreamer@GST_MAJORMINOR@-vaapi
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+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-dbg
+Section: libdevel
+Architecture: any
+Depends: gstreamer@GST_MAJORMINOR@-vaapi (= ${Source-Version})
+Description: VA-API plugins for GStreamer
+ VA-API support plugins for GStreamer.
+ .
+ This package contains the debug files.
+
+Package: libgstvaapi@GST_VAAPI_MAJOR_VERSION@
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: GStreamer libraries from the "vaapi" set
+ VA-API support libraries for GStreamer.
+ .
+ This package contains common libraries for the "vaapi" set.
+
+Package: libgstvaapi-x11-@GST_VAAPI_MAJOR_VERSION@
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: GStreamer libraries from the "vaapi" set
+ VA-API support libraries for GStreamer.
+ .
+ This package contains x11 libraries for the "vaapi" set.
+
+Package: libgstvaapi@GST_VAAPI_MAJOR_VERSION@-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: GStreamer development files for libraries from the "vaapi" set
+ GStreamer/VA-API development files.
+ .
+ This package contains development files for GStreamer libraries for
+ the "vaapi" set.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..94da1e1
--- /dev/null
@@ -0,0 +1,34 @@
+This package is maintained by:
+Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
+
+
+License:
+
+    Copyright (C) 2009, Splitted-Desktop Systems.
+    All rights reserved.
+
+    Redistribution.  Redistribution and use in binary form, without 
+    modification, are permitted provided that the following conditions are 
+    met:
+
+    * Redistributions must reproduce the above copyright notice and the
+      following disclaimer in the documentation and/or other materials
+      provided with the distribution.
+    * Neither the name of Splitted-Desktop Systems nor the names of its
+      suppliers may be used to endorse or promote products derived from
+      this software without specific prior written permission.
+    * No reverse engineering, decompilation, or disassembly of this software 
+      is permitted.
+
+    DISCLAIMER.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+    CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
+    BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+    FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+    COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+    OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+    USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+    DAMAGE.
diff --git a/debian/gstreamer-vaapi.install.in b/debian/gstreamer-vaapi.install.in
new file mode 100644 (file)
index 0000000..76b63bd
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/lib/gstreamer-@GST_MAJORMINOR@/libgstvaapi*.so*
diff --git a/debian/libgstvaapi-dev.install.in b/debian/libgstvaapi-dev.install.in
new file mode 100644 (file)
index 0000000..a940c52
--- /dev/null
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/libgstvaapi*.so
+debian/tmp/usr/lib/pkgconfig/gstreamer-vaapi*.pc
+debian/tmp/usr/include/gstreamer-@GST_MAJORMINOR@/gst/vaapi/*.h
diff --git a/debian/libgstvaapi-x11.install.in b/debian/libgstvaapi-x11.install.in
new file mode 100644 (file)
index 0000000..8754fb8
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/lib/libgstvaapi-x11-@GST_MAJORMINOR@.so.*
diff --git a/debian/libgstvaapi.install.in b/debian/libgstvaapi.install.in
new file mode 100644 (file)
index 0000000..e585a6b
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/lib/libgstvaapi-@GST_MAJORMINOR@.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..76c4183
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+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
+
+# Allow SMP build
+ifeq ($(DEBIAN_BUILD_NCPUS),)
+       DEBIAN_BUILD_NCPUS = $(shell /usr/bin/getconf _NPROCESSORS_ONLN)
+endif
+ifneq ($(DEBIAN_BUILD_NCPUS),)
+       EXTRA_MAKE_FLAGS += -j$(DEBIAN_BUILD_NCPUS)
+endif
+MAKE += $(EXTRA_MAKE_FLAGS)