2 # Copyright (C) 2008 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://ftp.gnome.org
/pub
/GNOME
/sources
/pygtk
/2.10/
18 include $(INCLUDE_DIR
)/package.mk
20 EXTRA_CFLAGS
:=-I
$(STAGING_DIR
)/usr
/include/pycairo
/ -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include/ -I
$(STAGING_DIR
)/usr
/lib
/libiconv
/include/
22 define Package
/python-gtk
25 TITLE
:=GTK bindings to python
26 URL
:=http
://www.pygtk.org
/
27 DEPENDS
:=python-core
+python-gobject
+gtk-2.10
.14 +pycairo
30 define Package
/python-gtk
/description
31 API to GTK and glade library from python
34 define Build
/Configure
35 (cd
$(PKG_BUILD_DIR
); \
36 if
[ -x
$(CONFIGURE_CMD
) ]; then \
37 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/ && \
46 cd
$(PKG_BUILD_DIR
) ; PYTHON_HOST
=/usr
/bin
/python DESTDIR
=$(PKG_INSTALL_DIR
) $(MAKE
) all install
49 define Build
/InstallDev
51 cp
-r
$(PKG_INSTALL_DIR
)/* $(1)
54 define Package
/python-gtk
/install
56 cp
-r
$(PKG_INSTALL_DIR
)/* $(1)
59 $(eval
$(call BuildPackage
,python-gtk
))