2 # Copyright (C) 2008-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=http
://gstreamer.freedesktop.org
/src
/gst-python
/
15 PKG_MD5SUM
:=870440c6aad304112961ef5700d7698f
19 include $(INCLUDE_DIR
)/package.mk
20 include $(INCLUDE_DIR
)/nls.mk
21 $(call include_mk
, python-package.mk
)
24 TARGET_CFLAGS
+= $(FPIC
)
25 CONFIGURE_VARS
+= PYTHON
=$(HOST_PYTHON
)
27 define Package
/gst-python
31 TITLE
:=python bindings for gstreamer
32 URL
:=http
://gstreamer.freedesktop.org
/
33 DEPENDS
:=+gstreamer
+gst-plugins-base
+python-gobject
+python-mini
36 define Package
/gst-python
/description
37 python bindings for gstreamer
40 define Build
/InstallDev
41 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
43 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
44 $(1)/usr
/lib
/pkgconfig
/
47 "s,^defsdir=.*,defsdir=$(STAGING_DIR)/usr/share/gst-python/0.10/defs/,g" \
48 $(1)/usr
/lib
/pkgconfig
/gst-python-0.10.
pc
50 $(INSTALL_DIR
) $(1)/usr
/share
/gst-python
/0.10/defs
52 $(PKG_INSTALL_DIR
)/usr
/share
/gst-python
/0.10/defs
/* \
53 $(1)/usr
/share
/gst-python
/0.10/defs
/
56 define Package
/gst-python
/install
57 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/gst-0.10
/gst
/extend
59 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/{gstoption.so
,pygst.pth
,pygst.py
} \
60 $(1)$(PYTHON_PKG_DIR
)/
63 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/gst-0.10
/gst
/*.
{so
,py
} \
64 $(1)$(PYTHON_PKG_DIR
)/gst-0.10
/gst
/
67 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/gst-0.10
/gst
/extend
/*.py \
68 $(1)$(PYTHON_PKG_DIR
)/gst-0.10
/gst
/extend
/
71 $(eval
$(call BuildPackage
,gst-python
))