blob: c609aa7ee004d97c207b3c95b46f2b1d68c8f77c (
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
53
54
55
56
57
58
59
60
61
|
PORTNAME= adacurses
DISTVERSION= 20211021
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.invisible-island.net/AdaCurses/
DISTNAME= AdaCurses-${DISTVERSION}
MAINTAINER= fluffy@FreeBSD.org
COMMENT= Ada95 bindings for ncurses
WWW= https://invisible-island.net/ncurses/ncurses-Ada95.html
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/README
#BUILD_DEPENDS= gsed:textproc/gsed
#BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed
USES= ada autoreconf gmake pkgconfig 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
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.options.mk>
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1300079
USES+= ncurses
.else
USES+= ncurses:port
.endif
.include <bsd.port.mk>
|