summaryrefslogtreecommitdiffstats
path: root/package/python-pillow/python-pillow.mk
diff options
context:
space:
mode:
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>2016-07-06 22:07:57 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-06 22:21:34 +0200
commit5e3b154243a7c3bb77659a3564b62e2989d59415 (patch)
tree0fedf59869b6bb08c2618b0fe525e34a8925e92b /package/python-pillow/python-pillow.mk
parentac4471d09f11231d6696995373088095409b0a0c (diff)
downloadbuildroot-5e3b154243a7c3bb77659a3564b62e2989d59415.tar.gz
buildroot-5e3b154243a7c3bb77659a3564b62e2989d59415.zip
package/python-pillow: fix wrong install step
This patch changes PYTHON_PILLOW_INSTALL_TARGET_CMDS to actually install pillow in target directory instead of host. While at it, it also fixes the version for the hash, and uses the more conventional "define ... endef" construct to define variables in python-pillow.mk. Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-pillow/python-pillow.mk')
-rw-r--r--package/python-pillow/python-pillow.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/package/python-pillow/python-pillow.mk b/package/python-pillow/python-pillow.mk
index 84d6e65d68..619c55b865 100644
--- a/package/python-pillow/python-pillow.mk
+++ b/package/python-pillow/python-pillow.mk
@@ -54,11 +54,20 @@ else
PYTHON_PILLOW_BUILD_OPTS += --disable-zlib
endif
-PYTHON_PILLOW_BUILD_CMDS = cd $(PYTHON_PILLOW_BUILDDIR); \
+define PYTHON_PILLOW_BUILD_CMDS
+ cd $(PYTHON_PILLOW_BUILDDIR); \
$(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
$(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
$(PYTHON_PILLOW_BASE_BUILD_OPTS) $(PYTHON_PILLOW_BUILD_OPTS)
+endef
-PYTHON_PILLOW_INSTALL_TARGET_CMDS = $(PYTHON_PILLOW_BUILD_CMDS) install
+define PYTHON_PILLOW_INSTALL_TARGET_CMDS
+ cd $(PYTHON_PILLOW_BUILDDIR); \
+ $(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
+ $(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
+ $(PYTHON_PILLOW_BUILD_OPTS) install \
+ $(PYTHON_PILLOW_BASE_INSTALL_TARGET_OPTS) \
+ $(PYTHON_PILLOW_INSTALL_TARGET_OPTS)
+endef
$(eval $(python-package))
OpenPOWER on IntegriCloud