File tree Expand file tree Collapse file tree 3 files changed +26
-15
lines changed Expand file tree Collapse file tree 3 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 1
1
Package: vcfppR
2
2
Title: Rapid Manipulation of the Variant Call Format (VCF)
3
- Version: 0.7.4
3
+ Version: 0.7.5
4
4
Authors@R: c(
5
5
person("Zilong", "Li", , "
[email protected] ", role = c("aut", "cre"),
6
6
comment = c(ORCID = "0000-0001-5859-2078")),
Original file line number Diff line number Diff line change
1
+ # vcfppR 0.7.5
2
+ * fix issue #14 to handle libdeflate dependency on linux
3
+
4
+ # vcfppR 0.7.4
5
+ * fix issue #13 to speedup setRegion
6
+
7
+ # vcfppR 0.7.3
8
+ * enable libdeflate on linux
9
+
1
10
# vcfppR 0.7.2
2
11
* make ` htslib ` available for including and linking by other packages
3
12
Original file line number Diff line number Diff line change 4
4
set -e
5
5
6
6
HTSLIB_DIR=" htslib-1.21"
7
- SRC_MAKEVAR=" src/Makevars"
8
- echo " Create Makevar file"
9
- echo " PKG_CPPFLAGS=-I${HTSLIB_DIR} -I../inst/include" > $SRC_MAKEVAR
10
-
11
- if [ " $( uname) " = " Darwin" ]; then
12
- echo " PKG_LIBS=${HTSLIB_DIR} /libhts.a -lz -lm -lbz2 -llzma -lcurl" >> $SRC_MAKEVAR
13
- else
14
- echo " PKG_LIBS=${HTSLIB_DIR} /libhts.a -ldeflate -lz -lm -lbz2 -llzma -lcurl" >> $SRC_MAKEVAR
15
- fi
16
7
17
8
echo " Configuring HTSlib in $HTSLIB_DIR "
18
9
cd src/$HTSLIB_DIR
19
10
# # copy file instead of symbolic linking
20
11
cp htscodecs_bundled.mk htscodecs.mk
21
- if [ " $( uname) " = " Darwin" ]; then
22
- ./configure --without-libdeflate CFLAGS=" -O2 -fPIC"
23
- else
24
- ./configure --with-libdeflate CFLAGS=" -O2 -fPIC"
25
- fi
12
+ ./configure CFLAGS=" -O2 -fPIC"
13
+
14
+ hasdeflate=" no"
15
+ if grep -wq " #define HAVE_LIBDEFLATE 1" config.h; then
16
+ hasdeflate=" yes"
17
+ fi
26
18
27
19
make libhts.a
28
20
21
+ echo " Create Makevar file"
22
+ cd ../../
23
+ SRC_MAKEVAR=" src/Makevars"
24
+ echo " PKG_CPPFLAGS=-I${HTSLIB_DIR} -I../inst/include" > $SRC_MAKEVAR
25
+
26
+ if [ $hasdeflate = " no" ]; then
27
+ echo " PKG_LIBS=${HTSLIB_DIR} /libhts.a -lz -lm -lbz2 -llzma -lcurl" >> $SRC_MAKEVAR
28
+ else
29
+ echo " PKG_LIBS=${HTSLIB_DIR} /libhts.a -ldeflate -lz -lm -lbz2 -llzma -lcurl" >> $SRC_MAKEVAR
30
+ fi
You can’t perform that action at this time.
0 commit comments