# Created by: olgeni@FreeBSD.org # $FreeBSD: head/devel/adacurses/Makefile 414332 2016-04-30 06:44:27Z marino $ 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 .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