source: packages/lang/pygtk/Makefile @ 11260

Last change on this file since 11260 was 11260, checked in by blogic, 9 years ago

fixes pygtk & pycairo

File size: 1.4 KB
Line 
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=pygtk
11PKG_VERSION:=2.10.6
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.10/
16PKG_FIXUP:=libtool
17
18include $(INCLUDE_DIR)/package.mk
19
20EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/pycairo/ -I$(STAGING_DIR)/usr/lib/libintl/include/ -I$(STAGING_DIR)/usr/lib/libiconv/include/
21RSTRIP:=true
22define Package/python-gtk
23  SECTION:=lang
24  CATEGORY:=Languages
25  TITLE:=GTK bindings to python
26  URL:=http://www.pygtk.org/
27  DEPENDS:=python-core +python-gobject +gtk-2.10.14 +pycairo
28endef
29
30define Package/python-gtk/description
31  API to GTK and glade library from python
32endef
33
34define Build/Configure
35        (cd $(PKG_BUILD_DIR); \
36                if [ -x $(CONFIGURE_CMD) ]; then \
37                $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
38                        $(CONFIGURE_VARS) \
39                        $(CONFIGURE_CMD) \
40                        $(CONFIGURE_ARGS) ;\
41                fi \
42        )
43endef
44
45define Build/Compile
46        cd $(PKG_BUILD_DIR) ; PYTHON_HOST=/usr/bin/python DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
47endef
48
49define Build/InstallDev
50        mkdir -p $(1)
51        cp -r $(PKG_INSTALL_DIR)/* $(1)
52endef
53
54define Package/python-gtk/install
55        mkdir -p $(1)
56        cp -r $(PKG_INSTALL_DIR)/* $(1)
57endef
58
59$(eval $(call BuildPackage,python-gtk))
Note: See TracBrowser for help on using the repository browser.