From 683961e7634165121ec5bf0547bba183ece12908 Mon Sep 17 00:00:00 2001 From: sjmulder Date: Mon, 6 May 2019 09:00:14 +0000 Subject: sc-im: fix ncursesw link failure if not built in If not using builtin curses and the ncurses bl3 is included before ncursesw, as happens through the lua option, the ncurses bl3 sabotages -lncursesw so make sure to include ncursesw first thing. --- math/sc-im/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'math/sc-im') diff --git a/math/sc-im/Makefile b/math/sc-im/Makefile index 1014f35b2b7..ba639bbce4e 100644 --- a/math/sc-im/Makefile +++ b/math/sc-im/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2019/02/11 22:01:18 leot Exp $ +# $NetBSD: Makefile,v 1.3 2019/05/06 09:00:14 sjmulder Exp $ DISTNAME= sc-im-0.7.0 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_GITHUB:=andmarti1424/} GITHUB_TAG= v${PKGVERSION_NOREV} @@ -32,8 +32,11 @@ MAKE_FLAGS+= name=sc-im MAKE_FLAGS+= prefix=${PREFIX} MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man1 -.include "options.mk" - .include "../../devel/ncursesw/buildlink3.mk" .include "../../mk/dlopen.buildlink3.mk" + +# Include after ncursesw bl3, otherwise ncurses bl3 (non-wide), included +# as a transitive dependency of lua, sabotages the -lncurses transform. +.include "options.mk" + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3