2016-09-30 15:16:59 +02:00
|
|
|
# $NetBSD: options.mk,v 1.13 2016/09/30 13:16:59 sevan Exp $
|
2009-10-24 22:15:05 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gcc44
|
2012-04-13 13:01:32 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= gcc-inplace-math nls gcc-c++ gcc-fortran gcc-java gcc-objc #gcc-ada
|
2016-09-30 15:16:59 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= gcc-c++ gcc-fortran gcc-objc
|
|
|
|
# gcc-java was dropped from PKG_SUGGESTED_OPTIONS to spare legacy systems attempting bulkbuilds
|
|
|
|
# For example on Darwin/PowerPC this option adds another 24 hours to build time on a G4.
|
2016-02-25 15:42:55 +01:00
|
|
|
|
|
|
|
PKG_SUGGESTED_OPTIONS.NetBSD+= nls
|
|
|
|
PKG_SUGGESTED_OPTIONS.SunOS+= gcc-inplace-math
|
2009-10-24 22:15:05 +02:00
|
|
|
|
2012-04-08 07:04:36 +02:00
|
|
|
PKG_OPTIONS_LEGACY_VARS+= BUILD_CXX:gcc-c++
|
2011-07-13 15:13:43 +02:00
|
|
|
PKG_OPTIONS_LEGACY_VARS+= BUILD_FORTRAN:gcc-fortran
|
|
|
|
PKG_OPTIONS_LEGACY_VARS+= BUILD_JAVA:gcc-java
|
|
|
|
PKG_OPTIONS_LEGACY_VARS+= BUILD_OBJC:gcc-objc
|
2011-07-12 20:05:58 +02:00
|
|
|
|
2009-10-24 22:15:05 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2012-04-13 13:01:32 +02:00
|
|
|
###
|
|
|
|
### Build math libraries in place
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mgcc-inplace-math)
|
|
|
|
.include "../../devel/gmp/inplace.mk"
|
|
|
|
.include "../../math/mpfr/inplace.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-gmp=${BUILDLINK_PREFIX.gmp}
|
|
|
|
CONFIGURE_ARGS+= --with-mpfr=${BUILDLINK_PREFIX.mpfr}
|
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
|
|
.include "../../math/mpfr/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2009-10-24 22:15:05 +02:00
|
|
|
###
|
|
|
|
### Native Language Support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mnls)
|
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2011-04-14 21:38:13 +02:00
|
|
|
USE_TOOLS+= msgfmt
|
2012-04-13 12:35:38 +02:00
|
|
|
MAKE_ENV+= ICONVPREFIX=${BUILDLINK_PREFIX.iconv}
|
2009-10-24 22:15:05 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
.endif
|
2011-07-12 20:05:58 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### Optional languages
|
|
|
|
### Ada could be added although there is a bootstrapping issue. See
|
|
|
|
### ../gcc34-ada for guidance
|
|
|
|
###
|
|
|
|
|
2011-07-13 15:25:17 +02:00
|
|
|
LANGS= c
|
2011-07-12 20:05:58 +02:00
|
|
|
|
2011-07-13 15:13:43 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgcc-java)
|
2012-04-08 07:04:36 +02:00
|
|
|
. if empty(PKG_OPTIONS:Mgcc-c++)
|
|
|
|
PKG_OPTIONS+= gcc-c++
|
2011-07-12 20:05:58 +02:00
|
|
|
. endif
|
2011-07-13 15:25:17 +02:00
|
|
|
|
|
|
|
LANGS+= java
|
|
|
|
REPLACE_PYTHON= libjava/contrib/aot-compile.in
|
|
|
|
|
2012-01-14 03:09:35 +01:00
|
|
|
USE_TOOLS+= unzip zip:run
|
2011-07-13 15:25:17 +02:00
|
|
|
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"
|
2011-07-12 20:05:58 +02:00
|
|
|
.endif
|
|
|
|
|
2012-04-08 07:04:36 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgcc-c++)
|
2011-07-13 15:25:17 +02:00
|
|
|
LANGS+= c++
|
|
|
|
USE_TOOLS+= perl
|
|
|
|
CONFIGURE_ARGS+= --enable-__cxa_atexit
|
2011-07-12 20:05:58 +02:00
|
|
|
.endif
|
|
|
|
|
2011-07-13 15:13:43 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgcc-fortran)
|
2011-07-13 15:25:17 +02:00
|
|
|
LANGS+= fortran
|
2011-07-12 20:05:58 +02:00
|
|
|
.endif
|
|
|
|
|
2011-07-13 15:13:43 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mgcc-objc)
|
2011-07-13 15:25:17 +02:00
|
|
|
LANGS+= objc
|
2011-07-12 20:05:58 +02:00
|
|
|
.endif
|
|
|
|
|
2011-07-13 15:13:43 +02:00
|
|
|
#.if !empty(PKG_OPTIONS:Mgcc-ada)
|
2011-07-13 15:25:17 +02:00
|
|
|
#LANGS+= ada
|
2011-07-12 20:05:58 +02:00
|
|
|
#.endif
|