2013-04-30 11:41:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Establish Ada-capable compiler as a build dependency
|
2015-03-16 01:04:14 +00:00
|
|
|
# To change default compiler, define ADA_DEFAULT in make.conf to 5
|
2013-04-30 11:41:44 +00:00
|
|
|
#
|
|
|
|
# Feature: ada
|
|
|
|
# Usage: USES=ada
|
2016-05-27 09:54:47 +00:00
|
|
|
# Valid ARGS: 5, 6, run
|
2014-03-15 10:31:54 +00:00
|
|
|
#
|
|
|
|
# MAINTAINER: marino@FreeBSD.org
|
2013-04-30 11:41:44 +00:00
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_ADA_MK)
|
|
|
|
_INCLUDE_USES_ADA_MK= yes
|
|
|
|
|
2015-12-06 16:21:47 +00:00
|
|
|
CC= ada
|
2016-04-30 06:44:27 +00:00
|
|
|
ADAXX= gcc6 # framework default
|
2013-04-30 11:41:44 +00:00
|
|
|
|
2016-05-27 09:54:47 +00:00
|
|
|
. if ${ada_ARGS:M5}
|
2016-04-11 13:54:22 +00:00
|
|
|
ADAXX= gcc5
|
2015-12-06 16:21:47 +00:00
|
|
|
. elif ${ada_ARGS:M6}
|
|
|
|
ADAXX= gcc6
|
|
|
|
. elif defined(ADA_DEFAULT)
|
2016-05-27 09:54:47 +00:00
|
|
|
. if ${ADA_DEFAULT} == 5
|
2016-04-30 06:44:27 +00:00
|
|
|
ADAXX= gcc5
|
2015-03-16 01:04:14 +00:00
|
|
|
. endif
|
2014-03-09 21:25:46 +00:00
|
|
|
. endif
|
|
|
|
|
Ada Framework: Switch to gcc5-aux, upgrade 6 packages at once
The transition from gcc-aux to gcc5-aux in the Ada framework has been
blocked by the inability to build gtkada3 and, once resolved, GPS (due
to tight locking with compiler).
A few days ago, Adacore made their annual release of their main libre
products, include GPS. However, some products were tightly coupled with
the recent compilers, so in order to upgrade, the compiler had to be
switched and dependencies require many ports to be upgraded at once:
* lang/asis
* devel/gnatcoll
* devel/gps
* x11-toolkits/gtkada3
* www/aws
* www/aws-demos
While the version upgrades were modest in most cases (gps, gtkada3), the
amount of work put into each port was significant. There are too many
improvements to mention here. A few include the removal of dynamic
package lists and incorporating gnatcoll into gps to avoid building it
twice. A private "exp-run" was done all on all 50+ Ada ports to ensure
they still build.
Also, a new argument was added to Uses/ada.mk, "run", that pulls in the
GNAT compiler as a run depends. This was necessary for GPS that will
not launch correctly without the compiler in place.
2015-06-23 22:20:35 +00:00
|
|
|
. if ${ada_ARGS:Mrun}
|
2016-03-27 01:23:25 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/${ADAXX}-aux/bin/ada:lang/${ADAXX}-aux
|
Ada Framework: Switch to gcc5-aux, upgrade 6 packages at once
The transition from gcc-aux to gcc5-aux in the Ada framework has been
blocked by the inability to build gtkada3 and, once resolved, GPS (due
to tight locking with compiler).
A few days ago, Adacore made their annual release of their main libre
products, include GPS. However, some products were tightly coupled with
the recent compilers, so in order to upgrade, the compiler had to be
switched and dependencies require many ports to be upgraded at once:
* lang/asis
* devel/gnatcoll
* devel/gps
* x11-toolkits/gtkada3
* www/aws
* www/aws-demos
While the version upgrades were modest in most cases (gps, gtkada3), the
amount of work put into each port was significant. There are too many
improvements to mention here. A few include the removal of dynamic
package lists and incorporating gnatcoll into gps to avoid building it
twice. A private "exp-run" was done all on all 50+ Ada ports to ensure
they still build.
Also, a new argument was added to Uses/ada.mk, "run", that pulls in the
GNAT compiler as a run depends. This was necessary for GPS that will
not launch correctly without the compiler in place.
2015-06-23 22:20:35 +00:00
|
|
|
. endif
|
|
|
|
|
2016-03-27 01:23:25 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${ADAXX}-aux/bin/ada:lang/${ADAXX}-aux
|
2015-03-16 01:04:14 +00:00
|
|
|
MAKE_ENV+= PATH=${LOCALBASE}/${ADAXX}-aux/bin:${PATH} \
|
|
|
|
ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
|
|
|
|
CONFIGURE_ENV+= PATH=${LOCALBASE}/${ADAXX}-aux/bin:${PATH} \
|
|
|
|
ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
|
2013-04-30 11:41:44 +00:00
|
|
|
|
|
|
|
.endif
|