1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/devel/adacurses/Makefile

45 lines
1.1 KiB
Makefile

# Created by: olgeni@FreeBSD.org
# $FreeBSD$
PORTNAME= adacurses
PORTVERSION= 20110404
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://invisible-island.net/AdaCurses/
DISTNAME= AdaCurses-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= marino@FreeBSD.org
COMMENT= Ada95 bindings for ncurses
LICENSE= MIT
USES= ada gmake ncurses:port
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ada-include=${PREFIX}/include/adacurses \
--with-ada-objects=${PREFIX}/lib/adacurses \
--libdir=${PREFIX}/lib/adacurses \
--enable-widec
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|#if A|#ifdef A|g' ${WRKSRC}/gen/gen.c
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} install.html)
.else
@${RM} ${STAGEDIR}${PREFIX}/man/man1/adacurses-config.1
.endif
.include <bsd.port.mk>