diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-12-28 02:01:55 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-01-12 14:47:43 +0100 |
commit | eef76165867109d63096e2a00ad464aa5feffbe3 (patch) | |
tree | 90579f819ff87480f7318e9334ef54218f1e3da6 /rules | |
parent | 6fcbb94d2e36b82293c0fc7a64782d7f61d6c1bd (diff) | |
download | ptxdist-eef76165867109d63096e2a00ad464aa5feffbe3.tar.gz ptxdist-eef76165867109d63096e2a00ad464aa5feffbe3.tar.xz |
gst-python1: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/gst-python1.in | 9 | ||||
-rw-r--r-- | rules/gst-python1.make | 80 |
2 files changed, 89 insertions, 0 deletions
diff --git a/rules/gst-python1.in b/rules/gst-python1.in new file mode 100644 index 000000000..299372f4d --- /dev/null +++ b/rules/gst-python1.in @@ -0,0 +1,9 @@ +## SECTION=multimedia_gstreamer1 + +config GST_PYTHON1 + tristate + select GSTREAMER1 + select PYTHON3_GI + prompt "gst-python" + help + GStreamer GObject Introspection overrides for Python 3 diff --git a/rules/gst-python1.make b/rules/gst-python1.make new file mode 100644 index 000000000..829e323bc --- /dev/null +++ b/rules/gst-python1.make @@ -0,0 +1,80 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_GST_PYTHON1) += gst-python1 + +# +# Paths and names +# +GST_PYTHON1_VERSION := 1.6.2 +GST_PYTHON1_MD5 := 14b6cfe1a0db5cc01c6a58f7b4af6184 +GST_PYTHON1 := gst-python-$(GST_PYTHON1_VERSION) +GST_PYTHON1_SUFFIX := tar.xz +GST_PYTHON1_URL := http://gstreamer.freedesktop.org/src/gst-python/$(GST_PYTHON1).$(GST_PYTHON1_SUFFIX) +GST_PYTHON1_SOURCE := $(SRCDIR)/$(GST_PYTHON1).$(GST_PYTHON1_SUFFIX) +GST_PYTHON1_DIR := $(BUILDDIR)/$(GST_PYTHON1) +GST_PYTHON1_BUILD_OOT := YES +GST_PYTHON1_LICENSE := LGPL-2.1+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +GST_PYTHON1_CONF_ENV := \ + $(CROSS_ENV) \ + PYTHON=$(CROSS_PYTHON3) + +# +# autoconf +# +GST_PYTHON1_CONF_TOOL := autoconf +GST_PYTHON1_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-valgrind \ + --with-libpython-dir=/usr/lib + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-python1.install: + @$(call targetinfo) + @$(call world/install, GST_PYTHON1) + @$(call world/env, GST_PYTHON1) ptxd_make_world_install_python_cleanup + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gst-python1.targetinstall: + @$(call targetinfo) + + @$(call install_init, gst-python1) + @$(call install_fixup, gst-python1,PRIORITY,optional) + @$(call install_fixup, gst-python1,SECTION,base) + @$(call install_fixup, gst-python1,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, gst-python1,DESCRIPTION,missing) + + @for file in `find $(GST_PYTHON1_PKGDIR)/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/gi \ + ! -type d ! -name "*.py" ! -name "*.la" -printf "%P\n"`; do \ + $(call install_copy, gst-python1, 0, 0, 0644, -, \ + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/gi/$$file); \ + done + @$(call install_lib, gst-python1, 0, 0, 0644, gstreamer-1.0/libgstpythonplugin*) + + @$(call install_finish, gst-python1) + + @$(call touch) + +# vim: syntax=make |