diff options
author | Andres Mejia <mcitadel@gmail.com> | 2011-07-24 18:09:13 -0400 |
---|---|---|
committer | Andres Mejia <mcitadel@gmail.com> | 2011-07-24 18:10:24 -0400 |
commit | 3327798fcd7c5e2c500cd57e97014de0cd757b42 (patch) | |
tree | 5e67d7f6cb30398b18ead4f554c525fd394aabc4 /lib | |
parent | 353b00bffad385bfeca94b3961bbda259bc099b2 (diff) |
Attempt to find PIL with external python first before building our own.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/addons/script.module.pil/Makefile.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/addons/script.module.pil/Makefile.in b/lib/addons/script.module.pil/Makefile.in index 6ffe579aca..f1202ff377 100644 --- a/lib/addons/script.module.pil/Makefile.in +++ b/lib/addons/script.module.pil/Makefile.in @@ -17,12 +17,15 @@ else PYTHON=@PYTHON@ endif +NO_SYSTEM_PIL=$(shell $(PYTHON) -m Image >/dev/null 2>&1 || echo "1") + DESTDIR=@abs_top_srcdir@/addons/script.module.pil/lib/PIL CLEAN_FILES=$(ARCHIVE) $(SOURCE) $(DESTDIR) all: $(DESTDIR) +ifeq (1,$(NO_SYSTEM_PIL)) $(ARCHIVE): $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) @@ -33,6 +36,10 @@ $(SOURCE): $(ARCHIVE) $(DESTDIR): $(SOURCE) -rm -rf $(DESTDIR) pushd $(SOURCE) && $(PYTHON) setup.py build --build-lib $(DESTDIR); popd +else +$(DESTDIR): + @true +endif include ../../../Makefile.include |