projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Credit Terje with 2 new render formats + reverse titler and blur MAX_FLT causing...
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
Makefile
diff --git
a/cinelerra-5.1/guicast/Makefile
b/cinelerra-5.1/guicast/Makefile
index 04d5a2e58dc452c0f9b02a09b99f447bae5d0a15..67116252b5febf37ff0586e19e44d7c00304f4a4 100644
(file)
--- a/
cinelerra-5.1/guicast/Makefile
+++ b/
cinelerra-5.1/guicast/Makefile
@@
-115,17
+115,28
@@
OUTPUT = $(OBJDIR)/libguicast.a
UTILS = $(OBJDIR)/bootstrap $(OBJDIR)/pngtoh $(OBJDIR)/pngtoraw
BCXFER = xfer/$(OBJDIR)/xfer.stamp
UTILS = $(OBJDIR)/bootstrap $(OBJDIR)/pngtoh $(OBJDIR)/pngtoraw
BCXFER = xfer/$(OBJDIR)/xfer.stamp
-CFLAGS += $(static_incs)
+CFLAGS += $(static_incs)
`pkg-config --cflags libpng` `pkg-config --cflags libjpeg`
$(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
$(shell echo $(OBJS) > $(OBJDIR)/objs)
all: $(OUTPUT) $(UTILS)
$(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
endif
+ifneq ($(PLATFORM), Linux)
+python = $(shell which python)
+endif
+
+ifeq ($(python),)
+python = $(shell which python3.9)
+endif
+
+ifeq ($(python),)
+python = $(shell which python3.12)
+endif
+
$(BCXFER): bccmdl.py bcxfer.C bcxfer.h
$(python) < ./bccmdl.py
$(BCXFER): bccmdl.py bcxfer.C bcxfer.h
$(python) < ./bccmdl.py