summaryrefslogtreecommitdiff
path: root/lang/gnat-aux/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gnat-aux/options.mk')
-rw-r--r--lang/gnat-aux/options.mk54
1 files changed, 51 insertions, 3 deletions
diff --git a/lang/gnat-aux/options.mk b/lang/gnat-aux/options.mk
index 21ba704286b..f83c41d78db 100644
--- a/lang/gnat-aux/options.mk
+++ b/lang/gnat-aux/options.mk
@@ -1,8 +1,9 @@
-# $NetBSD: options.mk,v 1.1 2011/05/10 13:46:22 drochner Exp $
+# $NetBSD: options.mk,v 1.2 2012/01/08 11:17:07 marino Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gnat-aux
-PKG_SUPPORTED_OPTIONS= ada cxx testada testcxx testgcc
-PKG_SUGGESTED_OPTIONS= ada #cxx
+PKG_SUPPORTED_OPTIONS= ada cxx fortran objc
+PKG_SUPPORTED_OPTIONS+= testada testcxx testfortran testobjc testgcc
+PKG_SUGGESTED_OPTIONS= ada cxx fortran objc
.include "../../mk/bsd.options.mk"
@@ -13,6 +14,8 @@ PKG_SUGGESTED_OPTIONS= ada #cxx
.if !empty(PKG_OPTIONS:Mada)
LANGS+= ada
+DISTFILES+= gcc-ada-${GCC_VERSION}.tar.bz2
+APPLY_DIFFS+= ada
.endif
@@ -22,6 +25,36 @@ LANGS+= ada
.if !empty(PKG_OPTIONS:Mcxx)
LANGS+= c++
+DISTFILES+= gcc-g++-${GCC_VERSION}.tar.bz2
+APPLY_DIFFS+= cxx
+.endif
+
+
+#############################
+## ADD LANGUAGE: Fortran ##
+#############################
+
+.if empty(PKG_OPTIONS:Mfortran)
+QUADOPT= --disable-libquadmath
+.else
+LANGS+= fortran
+DISTFILES+= gcc-fortran-${GCC_VERSION}.tar.bz2
+APPLY_DIFFS+= fortran
+.if ${OPSYS} == "NetBSD"
+QUADOPT= --disable-libquadmath
+.else
+QUADOPT= --enable-libquadmath
+.endif
+.endif
+
+
+#################################
+## ADD LANGUAGE: Objective-C ##
+#################################
+
+.if !empty(PKG_OPTIONS:Mobjc)
+LANGS+= objc
+DISTFILES+= gcc-objc-${GCC_VERSION}.tar.bz2
.endif
@@ -31,6 +64,21 @@ LANGS+= c++
.if !empty(PKG_OPTIONS:Mtestada) \
|| !empty(PKG_OPTIONS:Mtestcxx) \
+ || !empty(PKG_OPTIONS:Mtestfortran) \
+ || !empty(PKG_OPTIONS:Mtestobjc) \
|| !empty(PKG_OPTIONS:Mtestgcc)
BUILD_DEPENDS+= dejagnu>=1.4:../../devel/dejagnu
+DISTFILES+= gcc-testsuite-${GCC_VERSION}.tar.bz2
+.if !empty(PKG_OPTIONS:Mtestada)
+APPLY_DIFFS+= ada-testsuite
+.endif
+.if !empty(PKG_OPTIONS:Mtestcxx)
+APPLY_DIFFS+= cxx-testsuite
+.endif
+.if !empty(PKG_OPTIONS:Mtestgcc)
+APPLY_DIFFS+= gcc-testsuite
+.endif
+.if !empty(PKG_OPTIONS:Mtestfortran)
+APPLY_DIFFS+= fortran-testsuite
+.endif
.endif