Switch from napa to curl

Instead of using 127 deps brought by napa just to download the one dependency we actually care about, just use curl & tar directly from Makefile.
This commit is contained in:
Ingvar Stepanyan
2020-07-30 12:31:20 +01:00
committed by Ingvar Stepanyan
parent b69dc4c7f4
commit 1a26057452
9 changed files with 26 additions and 3455 deletions

View File

@@ -1,3 +1,4 @@
CODEC_URL := https://github.com/ImageOptim/libimagequant/archive/2.12.1.tar.gz
CODEC_DIR := node_modules/libimagequant
CODEC_OUT_RELATIVE := libimagequant.a
CODEC_OUT := $(addprefix $(CODEC_DIR)/, $(CODEC_OUT_RELATIVE))
@@ -28,6 +29,12 @@ $(CODEC_DIR)/config.mk: $(CODEC_DIR)/configure
cd $(CODEC_DIR) && ./configure \
--disable-sse
$(CODEC_DIR)/configure: $(CODEC_DIR)
$(CODEC_DIR):
mkdir -p $@
curl -sL $(CODEC_URL) | tar xz --strip 1 -C $@
clean:
$(RM) $(OUT_JS) $(OUT_WASM)
$(MAKE) -C $(CODEC_DIR) clean

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,6 @@
{
"name": "imagequant",
"scripts": {
"install": "napa",
"build": "../build-cpp.sh"
},
"napa": {
"libimagequant": "ImageOptim/libimagequant#2.12.1"
},
"devDependencies": {
"napa": "3.0.0"
}
}