[PATCH 4/6] Add ncurses 5.9: Not building yet

Joel Sherrill joel.sherrill at oarcorp.com
Tue Aug 25 23:02:07 UTC 2015


---
 rtems/config/4.11/devel/ncurses.bset |   20 ++++++++
 rtems/config/devel/ncurses-5.9-1.cfg |   21 ++++++++
 source-builder/config/ncurses-1.cfg  |   89 ++++++++++++++++++++++++++++++++++
 3 files changed, 130 insertions(+), 0 deletions(-)
 create mode 100644 rtems/config/4.11/devel/ncurses.bset
 create mode 100644 rtems/config/devel/ncurses-5.9-1.cfg
 create mode 100644 source-builder/config/ncurses-1.cfg

diff --git a/rtems/config/4.11/devel/ncurses.bset b/rtems/config/4.11/devel/ncurses.bset
new file mode 100644
index 0000000..eba7f6e
--- /dev/null
+++ b/rtems/config/4.11/devel/ncurses.bset
@@ -0,0 +1,20 @@
+#
+# Build set for ncurses
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build ncurses.
+#
+devel/ncurses-5.9-1.cfg
diff --git a/rtems/config/devel/ncurses-5.9-1.cfg b/rtems/config/devel/ncurses-5.9-1.cfg
new file mode 100644
index 0000000..ee3bd86
--- /dev/null
+++ b/rtems/config/devel/ncurses-5.9-1.cfg
@@ -0,0 +1,21 @@
+#
+# ncurses
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# libjpeg Version
+#
+%define ncurses_version 5.9
+
+%hash md5 ncurses-%{ncurses_version}.tar.gz 8cb9c412e5f2d96bc6f459aa8c6282a1
+
+#
+# libjpeg Build configuration
+#
+%include %{_configdir}/ncurses-1.cfg
diff --git a/source-builder/config/ncurses-1.cfg b/source-builder/config/ncurses-1.cfg
new file mode 100644
index 0000000..71bd43b
--- /dev/null
+++ b/source-builder/config/ncurses-1.cfg
@@ -0,0 +1,89 @@
+#
+# ncurses
+#
+# This configuration file configure's, make's and install's ncurses.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name:      ncurses-%{ncurses_version}-%{_host}-%{release}
+Summary:   ncurses is the GNU curses library 
+Version:   %{ncurses_version}
+Release:   %{release}
+URL: 	   http://www.gnu.org/software/ncurses/
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# AVL Source
+#
+%source set ncurses ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-%{ncurses_version}.tar.gz
+
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_ncurses="ncurses-%{ncurses_version}"
+  %source setup ncurses -q -n ncurses-%{ncurses_version}
+  %patch setup ncurses -p1
+
+  cd ${build_top}
+
+
+#
+# Note on configure command:
+#   The following will work only if you have the latest ncurses version
+#   of infocmp installed before trying to build for an RTEMS target.
+#   The cf_cv_type_of_bool hack works around a bug when configuring
+#   for a cross-target.
+#
+%build
+  build_top=$(pwd)
+
+  %{build_directory}
+
+  mkdir -p ${build_dir}
+  cd ${build_dir}
+
+  %{host_build_flags}
+
+  # rtems-addon-packages also had CXX="$(CC)" before configure
+  cf_cv_type_of_bool=char TERM=xterm \
+    ../${source_dir_ncurses}/configure \
+      --host=%{_host} \
+      --prefix=%{_prefix} \
+      --bindir=%{_bindir} \
+      --exec_prefix=%{_exec_prefix} \
+      --includedir=%{_includedir} \
+      --libdir=%{_libdir} \
+      --libexecdir=%{_libexecdir} \
+      --mandir=%{_mandir} \
+      --infodir=%{_infodir} \
+      --datadir=%{_datadir} \
+      --disable-shared \
+      --disable-programs \
+      --without-ada \
+      --without-progs \
+      --without-cxx-binding \
+      --disable-sigwinch \
+      --disable-database \
+      --with-fallbacks="xterm,vt100,linux,ansi"
+
+  # There is no explicit all target
+  %{__make} %{?_smp_mflags} \
+      "TERM=xterm" \
+      "HOSTCC=gcc" "HOSTCCFLAGS=-I. -I../include" HOSTLDFLAGS=""
+
+  cd ${build_top}
+
+%install
+  build_top=$(pwd)
+
+  %{__rmdir} $SB_BUILD_ROOT
+
+  cd ${build_dir}
+  %{__make} DESTDIR=$SB_BUILD_ROOT install
+  cd ${build_top}
-- 
1.7.1




More information about the devel mailing list