2008-05-24 18:01:46 +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:=pygobject
|
2013-01-18 13:02:25 +00:00
|
|
|
PKG_VERSION:=2.21.5
|
2009-01-07 22:37:45 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2008-10-02 15:33:26 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2013-01-18 13:02:25 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.21
|
|
|
|
PKG_MD5SUM:=77ad7e8dbf13188364c9f56f907e530a
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2009-01-07 22:37:45 +00:00
|
|
|
PKG_INSTALL:=1
|
2008-05-24 18:01:46 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2010-02-24 23:13:32 +00:00
|
|
|
$(call include_mk, python-package.mk)
|
2008-10-02 15:33:26 +00:00
|
|
|
|
|
|
|
EXTRA_LDFLAGS+= \
|
2011-02-02 18:54:24 +00:00
|
|
|
-L$(ICONV_PREFIX) -L$(INTL_PREFIX)
|
2008-05-24 18:01:46 +00:00
|
|
|
|
2010-02-08 17:33:50 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2013-01-18 13:02:25 +00:00
|
|
|
CONFIGURE_ARGS += --enable-static --disable-instrospection
|
2010-02-08 17:33:50 +00:00
|
|
|
|
2008-05-24 18:01:46 +00:00
|
|
|
define Package/python-gobject
|
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2008-10-02 15:33:26 +00:00
|
|
|
TITLE:=GLib bindings for python
|
2008-05-24 18:01:46 +00:00
|
|
|
URL:=http://www.pygtk.org/
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+python-mini +glib2 +libffi
|
2008-05-24 18:01:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-gobject/description
|
2008-10-02 15:33:26 +00:00
|
|
|
GLib bindings for python
|
2008-05-24 18:01:46 +00:00
|
|
|
endef
|
|
|
|
|
2009-01-07 22:37:45 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
2013-01-18 13:02:25 +00:00
|
|
|
--with-libffi --disable-introspection \
|
2009-01-07 22:37:45 +00:00
|
|
|
)
|
2008-05-24 18:01:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/pygtk-2.0/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/pygtk-2.0/* \
|
|
|
|
$(1)/usr/include/pygtk-2.0/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
|
2009-01-07 22:37:45 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so,a,la} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
2008-10-02 15:33:26 +00:00
|
|
|
$(SED) \
|
|
|
|
"s,^\(prefix\|exec_prefix\|datadir\)=,\1=$(STAGING_DIR),g" \
|
|
|
|
$(1)/usr/lib/pkgconfig/pygobject-2.0.pc
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/pygobject/2.0/codegen
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/pygobject/2.0/codegen/*.py \
|
|
|
|
$(1)/usr/share/pygobject/2.0/codegen
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/pygobject/2.0/defs
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/pygobject/2.0/defs/* \
|
|
|
|
$(1)/usr/share/pygobject/2.0/defs
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/* \
|
|
|
|
$(2)/bin
|
|
|
|
|
|
|
|
$(SED) \
|
|
|
|
"s,^\(prefix\|datadir\)=,\1=$(STAGING_DIR),g" \
|
|
|
|
$(2)/bin/pygobject-codegen-2.0
|
2008-05-24 18:01:46 +00:00
|
|
|
endef
|
|
|
|
|
2008-05-24 18:15:42 +00:00
|
|
|
define Package/python-gobject/install
|
2009-01-07 22:37:45 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib
|
|
|
|
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/*.{pth,py} \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/*.py \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0/
|
|
|
|
|
2009-01-07 22:37:45 +00:00
|
|
|
$(foreach d,gobject gio glib, \
|
2008-10-02 15:33:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/gtk-2.0/$(d); \
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/gtk-2.0/$(d)/*.{py,so} \
|
|
|
|
$(1)$(PYTHON_PKG_DIR)/gtk-2.0/$(d); \
|
|
|
|
)
|
2008-05-24 18:01:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,python-gobject))
|