From owner-svn-ports-head@freebsd.org Mon Jan 11 17:39:52 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E9DAD4E0C11; Mon, 11 Jan 2021 17:39:52 +0000 (UTC) (envelope-from jwb@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DF1Dm6HMxz4ZR1; Mon, 11 Jan 2021 17:39:52 +0000 (UTC) (envelope-from jwb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BC3EA1E981; Mon, 11 Jan 2021 17:39:52 +0000 (UTC) (envelope-from jwb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10BHdqdk057250; Mon, 11 Jan 2021 17:39:52 GMT (envelope-from jwb@FreeBSD.org) Received: (from jwb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10BHdqsu057248; Mon, 11 Jan 2021 17:39:52 GMT (envelope-from jwb@FreeBSD.org) Message-Id: <202101111739.10BHdqsu057248@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jwb set sender to jwb@FreeBSD.org using -f From: "Jason W. Bacon" Date: Mon, 11 Jan 2021 17:39:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r561235 - in head/biology/star: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jwb X-SVN-Commit-Paths: in head/biology/star: . files X-SVN-Commit-Revision: 561235 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2021 17:39:53 -0000 Author: jwb Date: Mon Jan 11 17:39:52 2021 New Revision: 561235 URL: https://svnweb.freebsd.org/changeset/ports/561235 Log: biology/star: Drop dependency on gcc Replace compiler:openmp with compiler:c++11-lang and localbase PR: port/247753, ports/252379 Modified: head/biology/star/Makefile head/biology/star/files/patch-Makefile (contents, props changed) Modified: head/biology/star/Makefile ============================================================================== --- head/biology/star/Makefile Mon Jan 11 17:27:30 2021 (r561234) +++ head/biology/star/Makefile Mon Jan 11 17:39:52 2021 (r561235) @@ -2,6 +2,7 @@ PORTNAME= STAR DISTVERSION= 2.7.3a +PORTREVISION= 1 CATEGORIES= biology PKGNAMEPREFIX= rna- @@ -14,7 +15,7 @@ LICENSE_FILE= ${WRKDIR}/STAR-${DISTVERSION}/LICENSE # 64-bit only, needs 16+ GiB RAM for typical eukaryotic genome NOT_FOR_ARCHS= i386 powerpc -USES= compiler:openmp gmake +USES= compiler:c++11-lang gmake USE_GITHUB= yes GH_ACCOUNT= alexdobin @@ -22,14 +23,7 @@ WRKSRC_SUBDIR= source PLIST_FILES= bin/STAR -.include - -# Force newer compiler on platforms using GCC 4.2 as base -.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42 -USE_GCC= yes -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/STAR ${STAGEDIR}${PREFIX}/bin -.include +.include Modified: head/biology/star/files/patch-Makefile ============================================================================== --- head/biology/star/files/patch-Makefile Mon Jan 11 17:27:30 2021 (r561234) +++ head/biology/star/files/patch-Makefile Mon Jan 11 17:39:52 2021 (r561235) @@ -1,17 +1,23 @@ ---- Makefile.orig 2019-03-28 20:48:16 UTC +--- Makefile.orig 2019-10-08 19:10:51 UTC +++ Makefile -@@ -20,11 +20,11 @@ LDFLAGS_gdb := $(LDFLAGS_shared) +@@ -20,11 +20,16 @@ LDFLAGS_gdb := $(LDFLAGS_shared) COMPTIMEPLACE := -D'COMPILATION_TIME_PLACE="$(shell echo `date` $(HOSTNAME):`pwd`)"' -CXXFLAGS_common := -pipe -std=c++11 -Wall -Wextra -fopenmp $(COMPTIMEPLACE) -CXXFLAGS_main := -O3 $(CXXFLAGS_common) -+CXXFLAGS_common := -std=c++11 -Wall -Wextra -fopenmp $(COMPTIMEPLACE) -+CXXFLAGS_main += $(CXXFLAGS_common) - CXXFLAGS_gdb := -O0 -g $(CXXFLAGS_common) +-CXXFLAGS_gdb := -O0 -g $(CXXFLAGS_common) ++# Defaults, overridden by make arguments or environment ++CXXFLAGS ?= -pipe -O3 -Wall -Wextra ++CFLAGS ?= -pipe -O3 -Wall -Wextra -CFLAGS := -O3 -pipe -Wall -Wextra $(CFLAGS) -+CFLAGS += -Wall -Wextra ++# Unconditionally set essential flags ++CXXFLAGS_common := -std=c++11 -fopenmp $(COMPTIMEPLACE) ++CXXFLAGS_main += $(CXXFLAGS_common) ++ ++# -O or -O2 should work fine with gdb as well ++CXXFLAGS_gdb := -O0 -g $(CXXFLAGS_common) ##########################################################################################################