pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/snownews Add ncursesw option. From Leonard Schmidt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/83a6306ab207
branches:  trunk
changeset: 639593:83a6306ab207
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Sep 18 14:54:55 2014 +0000

description:
Add ncursesw option. From Leonard Schmidt in PR 49211.
Bump PKGREVISION.

diffstat:

 www/snownews/Makefile   |   7 ++++---
 www/snownews/options.mk |  25 +++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 3 deletions(-)

diffs (59 lines):

diff -r 9502853c925a -r 83a6306ab207 www/snownews/Makefile
--- a/www/snownews/Makefile     Thu Sep 18 11:11:09 2014 +0000
+++ b/www/snownews/Makefile     Thu Sep 18 14:54:55 2014 +0000
@@ -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 @@
 USE_PKGLOCALEDIR=      yes
 USE_TOOLS+=            msgfmt perl
 
+.include "options.mk"
+
 REPLACE_PERL+=         configure opml2snow
 
 CONFIG_SHELL=          perl
@@ -30,7 +32,6 @@
 
 .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 -r 9502853c925a -r 83a6306ab207 www/snownews/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/snownews/options.mk   Thu Sep 18 14:54:55 2014 +0000
@@ -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



Home | Main Index | Thread Index | Old Index