X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2FMakefile;h=354b40b2fb9493b7470f96130ccc070edddccb3e;hb=cb36bca7007d514ffabb46ded2cdfed53ad3fe76;hp=d771b4624d932cca7cdfd100eb3c4690271c3ba6;hpb=91ee11963ec5a35880e6d715e722fb489b538577;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/Makefile b/cinelerra-5.1/guicast/Makefile index d771b462..354b40b2 100644 --- a/cinelerra-5.1/guicast/Makefile +++ b/cinelerra-5.1/guicast/Makefile @@ -117,9 +117,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 +137,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)