summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorroy <roy@pkgsrc.org>2017-01-04 15:53:56 +0000
committerroy <roy@pkgsrc.org>2017-01-04 15:53:56 +0000
commitb1beff8362adc9330e14d587334e6fcaed9d21c0 (patch)
tree6d1d0958a39a60b2f60b076054af9e85f63baff8 /www
parentb78c20ae2286d0a2889677a1140ca57e5ac24d95 (diff)
downloadpkgsrc-b1beff8362adc9330e14d587334e6fcaed9d21c0.tar.gz
Use the curses framework.
Diffstat (limited to 'www')
-rw-r--r--www/snownews/Makefile9
-rw-r--r--www/snownews/options.mk23
2 files changed, 10 insertions, 22 deletions
diff --git a/www/snownews/Makefile b/www/snownews/Makefile
index 6532aa215e9..1dad2dfb6f7 100644
--- a/www/snownews/Makefile
+++ b/www/snownews/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.50 2016/07/09 06:39:14 wiz Exp $
+# $NetBSD: Makefile,v 1.51 2017/01/04 15:53:56 roy Exp $
DISTNAME= snownews-1.5.12
-PKGREVISION= 12
+PKGREVISION= 13
CATEGORIES= www
MASTER_SITES= http://kiza.kcore.de/software/snownews/download/
@@ -16,8 +16,6 @@ HAS_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= msgfmt perl
-.include "options.mk"
-
REPLACE_PERL+= configure opml2snow
CONFIG_SHELL= perl
@@ -25,6 +23,9 @@ CONFIGURE_ARGS+= --prefix=${PREFIX}
MAKE_ENV+= EXTRA_CFLAGS=${CFLAGS:Q}
INCOMPAT_CURSES= NetBSD-[0-4].*-* #WA_BOLD, WA_REVERSE, KEY_RESIZE
+FAKE_NCURSES= yes
+
+.include "options.mk"
post-configure:
${ECHO} LOCALEPATH=${PREFIX}/${PKGLOCALEDIR}/locale >> ${WRKSRC}/platform_settings
diff --git a/www/snownews/options.mk b/www/snownews/options.mk
index 47283e2de08..fa71f3b14dc 100644
--- a/www/snownews/options.mk
+++ b/www/snownews/options.mk
@@ -1,25 +1,12 @@
-# $NetBSD: options.mk,v 1.5 2014/09/18 14:54:55 wiz Exp $
+# $NetBSD: options.mk,v 1.6 2017/01/04 15:53:56 roy Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.snownews
PKG_OPTIONS_REQUIRED_GROUPS= screen
-PKG_OPTIONS_GROUP.screen= ncurses ncursesw
+PKG_OPTIONS_GROUP.screen= curses wide-curses
+PLG_OPTIONS_LEGACY_OPTS+= ncurses:curses ncursesw:wide-curses
-PKG_SUGGESTED_OPTIONS= ncurses
+PKG_SUGGESTED_OPTIONS= curses
.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mncurses)
-USE_NCURSES= YES
-. include "../../devel/ncurses/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Mncursesw)
-LIBS+= -lncursesw
-SUBST_CLASSES+= configure
-SUBST_MESSAGE.configure= Fixing LDFLAGS for ncursesw
-SUBST_STAGE.configure= pre-configure
-SUBST_FILES.configure= configure
-SUBST_SED.configure= -e 's,-lncurses,-lncursesw,'
-. include "../../devel/ncursesw/buildlink3.mk"
-.endif
+.include "../../mk/curses.buildlink3.mk"