Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2018 17:55:02 +0000 (UTC)
From:      "Jason W. Bacon" <jwb@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472560 - in head/biology/bedtools: . files
Message-ID:  <201806161755.w5GHt2mA001795@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806161755.w5GHt2mA001795>