2 # Copyright (C) 2008-2011 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.bz2
15 PKG_SOURCE_URL
:=@GNOME
/$(PKG_NAME
)/2.12/
16 PKG_MD5SUM
:=a816346d750d61e3fa67a200e4292694
19 include $(INCLUDE_DIR
)/package.mk
20 include $(INCLUDE_DIR
)/nls.mk
21 $(call include_mk
, python-package.mk
)
23 define Package
/python-gtk
27 TITLE
:=GTK bindings for python
28 URL
:=http
://www.pygtk.org
/
29 DEPENDS
:=+python-mini
+python-gobject
+gtk2
+pycairo @
!LINUX_2_4
32 define Package
/python-gtk
/description
33 API to GTK and glade library from python.
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 SUBDIRS
="codegen . gtk" \
39 all install DESTDIR
="$(PKG_INSTALL_DIR)"
42 define Build
/InstallDev
43 $(INSTALL_DIR
) $(1)/usr
/include/pygtk-2.0
/pygtk
45 $(PKG_INSTALL_DIR
)/usr
/include/pygtk-2.0
/pygtk
/* \
46 $(1)/usr
/include/pygtk-2.0
/pygtk
48 $(INSTALL_DIR
) $(1)/usr
/share
/pygtk
/2.0/codegen
50 $(PKG_INSTALL_DIR
)/usr
/share
/pygtk
/2.0/codegen
/*.py \
51 $(1)/usr
/share
/pygtk
/2.0/codegen
/
53 $(INSTALL_DIR
) $(1)/usr
/share
/pygtk
/2.0/defs
/
55 $(PKG_INSTALL_DIR
)/usr
/share
/pygtk
/2.0/defs
/* \
56 $(1)/usr
/share
/pygtk
/2.0/defs
58 $(INSTALL_DIR
) $(2)/bin
60 $(PKG_INSTALL_DIR
)/usr
/bin
/* \
63 $(SED
) 's,^\(datadir\|prefix\)=,\1=$(STAGING_DIR),g' $(2)/bin
/pygtk-codegen-2.0
65 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
67 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
68 $(1)/usr
/lib
/pkgconfig
70 $(SED
) 's,^datadir=,datadir=$(STAGING_DIR),g' $(1)/usr
/lib
/pkgconfig
/pygtk-2.0.
pc
73 define Package
/python-gtk
/install
74 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
76 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/gtk-2.0
/*.so \
77 $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
79 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
/gtk
81 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/gtk-2.0
/gtk
/*{.py
,.so
}* \
82 $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
/gtk
85 $(eval
$(call BuildPackage
,python-gtk
))