[packages] python-gnome-desktop2: don't break on error when python-package.mk can...
[openwrt/svn-archive/archive.git] / lang / python-gnome-desktop2 / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gnome-python-desktop
11 PKG_VERSION:=2.22.0
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.22
15 PKG_MD5SUM:=504877a973f6abc0788283232cd703c
16 PKG_FIXUP:=libtool
17
18 include $(INCLUDE_DIR)/package.mk
19 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
20
21 PKG_INSTALL=1
22
23 EXTRA_CFLAGS += \
24 -I$(STAGING_DIR)/usr/lib/libintl/include \
25 -I$(STAGING_DIR)/usr/lib/libiconv/include \
26
27 EXTRA_LDFLAGS += \
28 -L$(STAGING_DIR)/usr/lib/libintl/lib \
29 -L$(STAGING_DIR)/usr/lib/libiconv/lib
30
31 STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_python-rsvg CONFIG_PACKAGE_python-wnck)
32
33 define Package/python-gnome-desktop/Default
34 SECTION:=lang
35 SUBMENU:=Python
36 CATEGORY:=Languages
37 TITLE:=$(1) python bindings
38 URL:=http://ftp.gnome.org/
39 DEPENDS:=+python-mini python-gtk $(2)
40 endef
41
42 define Package/python-rsvg
43 $(call Package/python-gnome-desktop/Default,librsvg,+librsvg +pycairo)
44 endef
45
46 define Package/python-wnck
47 $(call Package/python-gnome-desktop/Default,libwnck,+libwnck)
48 endef
49
50 define Build/Configure
51 $(call Build/Configure/Default, \
52 $(if $(CONFIG_PACKAGE_python-rsvg), --enable-rsvg, --disable-rsvg) \
53 $(if $(CONFIG_PACKAGE_python-wnck), --enable-wnck, --disable-wnck) \
54 )
55 endef
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/share/pygtk/2.0/defs
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/share/pygtk/2.0/defs/* \
61 $(1)/usr/share/pygtk/2.0/defs
62
63 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
66 $(1)/usr/lib/pkgconfig
67
68 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.{so,la} \
71 $(1)$(PYTHON_PKG_DIR)/gtk-2.0
72 endef
73
74 define Package/python-gnome-desktop/install/Default
75 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
76 $(INSTALL_DATA) \
77 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/$(2).{so,a} \
78 $(1)$(PYTHON_PKG_DIR)/gtk-2.0
79 endef
80
81 define Package/python-rsvg/install
82 $(call Package/python-gnome-desktop/install/Default,$(1),rsvg)
83 endef
84
85 define Package/python-wnck/install
86 $(call Package/python-gnome-desktop/install/Default,$(1),wnck)
87 endef
88
89 $(eval $(call BuildPackage,python-rsvg))
90 $(eval $(call BuildPackage,python-wnck))
91