b2a321336c7356b512bcf752e21f03e0e3921678
[openwrt/svn-archive/archive.git] / lang / numpy / 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:=numpy
11 PKG_VERSION:=1.0.4
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://downloads.sourceforge.net/numpy/
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/numpy
19 SUBMENU:=Python
20 SECTION:=lang
21 CATEGORY:=Languages
22 TITLE:=numpy
23 URL:=http://numpy.sf.net
24 DEPENDS:=python-core
25 endef
26
27 define Package/numpy/description
28 API to GTK and glade library from python
29 endef
30
31 define Build/Compile
32 cd $(PKG_BUILD_DIR) ; $(CONFIGURE_VARS) $(MAKE_VARS) /usr/bin/python ./setup.py install --prefix="$(PKG_INSTALL_DIR)/usr"
33 sed -i "s/UCS4/UCS2/g" $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/numpy/core/multiarray.so
34 endef
35
36 define Package/numpy/install
37 mkdir -p $(1)
38 cp -r $(PKG_INSTALL_DIR)/* $(1)
39 endef
40
41 $(eval $(call BuildPackage,numpy))