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