Enforce the use of "ncurses" if NetBSD's "curses" library doesn't

support wgetnstr(3).
This commit is contained in:
tron 2001-10-18 05:33:34 +00:00
parent 5dd3db0a26
commit 6ea6e3b423

View file

@ -1,5 +1,4 @@
# $NetBSD: Makefile,v 1.5 2001/09/30 09:41:00 wiz Exp $
#
# $NetBSD: Makefile,v 1.6 2001/10/18 05:33:34 tron Exp $
DISTNAME= mp3info-0.8.2
PKGNAME= g${DISTNAME}
@ -14,8 +13,16 @@ COMMENT= Utility to read and modify the ID3 tags of MP3 files
CONFLICTS= mp3info-[0-9]*
USE_BUILDLINK_ONLY= yes
USE_CONFIG_WRAPPER= yes
USE_BUILDLINK_ONLY= YES
USE_CONFIG_WRAPPER= YES
.include "../../mk/bsd.prefs.mk"
HAVE_WGETNSTR!= ${GREP} -cw wgetnstr /usr/include/curses.h || ${TRUE}
.if (${HAVE_WGETNSTR} == 0)
USE_NCURSES= YES
.endif
.include "../../devel/ncurses/buildlink.mk"
.include "../../x11/gtk/buildlink.mk"