xkbdata: Add missing dependency to xkbcomp
[openwrt/svn-archive/archive.git] / lang / numpy / 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:=numpy
11 PKG_VERSION:=1.0.4
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/numpy
15 PKG_MD5SUM:=8f011e9d7697da570efaac61c51725e0
16
17 include $(INCLUDE_DIR)/package.mk
18 $(call include_mk, python-package.mk)
19
20 define Package/numpy
21 SUBMENU:=Python
22 SECTION:=lang
23 CATEGORY:=Languages
24 TITLE:=numpy
25 URL:=http://numpy.sf.net
26 DEPENDS:=+python-mini @TARGET_x86||TARGET_olpc||TARGET_uml @BROKEN
27 endef
28
29 define Package/numpy/description
30 API to GTK and glade library from python
31 endef
32
33 define Build/Compile
34 cd $(PKG_BUILD_DIR) ; $(CONFIGURE_VARS) $(MAKE_VARS) python2.5 ./setup.py install --prefix="$(PKG_INSTALL_DIR)/usr"
35 endef
36
37 define Package/numpy/install
38 $(INSTALL_DIR) $(1)
39 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
40 endef
41
42 define Require/python25-dev
43 [ -e /usr/include/python2.5/pyconfig.h ]
44 endef
45
46 $(eval $(call Require,python25-dev, \
47 Please install Python 2.5 (including development headers and libraries) \
48 ))
49
50 $(eval $(call BuildPackage,numpy))
51