Credit Flac team + Andrew gui mods and Alac render formats
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / Makefile
index d771b4624d932cca7cdfd100eb3c4690271c3ba6..04d5a2e58dc452c0f9b02a09b99f447bae5d0a15 100644 (file)
@@ -20,6 +20,10 @@ ifeq ($(OBJDIR), armv8l)
 BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B arm -I binary -O elf32-littlearm\""
 endif
 
+ifeq ($(OBJDIR), armv7l)
+BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B arm -I binary -O elf32-littlearm\""
+endif
+
 ifeq ($(OBJDIR), aarch64)
 BOOTSTRAPFLAGS := -DBOOTSTRAP="\"objcopy -B aarch64 -I binary -O elf64-littleaarch64\""
 endif
@@ -117,9 +121,14 @@ $(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`
+endif
 
 $(BCXFER):     bccmdl.py bcxfer.C bcxfer.h
-       python3 < ./bccmdl.py
+       $(python) < ./bccmdl.py
        +$(MAKE) -C xfer
 
 $(OUTPUT): $(OBJS) $(BCXFER)
@@ -132,8 +141,11 @@ $(OBJDIR)/bootstrap:
 $(OBJDIR)/pngtoh: pngtoh.c
        $(CC) -O2 pngtoh.c -o $(OBJDIR)/pngtoh
 
+PNGTORAWFLAGS = $(shell pkg-config --libs libpng pkg-config --cflags libpng)
+
+
 $(OBJDIR)/pngtoraw: pngtoraw.c
-       $(CC) -O2 pngtoraw.c -o $(OBJDIR)/pngtoraw -lpng -lz
+       $(CC) -O2 pngtoraw.c -o $(OBJDIR)/pngtoraw $(PNGTORAWFLAGS) -lz
 
 clean:
        rm -rf $(OBJDIR)