dd1a908b314e08a7312b215a603d071280c9a712
[openwrt/svn-archive/archive.git] / lang / ipython / Makefile
1 #
2 # Copyright (C) 2008-2009 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:=ipython
25 URL:=http://ipython.scipy.org/dist/
26 endef
27
28 define Package/ipython/description
29 An enhanced interactive Python shell from the SciPy project
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 $(INSTALL_DIR) $(1)
50 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
51 endef
52
53 define Package/ipython/install
54 $(INSTALL_DIR) $(1)
55 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
56 endef
57
58 $(eval $(call BuildPackage,ipython))