Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <kpango@vdaas.org>
  • Loading branch information
kpango committed Jul 17, 2024
1 parent 6b5c021 commit fa856ad
Show file tree
Hide file tree
Showing 3 changed files with 579 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Makefile.d/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,26 @@ rust/install: $(CARGO_HOME)/bin/cargo
$(CARGO_HOME)/bin/cargo:
curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs | CARGO_HOME=${CARGO_HOME} RUSTUP_HOME=${RUSTUP_HOME} sh -s -- --default-toolchain $(RUST_VERSION) -y
source "${CARGO_HOME}/env"

.PHONY: zlib/install
zlib/install: $(LIB_PATH)
curl -fsSL https://github.com/madler/zlib/releases/download/v$(ZLIB_VERSION)/zlib-$(ZLIB_VERSION).tar.gz -o $(TEMP_DIR)/zlib-$(ZLIB_VERSION).tar.gz
mkdir -p $(TEMP_DIR)/zlib
tar -xzvf $(TEMP_DIR)/zlib-$(ZLIB_VERSION).tar.gz -C $(TEMP_DIR)/zlib --strip-components 1
pushd $(TEMP_DIR)/zlib
$(TEMP_DIR)/zlib/configure --prefix=$(LIB_PATH) --static
make
make install
rm -rf $(TEMP_DIR)/zlib-$(ZLIB_VERSION).tar.gz $(TEMP_DIR)/zlib

.PHONY: hdf5/install
hdf5/install: $(LIB_PATH) \
zlib/install
mkdir -p $(TEMP_DIR)/hdf5
curl -fsSL https://github.com/HDFGroup/hdf5/releases/download/$(HDF5_VERSION)/hdf5.tar.gz -o $(TEMP_DIR)/hdf5.tar.gz
tar -xzvf $(TEMP_DIR)hdf5.tar.gz -C $(TEMP_DIR)/hdf5 --strip-components 2
pushd $(TEMP_DIR)/hdf5
$(TEMP_DIR)/hdf5/configure --enable-build-mode=production --enable-static-exec --disable-shared --prefix=$(TEMP_DIR)/hdf5 --with-zlib=$(TEMP_DIR)/hdf5/include,$(LIB_PATH) LDFLAGS="-Wl,-rpath,$(LIB_DIR)"
make check
make install
rm -rf $(TEMP_DIR)/hdf5.tar.gz $(TEMP_DIR)hdf5
Loading

0 comments on commit fa856ad

Please sign in to comment.