2008-05-08 22:03:35 +00:00
|
|
|
#
|
2009-12-24 04:05:34 +00:00
|
|
|
# Copyright (C) 2008-2009 OpenWrt.org
|
2008-05-08 22:03:35 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pygtk
|
2008-10-02 15:33:26 +00:00
|
|
|
PKG_VERSION:=2.12.1
|
|
|
|
PKG_RELEASE:=2
|
2008-05-08 22:03:35 +00:00
|
|
|
|
2008-10-02 15:33:26 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.12/
|
|
|
|
PKG_MD5SUM:=a816346d750d61e3fa67a200e4292694
|
2008-05-24 17:15:00 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2008-05-08 22:03:35 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2010-02-24 23:13:32 +00:00
|
|
|
$(call include_mk, python-package.mk)
|
2008-05-08 22:03:35 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
TARGET_CFLAGS+= \
|
2008-10-02 15:33:26 +00:00
|
|
|
-I$(STAGING_DIR)/usr/lib/libintl/include/ \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libiconv/include/
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
TARGET_LDFLAGS+= \
|
2008-10-02 15:33:26 +00:00
|
|
|
-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
|
2008-10-02 15:33:26 +00:00
|
|
|
TITLE:=GTK bindings for python
|
2008-05-08 22:03:35 +00:00
|
|
|
URL:=http://www.pygtk.org/
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+python-mini +python-gobject +gtk2 +pycairo @!LINUX_2_4
|
2008-05-08 22:03:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-gtk/description
|
2008-10-02 15:33:26 +00:00
|
|
|
API to GTK and glade library from python.
|
2008-05-08 22:03:35 +00:00
|
|
|
endef
|
|
|
|
|
2008-05-24 17:15:00 +00:00
|
|
|
define Build/Compile
|
2008-08-06 01:57:49 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
SUBDIRS="codegen . gtk" \
|
2008-10-02 15:33:26 +00:00
|
|
|
all install DESTDIR="$(PKG_INSTALL_DIR)"
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/pygtk-2.0/pygtk
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/pygtk-2.0/pygtk/* \
|
|
|
|
$(1)/usr/include/pygtk-2.0/pygtk
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/pygtk/2.0/codegen
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/pygtk/2.0/codegen/*.py \
|
|
|
|
$(1)/usr/share/pygtk/2.0/codegen/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/pygtk/2.0/defs/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/pygtk/2.0/defs/* \
|
|
|
|
$(1)/usr/share/pygtk/2.0/defs
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/* \
|
|
|
|
$(2)/bin
|
|
|
|
|
|
|
|
$(SED) 's,^\(datadir\|prefix\)=,\1=$(STAGING_DIR),g' $(2)/bin/pygtk-codegen-2.0
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig
|
|
|
|
|
|
|
|
$(SED) 's,^datadir=,datadir=$(STAGING_DIR),g' $(1)/usr/lib/pkgconfig/pygtk-2.0.pc
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-gtk/install
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.so \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0/gtk
|
|
|
|
$(INSTALL_DATA) \
|
2009-12-24 04:05:34 +00:00
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/gtk/*.py* \
|
2008-10-02 15:33:26 +00:00
|
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0/gtk
|
2008-05-24 17:15:00 +00:00
|
|
|
endef
|
|
|
|
|
2008-05-08 22:03:35 +00:00
|
|
|
$(eval $(call BuildPackage,python-gtk))
|