[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/11] gnu: readline: support mingw.
From: |
Jan Nieuwenhuizen |
Subject: |
[PATCH 11/11] gnu: readline: support mingw. |
Date: |
Tue, 9 Aug 2016 08:41:39 +0200 |
* gnu/packages/patches/readline-6.3-mingw.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/readline.scm (readline): Support mingw.
---
gnu/packages/readline.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/readline.scm b/gnu/packages/readline.scm
index 169a738..2df22dd 100644
--- a/gnu/packages/readline.scm
+++ b/gnu/packages/readline.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <address@hidden>
;;; Copyright © 2016 Efraim Flashner <address@hidden>
+;;; Copyright © 2016 Jan Nieuwenhuizen <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -24,7 +25,8 @@
#:use-module (gnu packages perl)
#:use-module (guix packages)
#:use-module (guix download)
- #:use-module (guix build-system gnu))
+ #:use-module (guix build-system gnu)
+ #:use-module (guix utils))
(define-public readline
(let ((post-install-phase
@@ -61,8 +63,18 @@
;; cross-compiling, so provide the correct answer.
,@(if (%current-target-system)
'("bash_cv_wcwidth_broken=no")
+ '())
+ ;; MinGW: ncurses provides the termcap api.
+ ,@(if (mingw-target?)
+ '("bash_cv_termcap_lib=ncurses")
'()))
+ #:make-flags (list ,@(if (mingw-target?)
+ ;; MinGW: termcap in ncurses
+ ;; some SIG_* #defined in _POSIX
+ '("TERMCAP_LIB=-lncurses"
+ "CPPFLAGS=-D_POSIX")
+ '()))
#:phases (alist-cons-after
'install 'post-install
,post-install-phase
--
2.9.2
- Re: [PATCH 07/11] gnu: ncurses: support mingw., (continued)
Re: [PATCH 07/11] gnu: ncurses: support mingw., Mark H Weaver, 2016/08/14
[PATCH 09/11] gnu: libtool: support cross-libtool mingw., Jan Nieuwenhuizen, 2016/08/09
[PATCH 10/11] gnu: ncurses: build mingw with libtool., Jan Nieuwenhuizen, 2016/08/09
[PATCH 11/11] gnu: readline: support mingw.,
Jan Nieuwenhuizen <=
Re: mingw guile.exe cross build patch series v9, Andy Wingo, 2016/08/09