Skip to content

Commit

Permalink
use htslib 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Dec 14, 2024
1 parent bc36b63 commit 0b5f5ef
Show file tree
Hide file tree
Showing 1,118 changed files with 126,605 additions and 221,542 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: vcfppR
Title: Rapid Manipulation of the Variant Call Format (VCF)
Version: 0.6.1
Version: 0.6.2
Authors@R: c(
person("Zilong", "Li", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5859-2078")),
Expand Down
5 changes: 5 additions & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

HTSLIB_DIR="src/htslib-1.21"
echo "Configuring HTSlib in $HTSLIB_DIR"
cd $HTSLIB_DIR && ./configure && make
5 changes: 5 additions & 0 deletions configure.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

HTSLIB_DIR="src/htslib-1.21"
echo "Configuring HTSlib in $HTSLIB_DIR"
cd $HTSLIB_DIR && ./configure && make
18 changes: 2 additions & 16 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
HTSLIB_DIR='htslib-1.19.1'
HTSLIB_DIR='htslib-1.21'
PKG_CPPFLAGS = -I${HTSLIB_DIR} -I../inst/include
PKG_LIBS = ${HTSLIB_DIR}/libhts.a -fPIC -lz -lm -lbz2 -llzma -lcurl

.PHONY: all clean HTSLIB
.PHONY: all clean

all : $(SHLIB)

$(SHLIB) : HTSLIB

CC=$(shell "R CMD config CC")
CXX=$(shell "R CMD config CXX")
AR=$(shell "R CMD config AR")
RANLIB=$(shell "R CMD config RANLIB")
LDFLAGS=$(shell "R CMD config LDFLAGS")
# CFLAGS=$(shell "R CMD config CFLAGS")
# CPPFLAGS=$(shell "R CMD config CPPFLAGS")

HTSLIB:
(cd ${HTSLIB_DIR} && $(MAKE) -f Makefile.vcfppR libhts.a && cd ..)


clean:
$(RM) *.o
$(RM) *.dll
Expand Down
15 changes: 2 additions & 13 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HTSLIB_DIR=htslib-1.18
HTSLIB_DIR='htslib-1.21'
PKG_CPPFLAGS = -I${HTSLIB_DIR} -I../inst/include -D_FILE_OFFSET_BITS=64
PKG_LIBS=${HTSLIB_DIR}/libhts.a

Expand All @@ -11,21 +11,10 @@ else
PKG_CPPFLAGS += $(shell pkg-config --cflags libcurl)
endif

.PHONY: all clean HTSLIB
.PHONY: all clean

all : $(SHLIB)

$(SHLIB) : HTSLIB

# CC=$(shell "R CMD config CC")
# CXX=$(shell "R CMD config CXX")
# CPPFLAGS=$(shell "R CMD config CPPFLAGS")
# LDFLAGS=$(shell "R CMD config LDFLAGS")

HTSLIB:
cd ${HTSLIB_DIR} && $(MAKE) -f Makefile.win libhts.a && cd ..


clean:
$(RM) *.o
$(RM) *.dll
Expand Down
309 changes: 0 additions & 309 deletions src/htslib-1.18/INSTALL

This file was deleted.

Loading

0 comments on commit 0b5f5ef

Please sign in to comment.