398e46fa0038e49fd299dcd90e5eaf3b35e58ca5
[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_MD5SUM:=532268f02870bea18c1d465e88afff30
17 #PKG_BUILD_DEPENDS:=python gtk
18
19 include $(INCLUDE_DIR)/package.mk
20 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
21 ifneq ($(MAKECMDGOALS),download)
22 $(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
23 endif
24
25 define Package/python-gtk
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=GTK bindings to python
29 URL:=http://www.pygtk.org/
30 DEPENDS:=python-core
31 endef
32
33 define Package/python-gtk/description
34 API to GTK and glade library from python
35 endef
36
37 define Build/Compile
38 $(call Build/Compile/PyMod,., \
39 install --prefix="$(PKG_INSTALL_DIR)/usr", \
40 )
41 endef
42
43 $(eval $(call PyPackage,python-gtk))
44 $(eval $(call BuildPackage,python-gtk))