--- Makefile.orig 2021-03-20 15:53:14 UTC +++ Makefile @@ -53,13 +53,14 @@ man5dir = $(mandir)/man5 man7dir = $(mandir)/man7 pkgconfigdir= $(prefix)/libdata/pkgconfig -MKDIR_P = mkdir -p -INSTALL = install -p -INSTALL_DATA = $(INSTALL) -m 644 -INSTALL_DIR = $(MKDIR_P) -m 755 -INSTALL_LIB = $(INSTALL_DATA) -INSTALL_MAN = $(INSTALL_DATA) -INSTALL_PROGRAM = $(INSTALL) +# Use ports BSD_INSTALL_PROGRAM to strip if WITH_DEBUG is not set +MKDIR_P = mkdir -p +INSTALL = install -p +INSTALL_DATA = ${BSD_INSTALL_DATA} +INSTALL_DIR = $(MKDIR_P) +INSTALL_LIB = ${BSD_INSTALL_LIB} +INSTALL_MAN = ${BSD_INSTALL_MAN} +INSTALL_PROGRAM = ${BSD_INSTALL_PROGRAM} # Set by config.mk if plugins are enabled plugindir = @@ -102,7 +103,7 @@ BUILT_THRASH_PROGRAMS = \ test/thrash_threads6 \ test/thrash_threads7 -all: lib-static lib-shared $(BUILT_PROGRAMS) plugins $(BUILT_TEST_PROGRAMS) \ +all: lib-static lib-shared $(BUILT_PROGRAMS) plugins \ htslib_static.mk htslib-uninstalled.pc ALL_CPPFLAGS = -I. $(CPPFLAGS)