<html><body><div><br> rtems/config/4.11/graphics/libpng.bset | 20 ++++++++++<br> rtems/config/graphics/libpng-1.5.22-1.cfg | 22 +++++++++++<br> source-builder/config/libpng-1.cfg | 63 +++++++++++++++++++++++++++++++<br> 3 files changed, 105 insertions(+)<br> create mode 100644 rtems/config/4.11/graphics/libpng.bset<br> create mode 100644 rtems/config/graphics/libpng-1.5.22-1.cfg<br> create mode 100644 source-builder/config/libpng-1.cfg<br><br>diff --git a/rtems/config/4.11/graphics/libpng.bset b/rtems/config/4.11/graphics/libpng.bset<br>new file mode 100644<br>index 0000000..4df0e03<br>--- /dev/null<br>+++ b/rtems/config/4.11/graphics/libpng.bset<br>@@ -0,0 +1,20 @@<br>+#<br>+# Build set for libpng<br>+#<br>+<br>+%define release 1<br>+<br>+#<br>+# RTEMS Version<br>+#<br>+%define rtems_version 4.11<br>+<br>+#<br>+# The RTEMS URL paths.<br>+#<br>+%include rtems-urls.bset<br>+<br>+#<br>+# Build libpng.<br>+#<br>+graphics/libpng-1.5.22-1.cfg<br>diff --git a/rtems/config/graphics/libpng-1.5.22-1.cfg b/rtems/config/graphics/libpng-1.5.22-1.cfg<br>new file mode 100644<br>index 0000000..48313b7<br>--- /dev/null<br>+++ b/rtems/config/graphics/libpng-1.5.22-1.cfg<br>@@ -0,0 +1,22 @@<br>+#<br>+# libpng 1.5.22<br>+#<br>+<br>+%if %{release} == %{nil}<br>+ %define release 1<br>+%endif<br>+<br>+%include %{_configdir}/rtems-bsp.cfg<br>+<br>+#<br>+# libpng Version<br>+#<br>+%define libpng_version 1.5.22<br>+%define libpng_src_dir_revision 15<br>+<br>+%hash md5 libpng-%{libpng_version}.tar.gz 8d10c6267c8da60454ef703c4cb11876<br>+<br>+#<br>+# libpng Build configuration<br>+#<br>+%include %{_configdir}/libpng-1.cfg<br>diff --git a/source-builder/config/libpng-1.cfg b/source-builder/config/libpng-1.cfg<br>new file mode 100644<br>index 0000000..ba03605<br>--- /dev/null<br>+++ b/source-builder/config/libpng-1.cfg<br>@@ -0,0 +1,63 @@<br>+#<br>+# libpng<br>+#<br>+# This configuration file configure's, make's and install's libpng.<br>+#<br>+<br>+%if %{release} == %{nil}<br>+%define release 1<br>+%endif<br>+<br>+Name: libpng-v%{libpng_version}-%{_host}-%{release}<br>+Summary: libpng is the official PNG reference library<br>+Version: %{libpng_version}<br>+Release: %{release}<br>+URL: http://www.libpng.org/<br>+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)<br>+<br>+#<br>+# libpng Source<br>+#<br>+%source set libpng ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng%{libpng_src_dir_revision}/libpng-%{libpng_version}.tar.gz<br>+<br>+#<br>+# Prepare the source code.<br>+#<br>+%prep<br>+ build_top=$(pwd)<br>+<br>+ source_dir_libpng="libpng-%{libpng_version}"<br>+ %source setup libpng -q -n libpng-%{libpng_version}<br>+ %patch setup libpng -p1<br>+<br>+ cd ${build_top}<br>+<br>+%build<br>+ build_top=$(pwd)<br>+<br>+ %{build_directory}<br>+<br>+ mkdir -p ${build_dir}<br>+ cd ${build_dir}<br>+<br>+ %{host_build_flags}<br>+<br>+ ../${source_dir_libpng}/configure \<br>+ --host=%{_host} \<br>+ --prefix=%{_prefix} \<br>+ --includedir=%{_includedir} \<br>+ --libdir=%{_libdir} \<br>+ --disable-shared<br>+<br>+ %{__make} %{?_smp_mflags} all<br>+<br>+ cd ${build_top}<br>+<br>+%install<br>+ build_top=$(pwd)<br>+<br>+ %{__rmdir} $SB_BUILD_ROOT<br>+<br>+ cd ${build_dir}<br>+ %{__make} DESTDIR=$SB_BUILD_ROOT install<br>+ cd ${build_top}<br>-- <br>2.1.0<br><br></div></body></html>