d3a7097b71
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25319 3c298f89-4303-0410-b956-a3cf2f4a3e73
89 lines
2.2 KiB
Makefile
89 lines
2.2 KiB
Makefile
#
|
|
# 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
|
|
PKG_VERSION:=2.22.0
|
|
PKG_RELEASE:=1
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.22
|
|
PKG_MD5SUM:=504877a973f6abc0788283232cd703cb
|
|
PKG_FIXUP:=libtool
|
|
|
|
# AM_PATH_GTK_2_0
|
|
PKG_BUILD_DEPENDS:=gtk2
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
$(call include_mk, python-package.mk)
|
|
|
|
PKG_INSTALL=1
|
|
|
|
EXTRA_CFLAGS += -I$(ICONV_PREFIX) -I$(INTL_PREFIX)
|
|
EXTRA_LDFLAGS += -L$(ICONV_PREFIX) -L$(INTL_PREFIX)
|
|
|
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_python-rsvg CONFIG_PACKAGE_python-wnck)
|
|
|
|
define Package/python-gnome-desktop/Default
|
|
SECTION:=lang
|
|
SUBMENU:=Python
|
|
CATEGORY:=Languages
|
|
TITLE:=$(1) python bindings
|
|
URL:=http://ftp.gnome.org/
|
|
DEPENDS:=+python-mini python-gtk $(2)
|
|
endef
|
|
|
|
define Package/python-rsvg
|
|
$(call Package/python-gnome-desktop/Default,librsvg,+librsvg +pycairo)
|
|
endef
|
|
|
|
define Package/python-wnck
|
|
$(call Package/python-gnome-desktop/Default,libwnck,+PACKAGE_python-wnck:libwnck)
|
|
endef
|
|
|
|
define Build/Configure
|
|
$(call Build/Configure/Default, \
|
|
$(if $(CONFIG_PACKAGE_python-rsvg), --enable-rsvg, --disable-rsvg) \
|
|
$(if $(CONFIG_PACKAGE_python-wnck), --enable-wnck, --disable-wnck) \
|
|
)
|
|
endef
|
|
|
|
MAKE_INSTALL_FLAGS += \
|
|
PYGTK_DEFSDIR="$(PKG_INSTALL_DIR)/usr/share/pygtk/2.0/defs"
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.{a,la,so} \
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0/
|
|
endef
|
|
|
|
define Package/python-gnome-desktop/install/Default
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/$(2).so \
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0/
|
|
endef
|
|
|
|
define Package/python-rsvg/install
|
|
$(call Package/python-gnome-desktop/install/Default,$(1),rsvg)
|
|
endef
|
|
|
|
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))
|
|
|