xkbdata: Add missing dependency to xkbcomp
[openwrt/svn-archive/archive.git] / lang / gst-python / Makefile
1 #
2 # Copyright (C) 2008-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gst-python
11 PKG_VERSION:=0.10.13
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-python/
15 PKG_MD5SUM:=870440c6aad304112961ef5700d7698f
16 PKG_FIXUP:=libtool
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20 $(call include_mk, python-package.mk)
21
22
23 TARGET_CFLAGS += $(FPIC) \
24 -I$(STAGING_DIR)/usr/lib/libintl/include \
25 -I$(STAGING_DIR)/usr/lib/libiconv/include \
26
27 TARGET_LDFLAGS += \
28 -L$(STAGING_DIR)/usr/lib/libintl/lib \
29 -L$(STAGING_DIR)/usr/lib/libiconv/lib
30
31 CONFIGURE_VARS += PYTHON=$(HOST_PYTHON)
32
33 define Package/gst-python
34 SUBMENU:=Python
35 SECTION:=lang
36 CATEGORY:=Languages
37 TITLE:=python bindings for gstreamer
38 URL:=http://gstreamer.freedesktop.org/
39 DEPENDS:=+gstreamer +gst-plugins-base +python-gobject +python-mini
40 endef
41
42 define Package/gst-python/description
43 python bindings for gstreamer
44 endef
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
50 $(1)/usr/lib/pkgconfig/
51
52 $(SED) \
53 "s,^defsdir=.*,defsdir=$(STAGING_DIR)/usr/share/gst-python/0.10/defs/,g" \
54 $(1)/usr/lib/pkgconfig/gst-python-0.10.pc
55
56 $(INSTALL_DIR) $(1)/usr/share/gst-python/0.10/defs
57 $(INSTALL_DATA) \
58 $(PKG_INSTALL_DIR)/usr/share/gst-python/0.10/defs/* \
59 $(1)/usr/share/gst-python/0.10/defs/
60 endef
61
62 define Package/gst-python/install
63 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/{gstoption.so,pygst.pth,pygst.py} \
66 $(1)$(PYTHON_PKG_DIR)/
67
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gst-0.10/gst/*.{so,py} \
70 $(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/
71
72 $(INSTALL_DATA) \
73 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend/*.py \
74 $(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend/
75 endef
76
77 $(eval $(call BuildPackage,gst-python))