From 8623429f42715332bf7c681ef0d8444d59814219 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Thu, 25 Nov 2021 22:07:29 -0700 Subject: [PATCH] fix shuttle for Termux/Android too --- cinelerra-5.1/cinelerra/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile index 3fa58be7..1c10fc03 100644 --- a/cinelerra-5.1/cinelerra/Makefile +++ b/cinelerra-5.1/cinelerra/Makefile @@ -592,9 +592,16 @@ install: install-lv2ui endif ifneq ($(WANT_SHUTTLE),no) +X11_INCS := /usr/include/ +X11_INCS1 := $(shell pkg-config --cflags-only-I x11 | sed "s/-I//") + +ifneq ($(X11_INCS1),) +X11_INCS := $(X11_INCS1) +endif + $(OBJDIR)/shuttle.o: shuttle.C shuttle_keys.h -shuttle_keys.h: /usr/include/X11/keysymdef.h - sed -n < /usr/include/X11/keysymdef.h > shuttle_keys.h -f shuttle.sed +shuttle_keys.h: $(X11_INCS)/X11/keysymdef.h + sed -n $(X11_INCS)/X11/keysymdef.h > shuttle_keys.h -f shuttle.sed endif $(OBJDIR)/pluginlv2gui.o: pluginlv2gui.C -- 2.26.2