pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Use the curses framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6efe55a795fb
branches:  trunk
changeset: 356767:6efe55a795fb
user:      roy <roy%pkgsrc.org@localhost>
date:      Wed Jan 04 16:13:20 2017 +0000

description:
Use the curses framework.

diffstat:

 audio/mikmod/Makefile |   4 +-
 mail/mutt/Makefile    |   3 +-
 mail/mutt/options.mk  |  52 ++++++++++++++++----------------------------------
 3 files changed, 21 insertions(+), 38 deletions(-)

diffs (115 lines):

diff -r 3deff7dcbddc -r 6efe55a795fb audio/mikmod/Makefile
--- a/audio/mikmod/Makefile     Wed Jan 04 16:08:51 2017 +0000
+++ b/audio/mikmod/Makefile     Wed Jan 04 16:13:20 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2016/11/12 07:34:34 adam Exp $
+# $NetBSD: Makefile,v 1.54 2017/01/04 16:19:33 roy Exp $
 
 DISTNAME=      mikmod-3.2.7
 CATEGORIES=    audio
@@ -13,5 +13,5 @@
 GNU_CONFIGURE=         yes
 
 .include "../../audio/libmikmod/buildlink3.mk"
-.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 3deff7dcbddc -r 6efe55a795fb mail/mutt/Makefile
--- a/mail/mutt/Makefile        Wed Jan 04 16:08:51 2017 +0000
+++ b/mail/mutt/Makefile        Wed Jan 04 16:13:20 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.184 2016/12/05 07:52:33 tron Exp $
+# $NetBSD: Makefile,v 1.185 2017/01/04 16:13:20 roy Exp $
 
 DISTNAME=              mutt-1.7.2
+PKGREVISION=           1
 CATEGORIES=            mail
 MASTER_SITES=          ftp://ftp.mutt.org/pub/mutt/
 
diff -r 3deff7dcbddc -r 6efe55a795fb mail/mutt/options.mk
--- a/mail/mutt/options.mk      Wed Jan 04 16:08:51 2017 +0000
+++ b/mail/mutt/options.mk      Wed Jan 04 16:13:20 2017 +0000
@@ -1,19 +1,34 @@
-# $NetBSD: options.mk,v 1.25 2016/11/20 21:13:46 joerg Exp $
+# $NetBSD: options.mk,v 1.26 2017/01/04 16:13:20 roy Exp $
 
 # Global and legacy options
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.mutt
 PKG_OPTIONS_REQUIRED_GROUPS=   display
-PKG_OPTIONS_GROUP.display=     slang ncurses ncursesw curses
+PKG_OPTIONS_GROUP.display=     curses wide-curses slang
 PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl
 PKG_SUPPORTED_OPTIONS+=        mutt-hcache tokyocabinet mutt-smtp
 PKG_SUPPORTED_OPTIONS+=        mutt-compressed-mbox
 PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime ssl
 # patch does not apply
 #PKG_SUGGESTED_OPTIONS+=       mutt-compressed-mbox
+PKG_OPTIONS_LEGACY_OPTS+=      ncurses:curses ncursesw:wide-curses
 
 .include "../../mk/bsd.options.mk"
 
+### curses
+###
+.if !empty(PKG_OPTIONS:Mcurses) || !empty(PKG_OPTIONS:Mwide-curses)
+.  include "../../mk/curses.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-curses=${BUILDLINK_PREFIX.curses}
+.  if !empty(CURSES_TYPE:Mcurses)
+OPSYSVARS+=                    BUILDLINK_PASSTHRU_DIRS
+BUILDLINK_PASSTHRU_DIRS.SunOS+=        /usr/xpg4
+CONFIGURE_ARGS.SunOS+=         --with-curses=/usr/xpg4
+LDFLAGS.SunOS+=                        -L/usr/xpg4/lib${LIBABISUFFIX}
+LDFLAGS.SunOS+=                        ${COMPILER_RPATH_FLAG}/usr/xpg4/lib${LIBABISUFFIX}
+.  endif
+.endif
+
 ###
 ### Slang
 ###
@@ -23,15 +38,6 @@
 .endif
 
 ###
-### ncurses
-###
-.if !empty(PKG_OPTIONS:Mncurses)
-USE_NCURSES=           yes
-.  include "../../devel/ncurses/buildlink3.mk"
-CONFIGURE_ARGS+=       --with-curses=${BUILDLINK_PREFIX.ncurses}
-.endif
-
-###
 ### SASLv2
 ###
 .if !empty(PKG_OPTIONS:Msasl)
@@ -39,30 +45,6 @@
 CONFIGURE_ARGS+=       --with-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
 .endif
 
-### curses
-###
-.if !empty(PKG_OPTIONS:Mcurses)
-.  include "../../mk/curses.buildlink3.mk"
-OPSYSVARS+=                    BUILDLINK_PASSTHRU_DIRS
-BUILDLINK_PASSTHRU_DIRS.SunOS+=        /usr/xpg4
-CONFIGURE_ARGS.SunOS+=         --with-curses=/usr/xpg4
-LDFLAGS.SunOS+=                        -L/usr/xpg4/lib${LIBABISUFFIX}
-LDFLAGS.SunOS+=                        ${COMPILER_RPATH_FLAG}/usr/xpg4/lib${LIBABISUFFIX}
-.endif
-
-###
-### ncursesw
-###
-.if !empty(PKG_OPTIONS:Mncursesw)
-.  include "../../devel/ncursesw/buildlink3.mk"
-.else
-SUBST_CLASSES+=                curse
-SUBST_MESSAGE.curse=   Fixing mutt to avoid ncursesw
-SUBST_STAGE.curse=     post-patch
-SUBST_FILES.curse=     configure
-SUBST_SED.curse=       -e 's,for lib in ncurses ncursesw,for lib in ncurses,'
-.endif
-
 ###
 ### SSL
 ###



Home | Main Index | Thread Index | Old Index