1 # $NetBSD: options.mk,v 1.2 2012/01/08 11:17:07 marino Exp $
3 PKG_OPTIONS_VAR
= PKG_OPTIONS.gcc-aux
4 PKG_SUPPORTED_OPTIONS
= ada
cxx fortran objc testsuite nls static
5 PKG_SUGGESTED_OPTIONS
= ada
cxx fortran objc
7 .if
${OPSYS} == "NetBSD"
8 PKG_SUGGESTED_OPTIONS
+= static
11 .
include "../../mk/bsd.options.mk"
14 #########################
15 ## ADD LANGUAGE: Ada ##
16 #########################
18 .if
!empty
(PKG_OPTIONS
:Mada
)
24 #########################
25 ## ADD LANGUAGE: C++ ##
26 #########################
28 .if
!empty
(PKG_OPTIONS
:Mcxx
)
34 #############################
35 ## ADD LANGUAGE: Fortran ##
36 #############################
38 .if empty
(PKG_OPTIONS
:Mfortran
)
39 EXTRA_CONFARGS
+= --disable-libquadmath
43 .if
${OPSYS} == "NetBSD"
44 EXTRA_CONFARGS
+= --disable-libquadmath
46 EXTRA_CONFARGS
+= --enable-libquadmath
51 #################################
52 ## ADD LANGUAGE: Objective-C ##
53 #################################
55 .if
!empty
(PKG_OPTIONS
:Mobjc
)
60 #########################
61 ## TESTSUITE SUPPORT ##
62 #########################
64 .if
!empty
(PKG_OPTIONS
:Mtestsuite
)
65 BUILD_DEPENDS
+= dejagnu
>=1.4:..
/..
/devel
/dejagnu
66 APPLY_DIFFS
+= ada-testsuite
67 APPLY_DIFFS
+= cxx-testsuite
68 APPLY_DIFFS
+= gcc-testsuite
69 APPLY_DIFFS
+= fortran-testsuite
73 #################################
74 ## NATIONAL LANGUAGE SUPPORT ##
75 #################################
77 .if
!empty
(PKG_OPTIONS
:Mnls
)
79 EXTRA_CONFARGS
+= --enable-nls
80 .
include "../../devel/gettext-lib/buildlink3.mk"
82 EXTRA_CONFARGS
+= --disable-nls
86 ###############################
87 ## STATICALLY BUILT OPTION ##
88 ###############################
90 # NetBSD must be built statically to support dl_iterate_phdr
91 # error handling. The base compiler doesn't support despite it although
92 # NetBSD's realtime linker supports dl_iterate_phdr
93 # Setting the option by default on NetBSD is cosmetic; regardless of
94 # setting, NetBSD will always be built statically.
96 # The "static" option is handled in the post-extract phase.