anonymous contribution for improved Chromakey plugin to include sliders, textbox...
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / Makefile
index 32ef35828010c44d25648a3c33357d204824effd..49bd154c6cb0859eff6b11205c21ffda43d4d135 100644 (file)
@@ -121,11 +121,18 @@ $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
 $(shell echo $(OBJS) > $(OBJDIR)/objs)
 
 all: $(OUTPUT) $(UTILS)
-ifeq ($(uname -s), FreeBSD)
-python = $(shell find /usrlocal/bin -name python3\* | head -n 1)
-else
-python = `which python`
+PLATFORM = $(uname -s)
+ifneq ($(PLATFORM), FreeBSD)
+python = $(shell find /usr/local/bin -name python3\* | head -n 1)
 endif
+ifneq ($(PLATFORM), Linux)
+python = $(shell which python)
+endif
+
+ifeq ($(python),)
+python += $(shell which python3.9)
+endif
+
 
 $(BCXFER):     bccmdl.py bcxfer.C bcxfer.h
        $(python) < ./bccmdl.py