a951e28cf7
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12072 3c298f89-4303-0410-b956-a3cf2f4a3e73
62 lines
1.5 KiB
Makefile
62 lines
1.5 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:=pygobject
|
|
PKG_VERSION:=2.14.0
|
|
PKG_RELEASE:=1
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.14
|
|
PKG_MD5SUM:=ed4d9e653ea4ed2b68ceb28341894779
|
|
PKG_BUILD_DEP:=python
|
|
|
|
EXTRA_LDFLAGS=-L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/python-gobject
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=python gobjects
|
|
URL:=http://www.pygtk.org/
|
|
DEPENDS:=python-core +glib2
|
|
endef
|
|
|
|
define Package/python-gobject/description
|
|
API to GTK and glade library from python
|
|
endef
|
|
|
|
define Build/Configure
|
|
(cd $(PKG_BUILD_DIR); \
|
|
if [ -x $(CONFIGURE_CMD) ]; then \
|
|
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
|
|
$(CONFIGURE_VARS) \
|
|
$(CONFIGURE_CMD) \
|
|
$(CONFIGURE_ARGS) ;\
|
|
fi \
|
|
)
|
|
endef
|
|
|
|
define Build/Compile
|
|
cd $(PKG_BUILD_DIR)/gobject ; gcc -I$(STAGING_DIR)/usr/lib/glib-2.0/include/ -I$(STAGING_DIR)/usr/include/glib-2.0/ generate-constants.c -o generate-constants
|
|
cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
mkdir -p $(1)
|
|
cp -r $(PKG_INSTALL_DIR)/* $(1)
|
|
endef
|
|
|
|
define Package/python-gobject/install
|
|
mkdir -p $(1)
|
|
cp -r $(PKG_INSTALL_DIR)/* $(1)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,python-gobject))
|