[PATCH 6/6] RSB: add nxlib bset

QIAO YANG yangqiao0505 at me.com
Sun Jul 19 20:50:26 UTC 2015


---
 rtems/config/4.11/graphics/nxlib.bset      | 20 ++++++++++
 rtems/config/graphics/nxlib-0.47-dev-1.cfg | 19 +++++++++
 source-builder/config/nxlib-1.cfg          | 62 ++++++++++++++++++++++++++++++
 3 files changed, 101 insertions(+)
 create mode 100644 rtems/config/4.11/graphics/nxlib.bset
 create mode 100644 rtems/config/graphics/nxlib-0.47-dev-1.cfg
 create mode 100644 source-builder/config/nxlib-1.cfg

diff --git a/rtems/config/4.11/graphics/nxlib.bset b/rtems/config/4.11/graphics/nxlib.bset
new file mode 100644
index 0000000..a80fb0e
--- /dev/null
+++ b/rtems/config/4.11/graphics/nxlib.bset
@@ -0,0 +1,20 @@
+#
+# Build set for nxlib
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build nxlib.
+#
+graphics/nxlib-0.47-dev-1.cfg
diff --git a/rtems/config/graphics/nxlib-0.47-dev-1.cfg b/rtems/config/graphics/nxlib-0.47-dev-1.cfg
new file mode 100644
index 0000000..deed54e
--- /dev/null
+++ b/rtems/config/graphics/nxlib-0.47-dev-1.cfg
@@ -0,0 +1,19 @@
+#
+# nxlib 0.47
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# nxlib Version
+#
+%define nxlib_version 0.47-dev
+
+#
+# nxlib Build configuration
+#
+%include %{_configdir}/nxlib-1.cfg
diff --git a/source-builder/config/nxlib-1.cfg b/source-builder/config/nxlib-1.cfg
new file mode 100644
index 0000000..0323ee8
--- /dev/null
+++ b/source-builder/config/nxlib-1.cfg
@@ -0,0 +1,62 @@
+#
+# nxlib
+#
+# This configuration file configure's, make's and install's nxlib.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name:      nxlib-v%{nxlib_version}-%{_host}-%{release}
+Summary:   nxlib is a wrapper library that provides closer compatibility to the Xlib API for Nano-X
+Version:   %{nxlib_version}
+Release:   %{release}
+URL:     http://www.microwindows.org/
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# nxlib Source
+#
+%source set nxlib git://github.com/alex-sever-h/nxlib.git
+
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_nxlib="nxlib"
+  %source setup nxlib -q -n nxlib
+
+  cd ${build_top}
+
+#
+# Build the source code.
+# The configure should be run in the source dir
+#
+%build
+  build_top=$(pwd)
+
+  %{build_directory}
+
+  mkdir -p ${build_dir}
+  cd ${build_dir}
+  cp -r ${build_top}/${source_dir_nxlib}/* .
+
+  export RTEMS_MAKEFILE_PATH=%{_exec_prefix}
+
+  make -f Makefile.rtems
+
+  cd ${build_top}
+
+%install
+  build_top=$(pwd)
+
+  %{__rmdir} $SB_BUILD_ROOT
+
+  cd ${build_dir}
+  mkdir -p $SB_BUILD_ROOT/%{_includedir}/X11
+  mkdir -p $SB_BUILD_ROOT/%{_libdir}
+  cp -r X11/*.h $SB_BUILD_ROOT/%{_includedir}/X11
+  cp    libX11.a $SB_BUILD_ROOT/%{_libdir}
-- 
2.1.0



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20150719/1a565f7d/attachment-0001.html>


More information about the devel mailing list