File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -532,12 +532,9 @@ endif
532
532
533
533
# # pngquant
534
534
$(eval $(call depend,PNGQUANT,LIBLCMS LIBPNG LIBZ))
535
- $(PNGQUANT_TARGET ) : export DEP_PNG_INCLUDE = $(LIBPNG_DIR )
536
- $(PNGQUANT_TARGET ) : export DEP_Z_INCLUDE = $(LIBZ_DIR )
537
- $(PNGQUANT_TARGET ) : export LCMS2_LIB_DIR = $(LIBLCMS_DIR )
538
- ifdef IS_LINUX
539
- $(PNGQUANT_TARGET ) : export RUSTFLAGS = -C link-arg=$(XORIGIN )
540
- endif
535
+ $(PNGQUANT_TARGET ) : export OVERRIDE_BIN_DIR = $(LIBPNG_DIR ) /override-bin
536
+ $(PNGQUANT_TARGET ) : export PATH := $(OVERRIDE_BIN_DIR ) :$(PATH )
541
537
$(PNGQUANT_TARGET ) :
542
- cd $(DIR ) && cargo build --features=lcms2 --release --frozen --offline --target=$(RUST_HOST )
543
- $(call chrpath_origin,$@ )
538
+ mkdir -p $(OVERRIDE_BIN_DIR )
539
+ cd $(OVERRIDE_BIN_DIR ) && printf ' %s\n' ' #!/bin/sh' ' echo 1.5' > libpng-config && chmod +x libpng-config
540
+ cd $(DIR ) && cargo build --release --frozen --offline --target=$(RUST_HOST )
You can’t perform that action at this time.
0 commit comments