[PATCH 3/6] Add GSL 1.16: Removes need to be in rtems-addon-packages

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


---
 rtems/config/4.11/devel/gsl.bset  |   20 ++++++++++
 rtems/config/devel/gsl-1.16-1.cfg |   21 +++++++++++
 source-builder/config/gsl-1.cfg   |   70 +++++++++++++++++++++++++++++++++++++
 3 files changed, 111 insertions(+), 0 deletions(-)
 create mode 100644 rtems/config/4.11/devel/gsl.bset
 create mode 100644 rtems/config/devel/gsl-1.16-1.cfg
 create mode 100644 source-builder/config/gsl-1.cfg

diff --git a/rtems/config/4.11/devel/gsl.bset b/rtems/config/4.11/devel/gsl.bset
new file mode 100644
index 0000000..4eed6b5
--- /dev/null
+++ b/rtems/config/4.11/devel/gsl.bset
@@ -0,0 +1,20 @@
+#
+# Build set for GNU Scientific Library
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build gsl.
+#
+devel/gsl-1.16-1.cfg
diff --git a/rtems/config/devel/gsl-1.16-1.cfg b/rtems/config/devel/gsl-1.16-1.cfg
new file mode 100644
index 0000000..7e3c309
--- /dev/null
+++ b/rtems/config/devel/gsl-1.16-1.cfg
@@ -0,0 +1,21 @@
+#
+# GNU Scientific Library
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# libjpeg Version
+#
+%define gsl_version 1.16
+
+%hash md5 gsl-%{gsl_version}.tar.gz e49a664db13d81c968415cd53f62bc8b
+
+#
+# libjpeg Build configuration
+#
+%include %{_configdir}/gsl-1.cfg
diff --git a/source-builder/config/gsl-1.cfg b/source-builder/config/gsl-1.cfg
new file mode 100644
index 0000000..840dd61
--- /dev/null
+++ b/source-builder/config/gsl-1.cfg
@@ -0,0 +1,70 @@
+#
+# GNU Scientific Library
+#
+# This configuration file configure's, make's and install's gsl.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name:      gsl-%{gsl_version}-%{_host}-%{release}
+Summary:   gsl is the GNU Scientific library 
+Version:   %{gsl_version}
+Release:   %{release}
+URL: 	   http://www.gnu.org/software/gsl/
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# NTP Source
+#
+%source set gsl ftp://ftp.gnu.org/pub/gnu/gsl/gsl-%{gsl_version}.tar.gz
+
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_gsl="gsl-%{gsl_version}"
+  %source setup gsl -q -n gsl-%{gsl_version}
+  %patch setup gsl -p1
+
+  cd ${build_top}
+
+%build
+  build_top=$(pwd)
+
+  %{build_directory}
+
+  mkdir -p ${build_dir}
+  cd ${build_dir}
+
+  %{host_build_flags}
+
+   ../${source_dir_gsl}/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
+
+  %{__make} %{?_smp_mflags} all
+
+  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