aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/htslib/0001-set-linkage.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/htslib/0001-set-linkage.patch')
-rw-r--r--vcpkg/ports/htslib/0001-set-linkage.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/htslib/0001-set-linkage.patch b/vcpkg/ports/htslib/0001-set-linkage.patch
new file mode 100644
index 0000000..066b145
--- /dev/null
+++ b/vcpkg/ports/htslib/0001-set-linkage.patch
@@ -0,0 +1,29 @@
+diff --git a/Makefile b/Makefile
+index 0bbb078..e98f287 100644
+--- a/Makefile
++++ b/Makefile
+@@ -958,11 +958,10 @@ $(srcprefix)htslib.map: libhts.so
+ rm -f $@.tmp ; \
+ fi
+
+-install: libhts.a $(BUILT_PROGRAMS) $(BUILT_PLUGINS) $(REF_CACHE_PROGRAMS) installdirs install-$(SHLIB_FLAVOUR) install-pkgconfig
++install: $(BUILT_PROGRAMS) $(BUILT_PLUGINS) installdirs install-pkgconfig
+ $(INSTALL_PROGRAM) $(BUILT_PROGRAMS) $(REF_CACHE_PROGRAMS) $(DESTDIR)$(bindir)
+ if test -n "$(BUILT_PLUGINS)"; then $(INSTALL_PROGRAM) $(BUILT_PLUGINS) $(DESTDIR)$(plugindir); fi
+ $(INSTALL_DATA) $(SRC)htslib/*.h $(DESTDIR)$(includedir)/htslib
+- $(INSTALL_DATA) libhts.a $(DESTDIR)$(libdir)/libhts.a
+ $(INSTALL_MAN) $(SRC)annot-tsv.1 $(SRC)bgzip.1 $(SRC)htsfile.1 $(SRC)tabix.1 $(DESTDIR)$(man1dir)
+ if test "x$(REF_CACHE_PROGRAMS)" != "x" ; then \
+ $(INSTALL_MAN) $(SRC)ref_cache/ref-cache.1 $(DESTDIR)$(man1dir) ; \
+@@ -970,6 +969,11 @@ install: libhts.a $(BUILT_PROGRAMS) $(BUILT_PLUGINS) $(REF_CACHE_PROGRAMS) insta
+ $(INSTALL_MAN) $(SRC)faidx.5 $(SRC)sam.5 $(SRC)vcf.5 $(DESTDIR)$(man5dir)
+ $(INSTALL_MAN) $(SRC)htslib-s3-plugin.7 $(DESTDIR)$(man7dir)
+
++install-static: install
++ $(INSTALL_DATA) libhts.a $(DESTDIR)$(libdir)/libhts.a
++
++install-dynamic: install install-$(SHLIB_FLAVOUR)
++
+ installdirs:
+ $(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir)/htslib $(DESTDIR)$(libdir) $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) $(DESTDIR)$(man7dir) $(DESTDIR)$(pkgconfigdir)
+ if test -n "$(plugindir)"; then $(INSTALL_DIR) $(DESTDIR)$(plugindir); fi