diff --git a/src/Makevars.ucrt b/src/Makevars.ucrt index 8b92273..f61647a 100644 --- a/src/Makevars.ucrt +++ b/src/Makevars.ucrt @@ -1,4 +1,9 @@ -PKG_LIBS = -ltiff -ljpeg -lz -lzstd -lwebp -llzma +ifeq (,$(shell pkg-config --version 2>/dev/null)) + LIBSHARPYUV = $(or $(and $(wildcard $(R_TOOLS_SOFT)/lib/libsharpyuv.a),-lsharpyuv),) + PKG_LIBS = -ltiff -ljpeg -lz -lzstd -lwebp $(LIBSHARPYUV) -llzma +else + PKG_LIBS = $(shell pkg-config --libs libtiff-4) +endif all: clean