devel/adacurses: allow base ncurses where newer ncurses is available

This commit is contained in:
Steve Wills 2021-01-18 16:32:54 +00:00
parent 10fd6e1449
commit 2ba6e0bd2b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561928

View file

@ -13,7 +13,7 @@ COMMENT= Ada95 bindings for ncurses
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/README
USES= ada gmake pkgconfig ncurses:port tar:tgz
USES= ada gmake pkgconfig tar:tgz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ada-include=${PREFIX}/include/adacurses \
--with-ada-objects=${PREFIX}/lib/adacurses \
@ -47,4 +47,12 @@ 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>