[PATCH 6/6] Add libtecla: Not building yet
Joel Sherrill
joel.sherrill at oarcorp.com
Tue Aug 25 23:02:09 UTC 2015
---
rtems/config/4.11/devel/libtecla.bset | 20 ++++++++
rtems/config/devel/libtecla-1.6.3-1.cfg | 21 ++++++++
source-builder/config/libtecla-1.cfg | 78 +++++++++++++++++++++++++++++++
3 files changed, 119 insertions(+), 0 deletions(-)
create mode 100644 rtems/config/4.11/devel/libtecla.bset
create mode 100644 rtems/config/devel/libtecla-1.6.3-1.cfg
create mode 100644 source-builder/config/libtecla-1.cfg
diff --git a/rtems/config/4.11/devel/libtecla.bset b/rtems/config/4.11/devel/libtecla.bset
new file mode 100644
index 0000000..b1dd9e7
--- /dev/null
+++ b/rtems/config/4.11/devel/libtecla.bset
@@ -0,0 +1,20 @@
+#
+# Build set for libtecla
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build libtecla.
+#
+devel/libtecla-1.6.3-1.cfg
diff --git a/rtems/config/devel/libtecla-1.6.3-1.cfg b/rtems/config/devel/libtecla-1.6.3-1.cfg
new file mode 100644
index 0000000..de38edb
--- /dev/null
+++ b/rtems/config/devel/libtecla-1.6.3-1.cfg
@@ -0,0 +1,21 @@
+#
+# libtecla
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# libjpeg Version
+#
+%define libtecla_version 1.6.3
+
+%hash md5 libtecla-%{libtecla_version}.tar.gz 90105ca19e405fb92825a90978e4ab18
+
+#
+# libjpeg Build configuration
+#
+%include %{_configdir}/libtecla-1.cfg
diff --git a/source-builder/config/libtecla-1.cfg b/source-builder/config/libtecla-1.cfg
new file mode 100644
index 0000000..79f0051
--- /dev/null
+++ b/source-builder/config/libtecla-1.cfg
@@ -0,0 +1,78 @@
+#
+# libtecla
+#
+# This configuration file configure's, make's and install's libtecla.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name: libtecla-%{libtecla_version}-%{_host}-%{release}
+Summary: libtecla is a command line editing library
+Version: %{libtecla_version}
+Release: %{release}
+URL: http://www.astro.caltech.edu/~mcs/tecla/
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# libtecla Source
+#
+%source set libtecla http://www.astro.caltech.edu/~mcs/tecla/libtecla-%{libtecla_version}.tar.gz
+
+#
+# Prepare the source code.
+#
+%prep
+ build_top=$(pwd)
+
+ # libtecla does not include version in source directory name
+ # source_dir_libtecla="libtecla-%{libtecla_version}"
+ # %source setup libtecla -q -n libtecla-%{libtecla_version}
+ source_dir_libtecla="libtecla"
+ %source setup libtecla -q -n libtecla
+ %patch setup libtecla -p1
+
+ cd ${build_top}
+
+
+#
+# Running make distclean cleans up documentation files that require
+# special tools to regenerate. Work around this problem by just
+# copying the documentation files from another directory.
+#
+%build
+ build_top=$(pwd)
+
+ %{build_directory}
+
+ mkdir -p ${build_dir}
+ cd ${build_dir}
+
+ %{host_build_flags}
+
+ ../${source_dir_libtecla}/configure \
+ --host=%{_host} \
+ --prefix=%{_prefix} \
+ --bindir=%{_bindir} \
+ --exec_prefix=%{_exec_prefix} \
+ --includedir=%{_includedir} \
+ --libdir=%{_libdir} \
+ --libexecdir=%{_libexecdir} \
+ --mandir=%{_mandir} \
+ --infodir=%{_infodir} \
+ --datadir=%{_datadir}
+
+ %{__make} %{?_smp_mflags}
+ %{__make} %{?_smp_mflags} reentrant
+
+ 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