Adding md5sum checks
[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 PKG_MD5SUM:=ed4d9e653ea4ed2b68ceb28341894779
16
17 EXTRA_LDFLAGS=-L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/libiconv/lib/
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/python-gobject
22 SUBMENU:=Python
23 SECTION:=lang
24 CATEGORY:=Languages
25 TITLE:=python gobjects
26 URL:=http://www.pygtk.org/
27 DEPENDS:=python-core
28 endef
29
30 define Package/python-gobject/description
31 API to GTK and glade library from python
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR); \
36 if [ -x $(CONFIGURE_CMD) ]; then \
37 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
38 $(CONFIGURE_VARS) \
39 $(CONFIGURE_CMD) \
40 $(CONFIGURE_ARGS) ;\
41 fi \
42 )
43 endef
44
45 define Build/Compile
46 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
47 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)
52 cp -r $(PKG_INSTALL_DIR)/* $(1)
53 endef
54
55 define Package/python-gobject/install
56 mkdir -p $(1)
57 cp -r $(PKG_INSTALL_DIR)/* $(1)
58 endef
59
60 $(eval $(call BuildPackage,python-gobject))