summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-09-15 13:06:26 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-09-15 13:06:26 +0000
commitd345bbdb4fc0885df4b4c301bf8f77b3736b5fee (patch)
tree6051d41ca6262ca04196e534cb0c7afa6fb30026 /devel
parent- Update to 1.7 (diff)
- Covert to OptionsNG
- Remove old header lines - Add generally useful options to the global list
Notes
Notes: svn path=/head/; revision=304315
Diffstat (limited to 'devel')
-rw-r--r--devel/cross-gcc/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/devel/cross-gcc/Makefile b/devel/cross-gcc/Makefile
index 4c3d90e160a2..fd40b60ada42 100644
--- a/devel/cross-gcc/Makefile
+++ b/devel/cross-gcc/Makefile
@@ -1,9 +1,4 @@
-# New ports collection makefile for: cross-gcc
-# Date created: 2006-08-10
-# Whom: Stanislav Sedov <stas@FreeBSD.org>
-#
# $FreeBSD$
-#
PORTNAME?= gcc
PORTVERSION= 4.5.2
@@ -149,9 +144,8 @@ OURTARGET= cross # to generate a correct index line
IGNORE= you should select TGTARCH and TGTABI to build port
.endif
-OPTIONS= CXX "Enable C++ language support" on \
- OBJC "Enable Objective C support" on \
- FORTRAN "Enable Fortran support" off
+OPTIONS_DEFINE= CXX OBJC FORTRAN
+OPTIONS_DEFAULT= CXX OBJC
.include <bsd.port.pre.mk>
@@ -163,7 +157,7 @@ BROKEN= Does not link
PKG_ARGS= -v -c -${COMMENT:Q} -d ${DESCR} -f ${TMPPLIST} -p ${PREFIX} -P "`cd ${PORTSDIR}/devel/cross-binutils && ${MAKE} ${DEPENDS_ARGS} -V PKGNAME`:devel/cross-binutils" ${EXTRA_PKG_ARGS} $${_LATE_PKG_ARGS} -m ${MTREE_FILE} -o ${PKGORIGIN}
-.if !defined(WITHOUT_CXX)
+.if ${PORT_OPTIONS:MCXX}
TGTLANGS:= "${TGTLANGS},c++"
PLIST_FILES+= bin/${OURTARGET}-c++ \
bin/${OURTARGET}-g++ \
@@ -171,11 +165,11 @@ PLIST_FILES+= bin/${OURTARGET}-c++ \
${OURTARGET}/bin/g++
.endif
-.if !defined(WITHOUT_OBJC)
+.if ${PORT_OPTIONS:MOBJC}
TGTLANGS:= "${TGTLANGS},objc"
.endif
-.if defined(WITH_FORTRAN)
+.if ${PORT_OPTIONS:MFORTRAN}
TGTLANGS:= "${TGTLANGS},fortran"
PLIST_FILES+= bin/${OURTARGET}-gfortran \
${OURTARGET}/bin/gfortran