Fix asterisk-1.4.x build.
[openwrt/svn-archive/archive.git] / lang / ipython / 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:=ipython
11 PKG_VERSION:=0.8.2
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://ipython.scipy.org/dist/
15 PKG_FIXUP:=libtool
16 PKG_MD5SUM:=fd5a1b6e518898a4aee8b8d8b428af70
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ipython
21 SUBMENU:=Python
22 SECTION:=lang
23 CATEGORY:=Languages
24 TITLE:=python bindings for dbus
25 URL:=http://ipython.scipy.org/dist/
26 endef
27
28 define Package/ipython/description
29 python bindings for dbus
30 endef
31
32 define Build/Configure
33 (cd $(PKG_BUILD_DIR); \
34 if [ -x $(CONFIGURE_CMD) ]; then \
35 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
36 $(CONFIGURE_VARS) \
37 PYTHON=/usr/bin/python \
38 $(CONFIGURE_CMD) \
39 $(CONFIGURE_ARGS) ;\
40 fi \
41 )
42 endef
43
44 define Build/Compile
45 cd $(PKG_BUILD_DIR) ; $(CONFIGURE_VARS) ./setup.py install --prefix="$(PKG_INSTALL_DIR)/usr"
46 endef
47
48 define Build/InstallDev
49 mkdir -p $(1)
50 cp -r $(PKG_INSTALL_DIR)/* $(1)
51 endef
52
53 define Package/ipython/install
54 mkdir -p $(1)
55 cp -r $(PKG_INSTALL_DIR)/* $(1)
56 endef
57
58 $(eval $(call BuildPackage,ipython))