summaryrefslogtreecommitdiff
path: root/www/snownews
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-09-18 14:54:55 +0000
committerwiz <wiz@pkgsrc.org>2014-09-18 14:54:55 +0000
commit4d6448d05911426b1a5bd536c3a8abc7e405f7dd (patch)
treeb15e044d03355f516b34fa11b46d3be062b4d99a /www/snownews
parente8285c92a1e8c39329daf58aae6ce62d1cfb1466 (diff)
downloadpkgsrc-4d6448d05911426b1a5bd536c3a8abc7e405f7dd.tar.gz
Add ncursesw option. From Leonard Schmidt in PR 49211.
Bump PKGREVISION.
Diffstat (limited to 'www/snownews')
-rw-r--r--www/snownews/Makefile7
-rw-r--r--www/snownews/options.mk25
2 files changed, 29 insertions, 3 deletions
diff --git a/www/snownews/Makefile b/www/snownews/Makefile
index 5c84be4ec6b..19510826a87 100644
--- a/www/snownews/Makefile
+++ b/www/snownews/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2014/05/29 23:38:17 wiz Exp $
+# $NetBSD: Makefile,v 1.45 2014/09/18 14:54:55 wiz Exp $
DISTNAME= snownews-1.5.12
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= www
MASTER_SITES= http://kiza.kcore.de/software/snownews/download/
@@ -16,6 +16,8 @@ HAS_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= msgfmt perl
+.include "options.mk"
+
REPLACE_PERL+= configure opml2snow
CONFIG_SHELL= perl
@@ -30,7 +32,6 @@ post-configure:
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../devel/ncurses/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/snownews/options.mk b/www/snownews/options.mk
new file mode 100644
index 00000000000..47283e2de08
--- /dev/null
+++ b/www/snownews/options.mk
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.5 2014/09/18 14:54:55 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.snownews
+
+PKG_OPTIONS_REQUIRED_GROUPS= screen
+PKG_OPTIONS_GROUP.screen= ncurses ncursesw
+
+PKG_SUGGESTED_OPTIONS= ncurses
+
+.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