pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Introduce GFORTRAN_VERSION, pick which ver...
details: https://anonhg.NetBSD.org/pkgsrc/rev/134bcfd09193
branches: trunk
changeset: 352312:134bcfd09193
user: maya <maya%pkgsrc.org@localhost>
date: Mon Sep 12 12:18:13 2016 +0000
description:
Introduce GFORTRAN_VERSION, pick which version of gfortran is used.
modified patch from Rin Okuyama
PR pkg/50722: do not hardcode lang/gcc48 in gfortran.mk
"looks ok, needs docs" - wiz
"it'll do for now, ideally I'd like something more robust and possibly
integrate into gcc.mk's path selection" - jperkin
diffstat:
mk/compiler/gfortran.mk | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r bad910f4692e -r 134bcfd09193 mk/compiler/gfortran.mk
--- a/mk/compiler/gfortran.mk Mon Sep 12 11:04:54 2016 +0000
+++ b/mk/compiler/gfortran.mk Mon Sep 12 12:18:13 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gfortran.mk,v 1.8 2015/11/25 13:05:47 jperkin Exp $
+# $NetBSD: gfortran.mk,v 1.9 2016/09/12 12:18:13 maya Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -40,7 +40,9 @@
.include "../../mk/bsd.prefs.mk"
-.if !empty(PKGPATH:Mlang/gcc48) || !empty(PKGPATH:Mdevel/patch) || \
+GFORTRAN_VERSION?= 48
+
+.if !empty(PKGPATH:Mlang/gcc${GFORTRAN_VERSION}) || !empty(PKGPATH:Mdevel/patch) || \
!empty(PKGPATH:Mdevel/libtool-base)
IGNORE_GFORTRAN= yes
MAKEFLAGS+= IGNORE_GFORTRAN=yes
@@ -68,7 +70,7 @@
.endif
.if !empty(_USE_GFORTRAN:M[yY][eE][sS])
-_GFORTRANBASE= ${LOCALBASE}/gcc48
+_GFORTRANBASE= ${LOCALBASE}/gcc${GFORTRAN_VERSION}
FC= gfortran
_GFORTRAN_DIR= ${WRKDIR}/.gfortran
@@ -89,8 +91,8 @@
. endif
# Add the dependency on gfortran.
-BUILDLINK_DEPMETHOD.gcc48= full
-. include "../../lang/gcc48/buildlink3.mk"
+BUILDLINK_DEPMETHOD.gcc${GFORTRAN_VERSION}= full
+. include "../../lang/gcc${GFORTRAN_VERSION}/buildlink3.mk"
. if defined(GFORTRAN_DIR) && !empty(GFORTRAN_DIR)
PKGSRC_MAKE_ENV+= GFORTRAN_DIR=${GFORTRAN_DIR:Q}
Home |
Main Index |
Thread Index |
Old Index