2008-05-08 22:03:35 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pygtk
|
|
|
|
PKG_VERSION:=2.10.6
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.10/
|
2008-05-24 17:15:00 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2008-06-17 22:05:39 +00:00
|
|
|
PKG_MD5SUM:=d033b7617b9074357f687326b52b6296
|
2008-05-08 22:03:35 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-05-24 17:15:00 +00:00
|
|
|
EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/pycairo/ -I$(STAGING_DIR)/usr/lib/libintl/include/ -I$(STAGING_DIR)/usr/lib/libiconv/include/
|
2008-08-06 01:57:49 +00:00
|
|
|
EXTRA_LDFLAGS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib
|
2008-05-24 18:01:46 +00:00
|
|
|
|
2008-05-08 22:03:35 +00:00
|
|
|
define Package/python-gtk
|
2008-05-24 18:01:46 +00:00
|
|
|
SUBMENU:=Python
|
2008-05-08 22:03:35 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=GTK bindings to python
|
|
|
|
URL:=http://www.pygtk.org/
|
2008-08-04 23:47:22 +00:00
|
|
|
DEPENDS:=python-core +python-gobject +gtk2 +pycairo
|
2008-05-08 22:03:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-gtk/description
|
|
|
|
API to GTK and glade library from python
|
|
|
|
endef
|
|
|
|
|
2008-05-24 17:15:00 +00:00
|
|
|
define Build/Compile
|
2008-08-06 01:57:49 +00:00
|
|
|
PYTHON_HOST="python2.5" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
SUBDIRS="codegen . gtk" \
|
|
|
|
all install
|
|
|
|
sed -i "s/UCS4/UCS2/g" $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/gtk-2.0/gtk/_gtk.so
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-08-06 02:35:59 +00:00
|
|
|
$(INSTALL_DIR) $(1)
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-gtk/install
|
2008-08-06 02:35:59 +00:00
|
|
|
$(INSTALL_DIR) $(1)
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
2008-05-08 22:03:35 +00:00
|
|
|
$(eval $(call BuildPackage,python-gtk))
|
2008-08-06 10:33:30 +00:00
|
|
|
$(eval $(call RequireCommand,pygtk-codegen-2.0, \
|
2008-08-06 02:35:59 +00:00
|
|
|
Please install the pygtk 2.0 development package \
|
|
|
|
))
|
2008-09-13 22:03:39 +00:00
|
|
|
$(eval $(call RequireCommand,python2.5, \
|
|
|
|
Please install Python 2.5 \
|
|
|
|
))
|