expedite: use a tar.bz2 tarball to save bandwitdh and disk space
[buildroot-gz.git] / package / python-numpy / python-numpy.mk
blob0ab58b0000354746977a97ba7cd0fc1a4532b34a
1 ################################################################################
3 # python-numpy
5 ################################################################################
7 PYTHON_NUMPY_VERSION = 1.8.0
8 PYTHON_NUMPY_SOURCE = numpy-$(PYTHON_NUMPY_VERSION).tar.gz
9 PYTHON_NUMPY_SITE = http://downloads.sourceforge.net/numpy
10 PYTHON_NUMPY_LICENSE = BSD-3c
11 PYTHON_NUMPY_LICENSE_FILES = LICENSE.txt
12 PYTHON_NUMPY_SETUP_TYPE = distutils
14 ifeq ($(BR2_PACKAGE_CLAPACK),y)
15 PYTHON_NUMPY_DEPENDENCIES += clapack
16 PYTHON_NUMPY_SITE_CFG_LIBS += blas lapack
17 endif
19 PYTHON_NUMPY_BUILD_OPTS = --fcompiler=None
21 define PYTHON_NUMPY_CONFIGURE_CMDS
22 -rm -f $(@D)/site.cfg
23 echo "[DEFAULT]" >> $(@D)/site.cfg
24 echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg
25 echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
26 echo "libraries =" $(subst $(space),$(comma),$(PYTHON_NUMPY_SITE_CFG_LIBS)) >> $(@D)/site.cfg
27 endef
29 # Some package may include few headers from NumPy, so let's install it
30 # in the staging area.
31 PYTHON_NUMPY_INSTALL_STAGING = YES
33 $(eval $(python-package))