[PATCH 2/6] Add libavl-1.4.0: Eliminates need to be in rtems-addon-packages

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


---
 rtems/config/4.11/devel/libavl.bset   |   20 +++++++++
 rtems/config/devel/libavl-1.4.0-1.cfg |   21 ++++++++++
 source-builder/config/libavl-1.cfg    |   71 +++++++++++++++++++++++++++++++++
 3 files changed, 112 insertions(+), 0 deletions(-)
 create mode 100644 rtems/config/4.11/devel/libavl.bset
 create mode 100644 rtems/config/devel/libavl-1.4.0-1.cfg
 create mode 100644 source-builder/config/libavl-1.cfg

diff --git a/rtems/config/4.11/devel/libavl.bset b/rtems/config/4.11/devel/libavl.bset
new file mode 100644
index 0000000..04359d6
--- /dev/null
+++ b/rtems/config/4.11/devel/libavl.bset
@@ -0,0 +1,20 @@
+#
+# Build set for libavl
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build libavl.
+#
+devel/libavl-1.4.0-1.cfg
diff --git a/rtems/config/devel/libavl-1.4.0-1.cfg b/rtems/config/devel/libavl-1.4.0-1.cfg
new file mode 100644
index 0000000..8024b63
--- /dev/null
+++ b/rtems/config/devel/libavl-1.4.0-1.cfg
@@ -0,0 +1,21 @@
+#
+# GNU AVL 1.4.0
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# libjpeg Version
+#
+%define libavl_version 1.4.0
+
+%hash md5 avl-%{libavl_version}.tar.gz 28f175eed15a6ca52f626cb04964ee12
+
+#
+# libjpeg Build configuration
+#
+%include %{_configdir}/libavl-1.cfg
diff --git a/source-builder/config/libavl-1.cfg b/source-builder/config/libavl-1.cfg
new file mode 100644
index 0000000..3a7cf26
--- /dev/null
+++ b/source-builder/config/libavl-1.cfg
@@ -0,0 +1,71 @@
+#
+# libavl
+#
+# This configuration file configure's, make's and install's libavl.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name:      libavl-%{libavl_version}-%{_host}-%{release}
+Summary:   libavl is the GNU AVL library 
+Version:   %{libavl_version}
+Release:   %{release}
+# Another useful URL is http://adtinfo.org/index.html
+URL: 	   http://savannah.gnu.org/projects/avl
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# AVL Source
+#
+%source set libavl ftp://ftp.gnu.org/pub/gnu/avl/avl-%{libavl_version}.tar.gz
+
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_libavl="avl-%{libavl_version}"
+  %source setup libavl -q -n avl-%{libavl_version}
+  %patch setup libavl -p1
+
+  cd ${build_top}
+
+%build
+  build_top=$(pwd)
+
+  %{build_directory}
+
+  mkdir -p ${build_dir}
+  cd ${build_dir}
+
+  %{host_build_flags}
+
+   ../${source_dir_libavl}/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