aboutsummaryrefslogtreecommitdiffstats
path: root/devel/adacurses/Makefile
blob: b84e3fc5b9f2fa79601eb8d9229b1a87226b04d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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>