source: packages/lang/python-gnome-desktop2/Makefile @ 21091

Last change on this file since 21091 was 21091, checked in by nbd, 7 years ago

python-gnome-desktop2: turn the libwnck dependency into a conditional dependency
this prevents it from being added as a build dependency for the whole package,
as the other part of this package can be built without wnck
fixes builds with the directfb display feature flag

  • Property svn:eol-style set to native
File size: 2.3 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:=gnome-python-desktop
11PKG_VERSION:=2.22.0
12PKG_RELEASE:=1
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.22
15PKG_MD5SUM:=504877a973f6abc0788283232cd703cb
16PKG_FIXUP:=libtool
17
18include $(INCLUDE_DIR)/package.mk
19$(call include_mk, python-package.mk)
20
21PKG_INSTALL=1
22
23EXTRA_CFLAGS += \
24        -I$(STAGING_DIR)/usr/lib/libintl/include \
25        -I$(STAGING_DIR)/usr/lib/libiconv/include \
26
27EXTRA_LDFLAGS += \
28        -L$(STAGING_DIR)/usr/lib/libintl/lib \
29        -L$(STAGING_DIR)/usr/lib/libiconv/lib
30
31STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_python-rsvg CONFIG_PACKAGE_python-wnck)
32
33define 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)
40endef
41
42define Package/python-rsvg
43        $(call Package/python-gnome-desktop/Default,librsvg,+librsvg +pycairo)
44endef
45
46define Package/python-wnck
47        $(call Package/python-gnome-desktop/Default,libwnck,+PACKAGE_python-wnck:libwnck)
48endef
49
50define 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        )
55endef
56
57MAKE_INSTALL_FLAGS += \
58        PYGTK_DEFSDIR="$(PKG_INSTALL_DIR)/usr/share/pygtk/2.0/defs"
59
60define Build/InstallDev
61        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62        $(CP) \
63                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
64                $(1)/usr/lib/pkgconfig/
65
66        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
67        $(CP) \
68                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.{a,la,so} \
69                $(1)$(PYTHON_PKG_DIR)/gtk-2.0/
70endef
71
72define Package/python-gnome-desktop/install/Default
73        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
74        $(CP) \
75                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/$(2).so \
76                $(1)$(PYTHON_PKG_DIR)/gtk-2.0/
77endef
78
79define Package/python-rsvg/install
80        $(call Package/python-gnome-desktop/install/Default,$(1),rsvg)
81endef
82
83define Package/python-wnck/install
84        $(call Package/python-gnome-desktop/install/Default,$(1),wnck)
85endef
86
87$(eval $(call BuildPackage,python-rsvg))
88$(eval $(call BuildPackage,python-wnck))
89
Note: See TracBrowser for help on using the repository browser.