freebsd-ports/devel/adacurses/Makefile
John Marino d0c4d21a83 Change Ada Framework foundation from gcc5-aux to gcc6-aux
GCC 6.1 was released this week.  The Ada Framework in FreeBSD ports has
been based on GCC 5.3 GNAT although GCC 6.x has been supported for awhile
via the ADA_DEFAULT option in make.conf.

Now that GCC 6 has been officially released, switch to it by default.
People can maintain the old foundation by putting "ADA_DEFAULT=5" in
/etc/make.conf.

Libraries built by one GNAT are unusable by another, so almost every Ada
port has been bumped as a result.  Noticable exceptions are dns/ironsides
which fails to build on gcc6 (thus USES=ada:5 is set) and cad/ghdl which
needs additional testing as it may require gcc5 on FreeBSD (DragonFly
uses the LLVM backend only).
2016-04-30 06:44:27 +00:00

56 lines
1.5 KiB
Makefile

# Created by: olgeni@FreeBSD.org
# $FreeBSD$
PORTNAME= adacurses
PORTVERSION= 20150808
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://invisible-island.net/AdaCurses/
DISTNAME= AdaCurses-${PORTVERSION}
MAINTAINER= marino@FreeBSD.org
COMMENT= Ada95 bindings for ncurses
LICENSE= MIT
USES= ada gmake tar:tgz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ada-include=${PREFIX}/include/adacurses \
--with-ada-objects=${PREFIX}/lib/adacurses \
--libdir=${PREFIX}/lib/adacurses \
--enable-widec
PORTDOCS= ada Ada95.html
PLIST_SUB= atic=adacurses/terminal_interface-curses
OPTIONS_DEFINE= DOCS
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSREL:R} == 11
# PR 199109 The base ncurses has suffered a regression which prevents
# adacurses from building on -CURRENT. The PR is not getting any attention
# and I'm sick of never-ending fallout messages so bring back ports ncurses
# for the FreeBSD 11 users.
USES+= ncurses:port
.else
USES+= ncurses
.endif
post-patch:
@${REINPLACE_CMD} -e '/(INSTALL_PROG)/d' -e 's|@ADAGEN_LDFLAGS@||' \
${WRKSRC}/gen/Makefile.in
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/gen/adacurses-config \
${STAGEDIR}${PREFIX}/bin/
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat
${SED} "s|@PREFIX@|${PREFIX}|g" ${FILESDIR}/adacurses.gpr.in > \
${STAGEDIR}${PREFIX}/lib/gnat/adacurses.gpr
.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_ARGS} THIS=${PORTNAME} install.html)
.endif
.include <bsd.port.mk>