blob: e804fbf0977c77695fabc05e202248eee431871c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# $NetBSD: options.mk,v 1.8 2012/04/04 22:18:29 sbd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gcc44
PKG_SUPPORTED_OPTIONS= nls gcc-cpp gcc-fortran gcc-java gcc-objc #gcc-ada
PKG_SUGGESTED_OPTIONS= gcc-cpp gcc-fortran gcc-java gcc-objc
PKG_OPTIONS_LEGACY_OPTS= gcc-c++:gcc-cpp
.if ${OPSYS} == "NetBSD"
PKG_SUGGESTED_OPTIONS+= nls
.endif
PKG_OPTIONS_LEGACY_VARS+= BUILD_CXX:gcc-cpp
PKG_OPTIONS_LEGACY_VARS+= BUILD_FORTRAN:gcc-fortran
PKG_OPTIONS_LEGACY_VARS+= BUILD_JAVA:gcc-java
PKG_OPTIONS_LEGACY_VARS+= BUILD_OBJC:gcc-objc
.include "../../mk/bsd.options.mk"
###
### Native Language Support
###
.if !empty(PKG_OPTIONS:Mnls)
CONFIGURE_ARGS+= --enable-nls
USE_TOOLS+= msgfmt
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-nls
.endif
###
### Optional languages
### Ada could be added although there is a bootstrapping issue. See
### ../gcc34-ada for guidance
###
LANGS= c
.if !empty(PKG_OPTIONS:Mgcc-java)
. if empty(PKG_OPTIONS:Mgcc-cpp)
PKG_OPTIONS+= gcc-cpp
. endif
LANGS+= java
REPLACE_PYTHON= libjava/contrib/aot-compile.in
USE_TOOLS+= unzip zip:run
CONFIGURE_ARGS+= --with-system-zlib
# ${WRKSRC}/gcc-4.4.1/libjava/contrib/aotcompile.py.in stores the path to
# a 'make' program so we need to make sure we give it the installed 'make' and not
# the tool wrapped one.
CONFIGURE_ENV+= PKGSRC_MAKE=${TOOLS_PATH.gmake}
MAKE_ENV+= PKGSRC_MAKE=${TOOLS_PATH.gmake}
# fastjar-0.93 from pkgsrc/archivers/fastjar seems to trigger a build
# failure (seen on NetBSD-5.0/i386) when building java. So in case
# the fastjar package is installed, make sure the configure script
# doesn't pick it up.
CONFIGURE_ENV+= JAR=no
MAKE_ENV+= JAR=no
MAKE_ENV+= ac_cv_prog_JAR=no
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/application.mk"
.endif
.if !empty(PKG_OPTIONS:Mgcc-cpp)
LANGS+= c++
USE_TOOLS+= perl
CONFIGURE_ARGS+= --enable-__cxa_atexit
.endif
.if !empty(PKG_OPTIONS:Mgcc-fortran)
LANGS+= fortran
.endif
.if !empty(PKG_OPTIONS:Mgcc-objc)
LANGS+= objc
.endif
#.if !empty(PKG_OPTIONS:Mgcc-ada)
#LANGS+= ada
#.endif
|