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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@GNOME
/$(PKG_NAME
)/2.12/
17 PKG_MD5SUM
:=a816346d750d61e3fa67a200e4292694
20 include $(INCLUDE_DIR
)/package.mk
21 -include $(if
$(DUMP
),,$(STAGING_DIR
)/mk
/python-package.mk
)
24 -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include/ \
25 -I
$(STAGING_DIR
)/usr
/lib
/libiconv
/include/
28 -L
$(STAGING_DIR
)/usr
/lib
/libintl
/lib \
29 -L
$(STAGING_DIR
)/usr
/lib
/libiconv
/lib
31 define Package
/python-gtk
35 TITLE
:=GTK bindings for python
36 URL
:=http
://www.pygtk.org
/
37 DEPENDS
:=python-core
+python-gobject
+gtk2
+pycairo
40 define Package
/python-gtk
/description
41 API to GTK and glade library from python.
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 SUBDIRS
="codegen . gtk" \
47 all install DESTDIR
="$(PKG_INSTALL_DIR)"
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/include/pygtk-2.0
/pygtk
53 $(PKG_INSTALL_DIR
)/usr
/include/pygtk-2.0
/pygtk
/* \
54 $(1)/usr
/include/pygtk-2.0
/pygtk
56 $(INSTALL_DIR
) $(1)/usr
/share
/pygtk
/2.0/codegen
58 $(PKG_INSTALL_DIR
)/usr
/share
/pygtk
/2.0/codegen
/*.py \
59 $(1)/usr
/share
/pygtk
/2.0/codegen
/
61 $(INSTALL_DIR
) $(1)/usr
/share
/pygtk
/2.0/defs
/
63 $(PKG_INSTALL_DIR
)/usr
/share
/pygtk
/2.0/defs
/* \
64 $(1)/usr
/share
/pygtk
/2.0/defs
66 $(INSTALL_DIR
) $(2)/bin
68 $(PKG_INSTALL_DIR
)/usr
/bin
/* \
71 $(SED
) 's,^\(datadir\|prefix\)=,\1=$(STAGING_DIR),g' $(2)/bin
/pygtk-codegen-2.0
73 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
75 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
76 $(1)/usr
/lib
/pkgconfig
78 $(SED
) 's,^datadir=,datadir=$(STAGING_DIR),g' $(1)/usr
/lib
/pkgconfig
/pygtk-2.0.
pc
81 define Package
/python-gtk
/install
82 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
84 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/gtk-2.0
/*.so \
85 $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
87 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
/gtk
89 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/gtk-2.0
/gtk
/*.
{py
,so
} \
90 $(1)$(PYTHON_PKG_DIR
)/gtk-2.0
/gtk
93 $(eval
$(call BuildPackage
,python-gtk
))