remove a few obsolete dependencies now that dependency propagation is fixed
[openwrt/svn-archive/archive.git] / lang / pygtk / Makefile
1 #
2 # Copyright (C) 2008 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:=pygtk
11 PKG_VERSION:=2.10.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.10/
16 PKG_FIXUP:=libtool
17 PKG_MD5SUM:=d033b7617b9074357f687326b52b6296
18
19 include $(INCLUDE_DIR)/package.mk
20
21 EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/pycairo/ -I$(STAGING_DIR)/usr/lib/libintl/include/ -I$(STAGING_DIR)/usr/lib/libiconv/include/
22
23 define Package/python-gtk
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=GTK bindings to python
28 URL:=http://www.pygtk.org/
29 DEPENDS:=python-core +python-gobject +gtk2 +pycairo
30 endef
31
32 define Package/python-gtk/description
33 API to GTK and glade library from python
34 endef
35
36 define Build/Configure
37 (cd $(PKG_BUILD_DIR); \
38 if [ -x $(CONFIGURE_CMD) ]; then \
39 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
40 $(CONFIGURE_VARS) \
41 $(CONFIGURE_CMD) \
42 $(CONFIGURE_ARGS) ;\
43 fi \
44 )
45 endef
46
47 define Build/Compile
48 cd $(PKG_BUILD_DIR) ; PYTHON_HOST=/usr/bin/python DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
49 endef
50
51 define Build/InstallDev
52 mkdir -p $(1)
53 cp -r $(PKG_INSTALL_DIR)/* $(1)
54 endef
55
56 define Package/python-gtk/install
57 mkdir -p $(1)
58 cp -r $(PKG_INSTALL_DIR)/* $(1)
59 endef
60
61 $(eval $(call BuildPackage,python-gtk))