svn commit: r472560 - in head/biology/bedtools: . files
Jason W. Bacon
jwb at FreeBSD.org
Sat Jun 16 17:55:03 UTC 2018
Author: jwb
Date: Sat Jun 16 17:55:01 2018
New Revision: 472560
URL: https://svnweb.freebsd.org/changeset/ports/472560
Log:
biology/bedtools: Fix Makefile to respect PREFIX
Approved by: jrm (mentor)
Differential Revision: https://reviews.freebsd.org/D15851
Modified:
head/biology/bedtools/Makefile
head/biology/bedtools/files/patch-Makefile
Modified: head/biology/bedtools/Makefile
==============================================================================
--- head/biology/bedtools/Makefile Sat Jun 16 17:44:32 2018 (r472559)
+++ head/biology/bedtools/Makefile Sat Jun 16 17:55:01 2018 (r472560)
@@ -3,6 +3,7 @@
PORTNAME= bedtools
DISTVERSIONPREFIX= v
DISTVERSION= 2.27.1
+PORTREVISION= 1
CATEGORIES= biology
MAINTAINER= jwb at FreeBSD.org
Modified: head/biology/bedtools/files/patch-Makefile
==============================================================================
--- head/biology/bedtools/files/patch-Makefile Sat Jun 16 17:44:32 2018 (r472559)
+++ head/biology/bedtools/files/patch-Makefile Sat Jun 16 17:55:01 2018 (r472560)
@@ -24,6 +24,15 @@
endif
# If the user has specified to do so, tell the compile to use rand() (instead of mt19937).
+@@ -33,7 +33,7 @@ endif
+ export LIBS = -lz
+ export BT_ROOT = src/utils/BamTools/
+
+-prefix ?= /usr/local
++PREFIX ?= /usr/local
+
+ SUBDIRS = $(SRC_DIR)/annotateBed \
+ $(SRC_DIR)/bamToBed \
@@ -143,8 +143,8 @@ INCLUDES = -I$(SRC_DIR)/utils/bedFile \
all: print_banner $(OBJ_DIR) $(BIN_DIR) autoversion $(UTIL_SUBDIRS) $(SUBDIRS)
@@ -35,6 +44,18 @@
@echo "done."
@echo "- Creating executables for old CLI."
+@@ -156,9 +156,9 @@ all: print_banner $(OBJ_DIR) $(BIN_DIR)
+ .PHONY: all
+
+ install: all
+- mkdir -p $(DESTDIR)$(prefix)/bin
++ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ for file in bin/* ; do \
+- cp -f $$file $(DESTDIR)$(prefix)/bin; \
++ cp -f $$file $(DESTDIR)$(PREFIX)/bin; \
+ done
+
+ print_banner:
@@ -193,7 +193,7 @@ clean:
.PHONY: clean
More information about the svn-ports-all
mailing list