Skip to content

Commit

Permalink
update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
suhrig committed May 28, 2022
1 parent d5ce614 commit 3796667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(STATIC_LIBS)/tsl/htrie_map.h:
$(WGET) 'https://github.com/Tessil/hat-trie/archive/v0.6.0.tar.gz' | tar -xzf - -C $(STATIC_LIBS) && \
cp -r $(STATIC_LIBS)/hat-trie-*/include/tsl $(STATIC_LIBS)
$(STATIC_LIBS)/libdeflate.a:
$(WGET) 'https://github.com/ebiggers/libdeflate/archive/v1.8.tar.gz' | tar -xzf - -C $(STATIC_LIBS) && \
$(WGET) 'https://github.com/ebiggers/libdeflate/archive/v1.11.tar.gz' | tar -xzf - -C $(STATIC_LIBS) && \
cd $(STATIC_LIBS)/libdeflate-*/ && $(MAKE) libdeflate.a && cp libdeflate.a libdeflate.h ..
$(STATIC_LIBS)/libz.a:
$(WGET) 'https://zlib.net/fossils/zlib-1.2.12.tar.gz' | tar -xzf - -C $(STATIC_LIBS) && \
Expand All @@ -36,7 +36,7 @@ $(STATIC_LIBS)/liblzma.a:
$(WGET) 'https://sourceforge.net/projects/lzmautils/files/xz-5.2.5.tar.gz' | tar -xzf - -C $(STATIC_LIBS) && \
cd $(STATIC_LIBS)/xz-*/ && ./configure && $(MAKE) && cp -r src/liblzma/.libs/liblzma.a src/liblzma/api/lzma src/liblzma/api/lzma.h ..
$(STATIC_LIBS)/libhts.a: $(STATIC_LIBS)/libdeflate.a $(STATIC_LIBS)/libz.a $(STATIC_LIBS)/libbz2.a $(STATIC_LIBS)/liblzma.a
$(WGET) 'https://github.com/samtools/htslib/releases/download/1.14/htslib-1.14.tar.bz2' | $(STATIC_LIBS)/bzip2-*/bzip2 -d -c - | tar -xf - -C $(STATIC_LIBS) && \
$(WGET) 'https://github.com/samtools/htslib/releases/download/1.15.1/htslib-1.15.1.tar.bz2' | $(STATIC_LIBS)/bzip2-*/bzip2 -d -c - | tar -xf - -C $(STATIC_LIBS) && \
cd $(STATIC_LIBS)/htslib-*/ && $(MAKE) config.h && sed -i -e 's/CURL/DEFLATE/' config.h && $(MAKE) NONCONFIGURE_OBJS="" CPPFLAGS="$(CPPFLAGS) -I.." libhts.a && cp -r libhts.a htslib ..

# cleanup routine
Expand Down

0 comments on commit 3796667

Please sign in to comment.