typo
[openwrt/svn-archive/archive.git] / lang / pygobject / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pygobject
11 PKG_VERSION:=2.14.0
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.14
15
16 EXTRA_LDFLAGS=-L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/python-gobject
21 SUBMENU:=Python
22 SECTION:=lang
23 CATEGORY:=Languages
24 TITLE:=python gobjects
25 URL:=http://www.pygtk.org/
26 DEPENDS:=python-core
27 endef
28
29 define Package/python-gobject/description
30 API to GTK and glade library from python
31 endef
32
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR); \
35 if [ -x $(CONFIGURE_CMD) ]; then \
36 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
37 $(CONFIGURE_VARS) \
38 $(CONFIGURE_CMD) \
39 $(CONFIGURE_ARGS) ;\
40 fi \
41 )
42 endef
43
44 define Build/Compile
45 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
46 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
47 endef
48
49 define Build/InstallDev
50 mkdir -p $(1)
51 cp -r $(PKG_INSTALL_DIR)/* $(1)
52 endef
53
54 define Package/python-gobject/install
55 mkdir -p $(1)
56 cp -r $(PKG_INSTALL_DIR)/* $(1)
57 endef
58
59 $(eval $(call BuildPackage,python-gobject))