summaryrefslogtreecommitdiffstats
path: root/devel/adacurses/Makefile
blob: 7e75a4ba9cbe2219a766302219af36dfd19d229e (plain)
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
45
46
47
48
49
50
51
52
# Created by: olgeni@FreeBSD.org
# $FreeBSD$

PORTNAME=	adacurses
PORTVERSION=	20150808
PORTREVISION=	4
CATEGORIES=	devel
MASTER_SITES=	ftp://invisible-island.net/AdaCurses/
DISTNAME=	AdaCurses-${PORTVERSION}

MAINTAINER=	freebsd.contact@marino.st
COMMENT=	Ada95 bindings for ncurses

LICENSE=	MIT

USES=		ada gmake pkgconfig ncurses:port tar:tgz
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-ada-include=${PREFIX}/include/adacurses \
		--with-ada-objects=${PREFIX}/lib/adacurses \
		--with-curses-dir=${NCURSESBASE} \
		--libdir=${PREFIX}/lib/adacurses \
		--enable-widec
PORTDOCS=	ada Ada95.html
PLIST_SUB=	atic=adacurses/terminal_interface-curses

OPTIONS_DEFINE=	DOCS

MAKE_JOBS_UNSAFE=	yes

post-patch:
	@${REINPLACE_CMD} -e '/(INSTALL_PROG)/d' -e 's|@ADAGEN_LDFLAGS@||' \
		${WRKSRC}/gen/Makefile.in
	@${REINPLACE_CMD} -e '/pragma Linker_Options/d' \
		${WRKSRC}/gen/terminal_interface-curses.ads.m4 \
		${WRKSRC}/gen/terminal_interface-curses-menus.ads.m4 \
		${WRKSRC}/gen/terminal_interface-curses-forms.ads.m4 \
		${WRKSRC}/gen/terminal_interface-curses-panels.ads.m4
	@${REINPLACE_CMD} -e 's|@LIBS@|@LIBS@ -lmenu -lform -lpanel|' \
		${WRKSRC}/samples/Makefile.in

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/gen/adacurses-config \
		${STAGEDIR}${PREFIX}/bin/
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat
	${SED} "s|@PREFIX@|${NCURSESBASE}|g" ${FILESDIR}/adacurses.gpr.in > \
		${STAGEDIR}${PREFIX}/lib/gnat/adacurses.gpr

do-install-DOCS-on:
	(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} \
		${MAKE_CMD} ${MAKE_ARGS} THIS=${PORTNAME} install.html)

.include <bsd.port.mk>
OpenPOWER on IntegriCloud