diff options
author | tijl <tijl@FreeBSD.org> | 2014-02-17 01:15:31 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-02-17 01:15:31 +0800 |
commit | f86cbfadd2dbfab1dc1ea72e5084a23c10b1dc6c (patch) | |
tree | 49e521faa408bc4bd163bfb0febf91e262772c1c /Mk | |
parent | e04e533cf1bc01e44ad69d14d5c6c205e25bfe3a (diff) | |
download | freebsd-ports-gnome-f86cbfadd2dbfab1dc1ea72e5084a23c10b1dc6c.tar.gz freebsd-ports-gnome-f86cbfadd2dbfab1dc1ea72e5084a23c10b1dc6c.tar.zst freebsd-ports-gnome-f86cbfadd2dbfab1dc1ea72e5084a23c10b1dc6c.zip |
Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most cases
USE_GCC=yes has been omitted though.
Remove USE_FORTRAN handling from bsd.port.mk and bsd.gcc.mk.
Minor cleanups in some ports like USE_GMAKE, NOPORTDOCS,...
Exp-run: bdrewery
Approved by: portmgr (bdrewery)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/cran.mk | 2 | ||||
-rw-r--r-- | Mk/Uses/fortran.mk | 5 | ||||
-rw-r--r-- | Mk/bsd.gcc.mk | 50 | ||||
-rw-r--r-- | Mk/bsd.octave.mk | 3 | ||||
-rw-r--r-- | Mk/bsd.port.mk | 2 |
5 files changed, 7 insertions, 55 deletions
diff --git a/Mk/Uses/cran.mk b/Mk/Uses/cran.mk index 4684214bfb91..860a774c0cc0 100644 --- a/Mk/Uses/cran.mk +++ b/Mk/Uses/cran.mk @@ -30,7 +30,7 @@ MASTER_SITE_CRAN_ARCHIVE+= ${MASTER_SITE_CRAN:S,$,Archive/${PORTNAME}/,} MASTER_SITES?= ${MASTER_SITE_CRAN} ${MASTER_SITE_CRAN_ARCHIVE} -USE_FORTRAN= yes +USES+= fortran BUILD_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R RUN_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R diff --git a/Mk/Uses/fortran.mk b/Mk/Uses/fortran.mk index 80253e08808d..579bec0182cb 100644 --- a/Mk/Uses/fortran.mk +++ b/Mk/Uses/fortran.mk @@ -23,6 +23,7 @@ USE_BINUTILS= yes F77= gfortran${_GCC_VER} FC= gfortran${_GCC_VER} FFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} +FCFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} LDFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \ -L${LOCALBASE}/lib/gcc${_GCC_VER} .elif ${fortran_ARGS} == ifort @@ -34,7 +35,7 @@ FC= ${LOCALBASE}/intel_fc_80/bin/ifort IGNORE= USES=fortran: invalid arguments: ${fortran_ARGS} .endif -CONFIGURE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" -MAKE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" +CONFIGURE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" FCFLAGS="${FCFLAGS}" +MAKE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" FCFLAGS="${FCFLAGS}" .endif diff --git a/Mk/bsd.gcc.mk b/Mk/bsd.gcc.mk index b1fabd8aa862..b9a43e4df3d9 100644 --- a/Mk/bsd.gcc.mk +++ b/Mk/bsd.gcc.mk @@ -7,8 +7,7 @@ # # To request the use of a current version of GCC, specify USE_GCC=yes in # your port/system configuration. This is the preferred use of USE_GCC. -# It defines a canonical, default version of GCC. The same version of -# GCC is also implied by USE_FORTRAN=yes. +# It defines a canonical, default version of GCC. # # USE_GCC=any is similar, except that it also accepts the old GCC 4.2- # based system compiler in older versions of FreeBSD. @@ -18,9 +17,6 @@ # do so by specifying USE_GCC=X.Y+ which requests at least GCC version # X.Y. To request a specific version omit the trailing + sign. # -# Use of a Fortran compiler is declared by the USE_FORTRAN knob, not -# USE_GCC. -# # Examples: # USE_GCC= yes # port requires a current version of GCC # # (4.6 as of today, subject to change). @@ -28,15 +24,6 @@ # USE_GCC= 4.8+ # port requires GCC 4.8 or later. # USE_GCC= 4.8 # port requires GCC 4.8. # -# If your port needs a Fortran compiler, please specify that with the -# USE_FORTRAN= knob. Here is the list of options for that knob: -# -# USE_FORTRAN= yes # use gfortran46 (lang/gcc46) -# USE_FORTRAN= ifort # use the Intel compiler (lang/ifc) -# -# Due to object file incompatiblity between Fortran compilers, we strongly -# recommend to use only one of them on any system. -# # If you are wondering what your port exactly does, use "make test-gcc" # to see some debugging. # @@ -81,34 +68,6 @@ _GCCVERSION_${v}_V= ${j} . endfor .endfor -# bsd.gcc.mk can also be used for primarily requesting a Fortran compiler. -# If we are using GCC we still define whatever we'd usually do for C and -# C++ as well. - -.if defined (USE_FORTRAN) - -# The default case, with a current lang/gcc port. -. if ${USE_FORTRAN} == yes -_USE_GCC:= ${GCC_DEFAULT_VERSION} -FC:= gfortran${GCC_DEFAULT_V} -F77:= gfortran${GCC_DEFAULT_V} - -# Intel Fortran compiler from lang/ifc. -. elif ${USE_FORTRAN} == ifort -BUILD_DEPENDS+= ${LOCALBASE}/intel_fc_80/bin/ifort:${PORTSDIR}/lang/ifc -RUN_DEPENDS+= ${LOCALBASE}/intel_fc_80/bin/ifort:${PORTSDIR}/lang/ifc -FC:= ${LOCALBASE}/intel_fc_80/bin/ifort -F77:= ${LOCALBASE}/intel_fc_80/bin/ifort - -. else -IGNORE= specifies unknown value "${USE_FORTRAN}" for USE_FORTRAN -. endif - -CONFIGURE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" -MAKE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" -.endif - - .if defined(USE_GCC) && !defined(FORCE_BASE_CC_FOR_TESTING) . if ${USE_GCC} == any @@ -201,11 +160,6 @@ _GCC_RUNTIME:= ${LOCALBASE}/lib/gcc${V} CFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} CXXFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} LDFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} -L${_GCC_RUNTIME} -. if defined (USE_FORTRAN) -. if ${USE_FORTRAN} == yes -FFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} -. endif -. endif # The following is for the sakes of some ports which use this without # ever telling us; to be fixed. _GCC_BUILD_DEPENDS:= ${_GCC_PORT_DEPENDS} @@ -234,7 +188,6 @@ USE_BINUTILS= yes test-gcc: @echo USE_GCC=${USE_GCC} - @echo USE_FORTRAN=${USE_FORTRAN} .if defined(IGNORE) @echo "IGNORE: ${IGNORE}" .else @@ -255,7 +208,6 @@ test-gcc: @echo Using GCC version ${_USE_GCC} .endif @echo CC=${CC} - CXX=${CXX} - CPP=${CPP} - CFLAGS=\"${CFLAGS}\" - @echo F77=${F77} - FC=${FC} - FFLAGS=\"${FFLAGS}\" @echo LDFLAGS=\"${LDFLAGS}\" @echo "BUILD_DEPENDS=${BUILD_DEPENDS}" @echo "RUN_DEPENDS=${RUN_DEPENDS}" diff --git a/Mk/bsd.octave.mk b/Mk/bsd.octave.mk index a656f189273d..a71e61c37537 100644 --- a/Mk/bsd.octave.mk +++ b/Mk/bsd.octave.mk @@ -21,8 +21,7 @@ RUN_DEPENDS+= octave:${PORTSDIR}/math/octave \ ${LOCALBASE}/libexec/octave/load-octave-pkg:${PORTSDIR}/math/octave-forge-base LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre -USE_FORTRAN= yes -USES+= gmake +USES+= fortran gmake DIST_SUBDIR= octave-forge OCTAVE_PKGNAME= ${PORTNAME:S/octave-forge-//} diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index dcdac836f75c..00e7305af2f9 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1712,7 +1712,7 @@ EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip EXTRACT_DEPENDS+= unmakeself:${PORTSDIR}/archivers/unmakeself .endif -.if defined(USE_GCC) || defined(USE_FORTRAN) +.if defined(USE_GCC) .include "${PORTSDIR}/Mk/bsd.gcc.mk" .endif |