2008-06-03 21:11:50 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gnome-python-desktop
|
2008-09-08 23:09:32 +00:00
|
|
|
PKG_VERSION:=2.22.0
|
2008-06-03 21:11:50 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2008-09-08 23:09:32 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.22
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_MD5SUM:=504877a973f6abc0788283232cd703cb
|
2008-06-03 21:11:50 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2010-02-24 23:13:32 +00:00
|
|
|
$(call include_mk, python-package.mk)
|
2008-09-08 23:09:32 +00:00
|
|
|
|
|
|
|
PKG_INSTALL=1
|
2008-06-03 21:11:50 +00:00
|
|
|
|
2008-09-03 13:21:20 +00:00
|
|
|
EXTRA_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libintl/include \
|
2008-09-08 23:09:32 +00:00
|
|
|
-I$(STAGING_DIR)/usr/lib/libiconv/include \
|
2008-09-03 13:21:20 +00:00
|
|
|
|
|
|
|
EXTRA_LDFLAGS += \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib
|
2008-06-03 21:11:50 +00:00
|
|
|
|
2008-09-08 23:09:32 +00:00
|
|
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_python-rsvg CONFIG_PACKAGE_python-wnck)
|
|
|
|
|
|
|
|
define Package/python-gnome-desktop/Default
|
2008-06-03 21:11:50 +00:00
|
|
|
SECTION:=lang
|
2008-09-08 23:09:32 +00:00
|
|
|
SUBMENU:=Python
|
2008-06-03 21:11:50 +00:00
|
|
|
CATEGORY:=Languages
|
2008-09-08 23:09:32 +00:00
|
|
|
TITLE:=$(1) python bindings
|
2008-06-03 21:11:50 +00:00
|
|
|
URL:=http://ftp.gnome.org/
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+python-mini python-gtk $(2)
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-08 23:09:32 +00:00
|
|
|
define Package/python-rsvg
|
2008-09-17 21:20:39 +00:00
|
|
|
$(call Package/python-gnome-desktop/Default,librsvg,+librsvg +pycairo)
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-08 23:09:32 +00:00
|
|
|
define Package/python-wnck
|
|
|
|
$(call Package/python-gnome-desktop/Default,libwnck,+libwnck)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
2008-11-08 00:08:28 +00:00
|
|
|
$(if $(CONFIG_PACKAGE_python-rsvg), --enable-rsvg, --disable-rsvg) \
|
|
|
|
$(if $(CONFIG_PACKAGE_python-wnck), --enable-wnck, --disable-wnck) \
|
2008-09-08 23:09:32 +00:00
|
|
|
)
|
|
|
|
endef
|
2008-06-03 21:11:50 +00:00
|
|
|
|
2009-09-03 01:01:09 +00:00
|
|
|
MAKE_INSTALL_FLAGS += \
|
|
|
|
PYGTK_DEFSDIR="$(PKG_INSTALL_DIR)/usr/share/pygtk/2.0/defs"
|
|
|
|
|
2008-06-03 21:11:50 +00:00
|
|
|
define Build/InstallDev
|
2008-09-08 23:09:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2009-12-24 06:47:26 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
2008-09-08 23:09:32 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
2009-12-24 06:47:26 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.{a,la,so} \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0/
|
2008-09-08 23:09:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-gnome-desktop/install/Default
|
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
2009-12-24 06:47:26 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/$(2).so \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0/
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-08 23:09:32 +00:00
|
|
|
define Package/python-rsvg/install
|
|
|
|
$(call Package/python-gnome-desktop/install/Default,$(1),rsvg)
|
2008-06-03 21:11:50 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-08 23:09:32 +00:00
|
|
|
define Package/python-wnck/install
|
|
|
|
$(call Package/python-gnome-desktop/install/Default,$(1),wnck)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,python-rsvg))
|
|
|
|
$(eval $(call BuildPackage,python-wnck))
|
|
|
|
|