1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/lang/asis/Makefile
John Marino fc445b2e3f 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

65 lines
2.1 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= asis
PORTVERSION= 2015
CATEGORIES= lang
MASTER_SITES= http://downloads.dragonlace.net/src/
DISTNAME= ${PORTNAME}-gpl-${PORTVERSION}-src
MAINTAINER= marino@FreeBSD.org
COMMENT= GNAT implementation of Ada Semantic Interface Specification
LICENSE= GPLv2
BUILD_DEPENDS= gprbuild>=20130416:${PORTSDIR}/devel/gprbuild \
xmlada>=3.2:${PORTSDIR}/textproc/xmlada \
${GUSTATIC}:${PORTSDIR}/lang/gnat_util
RUN_DEPENDS= ${GUSTATIC}:${PORTSDIR}/lang/gnat_util
USES= ada gmake
NO_MTREE= yes
MAKE_ENV= PROCESSORS=${MAKE_JOBS_NUMBER}
GUSTATIC= ${LOCALBASE}/lib/gnat_util/libgnat_util.a
PORTDOCS= html pdf *.txt
post-extract:
@${REINPLACE_CMD} -e 's|OPSYS|ASISOPSYS|g' \
-e 's|(prefix)|(DESTDIR)$$(prefix)|g' \
${WRKSRC}/Makefile \
${WRKSRC}/Makefile.stub \
${WRKSRC}/common.gpr
@${RM} -rf ${WRKSRC}/gnat
do-build:
# This target is recreated because -j cannot be set, but
# MAKE_JOBS_UNSAFE=yes would break PROCESSORS value
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} all)
do-install:
# gprinstall seems to be malfunctioning, just install manually
${MKDIR} ${STAGEDIR}${PREFIX}/bin \
${STAGEDIR}${PREFIX}/include/asis \
${STAGEDIR}${PREFIX}/lib/asis \
${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/share/gps/plug-ins \
${STAGEDIR}${DOCSDIR}/html \
${STAGEDIR}${DOCSDIR}/pdf
${INSTALL_PROGRAM} ${WRKSRC}/tools/asistant/asistant \
${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/asis/*.ad[bs] \
${STAGEDIR}${PREFIX}/include/asis
${INSTALL_DATA} ${WRKSRC}/lib/*.ali ${STAGEDIR}${PREFIX}/lib/asis
${INSTALL_DATA} ${WRKSRC}/lib/*.a ${STAGEDIR}${PREFIX}/lib/asis
${INSTALL_DATA} ${WRKSRC}/documentation/*.html \
${STAGEDIR}${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/documentation/*.pdf \
${STAGEDIR}${DOCSDIR}/pdf
${INSTALL_DATA} ${WRKSRC}/documentation/*.txt \
${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/documentation/asis.xml \
${STAGEDIR}${PREFIX}/share/gps/plug-ins
${INSTALL_DATA} ${FILESDIR}/asis.gpr ${STAGEDIR}${PREFIX}/lib/gnat
.include <bsd.port.mk>