Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / gcc-aux / options.mk
blob9471c92cec090ad9b33c04e4bc97f9b4822118f6
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
9 .endif
11 .include "../../mk/bsd.options.mk"
14 #########################
15 ## ADD LANGUAGE: Ada ##
16 #########################
18 .if !empty(PKG_OPTIONS:Mada)
19 LANGS+= ada
20 APPLY_DIFFS+= ada
21 .endif
24 #########################
25 ## ADD LANGUAGE: C++ ##
26 #########################
28 .if !empty(PKG_OPTIONS:Mcxx)
29 LANGS+= c++
30 APPLY_DIFFS+= cxx
31 .endif
34 #############################
35 ## ADD LANGUAGE: Fortran ##
36 #############################
38 .if empty(PKG_OPTIONS:Mfortran)
39 EXTRA_CONFARGS+= --disable-libquadmath
40 .else
41 LANGS+= fortran
42 APPLY_DIFFS+= fortran
43 .if ${OPSYS} == "NetBSD"
44 EXTRA_CONFARGS+= --disable-libquadmath
45 .else
46 EXTRA_CONFARGS+= --enable-libquadmath
47 .endif
48 .endif
51 #################################
52 ## ADD LANGUAGE: Objective-C ##
53 #################################
55 .if !empty(PKG_OPTIONS:Mobjc)
56 LANGS+= objc
57 .endif
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
70 .endif
73 #################################
74 ## NATIONAL LANGUAGE SUPPORT ##
75 #################################
77 .if !empty(PKG_OPTIONS:Mnls)
78 USE_TOOLS+= msgfmt
79 EXTRA_CONFARGS+= --enable-nls
80 .include "../../devel/gettext-lib/buildlink3.mk"
81 .else
82 EXTRA_CONFARGS+= --disable-nls
83 .endif
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.