2008-06-03 21:11:50 +00:00
|
|
|
#
|
2009-01-12 21:45:25 +00:00
|
|
|
# Copyright (C) 2008-2009 OpenWrt.org
|
2008-06-03 21:11:50 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gst-python
|
2009-01-10 13:44:41 +00:00
|
|
|
PKG_VERSION:=0.10.13
|
2008-06-03 21:11:50 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-python/
|
2009-01-10 13:44:41 +00:00
|
|
|
PKG_MD5SUM:=870440c6aad304112961ef5700d7698f
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2009-01-10 13:44:41 +00:00
|
|
|
PKG_INSTALL:=1
|
2008-06-03 21:11:50 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2010-02-24 23:13:32 +00:00
|
|
|
$(call include_mk, python-package.mk)
|
2008-06-03 21:11:50 +00:00
|
|
|
|
2008-09-03 13:21:20 +00:00
|
|
|
|
2011-02-02 18:54:24 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2008-10-02 15:33:26 +00:00
|
|
|
CONFIGURE_VARS += PYTHON=$(HOST_PYTHON)
|
2008-06-03 21:11:50 +00:00
|
|
|
|
|
|
|
define Package/gst-python
|
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2008-10-02 15:33:26 +00:00
|
|
|
TITLE:=python bindings for gstreamer
|
2008-06-03 21:11:50 +00:00
|
|
|
URL:=http://gstreamer.freedesktop.org/
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+gstreamer +gst-plugins-base +python-gobject +python-mini
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gst-python/description
|
2008-10-02 15:33:26 +00:00
|
|
|
python bindings for gstreamer
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-01-10 13:44:41 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
|
|
|
|
$(SED) \
|
|
|
|
"s,^defsdir=.*,defsdir=$(STAGING_DIR)/usr/share/gst-python/0.10/defs/,g" \
|
|
|
|
$(1)/usr/lib/pkgconfig/gst-python-0.10.pc
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/gst-python/0.10/defs
|
|
|
|
$(INSTALL_DATA) \
|
2009-01-12 21:45:25 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/share/gst-python/0.10/defs/* \
|
2009-01-10 13:44:41 +00:00
|
|
|
$(1)/usr/share/gst-python/0.10/defs/
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gst-python/install
|
2009-01-10 13:44:41 +00:00
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/{gstoption.so,pygst.pth,pygst.py} \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gst-0.10/gst/*.{so,py} \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend/*.py \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend/
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gst-python))
|