[packages/lang/gst-python] fix typo in install
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gst-python
12 PKG_VERSION:=0.10.13
13 PKG_RELEASE:=1
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-python/
16 PKG_MD5SUM:=870440c6aad304112961ef5700d7698f
17 PKG_FIXUP:=libtool
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23
24 TARGET_CFLAGS += $(FPIC) \
25 -I$(STAGING_DIR)/usr/lib/libintl/include \
26 -I$(STAGING_DIR)/usr/lib/libiconv/include \
27
28 TARGET_LDFLAGS += \
29 -L$(STAGING_DIR)/usr/lib/libintl/lib \
30 -L$(STAGING_DIR)/usr/lib/libiconv/lib
31
32 CONFIGURE_VARS += PYTHON=$(HOST_PYTHON)
33
34 define Package/gst-python
35 SUBMENU:=Python
36 SECTION:=lang
37 CATEGORY:=Languages
38 TITLE:=python bindings for gstreamer
39 URL:=http://gstreamer.freedesktop.org/
40 DEPENDS:=+gstreamer +gst-plugins-base +python-gobject
41 endef
42
43 define Package/gst-python/description
44 python bindings for gstreamer
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
49 $(INSTALL_DATA) \
50 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
51 $(1)/usr/lib/pkgconfig/
52
53 $(SED) \
54 "s,^defsdir=.*,defsdir=$(STAGING_DIR)/usr/share/gst-python/0.10/defs/,g" \
55 $(1)/usr/lib/pkgconfig/gst-python-0.10.pc
56
57 $(INSTALL_DIR) $(1)/usr/share/gst-python/0.10/defs
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/share/gst-python/0.10/defs/* \
60 $(1)/usr/share/gst-python/0.10/defs/
61 endef
62
63 define Package/gst-python/install
64 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend
65 $(INSTALL_DATA) \
66 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/{gstoption.so,pygst.pth,pygst.py} \
67 $(1)$(PYTHON_PKG_DIR)/
68
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gst-0.10/gst/*.{so,py} \
71 $(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/
72
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend/*.py \
75 $(1)$(PYTHON_PKG_DIR)/gst-0.10/gst/extend/
76 endef
77
78 $(eval $(call BuildPackage,gst-python))