rtems-4.11: Add libjpeg

This commit is contained in:
Joel Sherrill
2014-10-24 17:00:52 -05:00
parent 7c8c1d1dea
commit 4830e230ec
3 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#
# Build set for libjpeg
#
%define release 1
#
# RTEMS Version
#
%define rtems_version 4.11
#
# The RTEMS URL paths.
#
%include rtems-urls.bset
#
# Build libjpeg.
#
graphics/libjpeg-9a-1.cfg

View File

@@ -0,0 +1,21 @@
#
# NTP 4.2.6p5
#
%if %{release} == %{nil}
%define release 1
%endif
%include %{_configdir}/rtems-bsp.cfg
#
# libjpeg Version
#
%define libjpeg_version 9a
%hash md5 jpegsrc.v%{libjpeg_version}.tar.gz 3353992aecaee1805ef4109aadd433e7
#
# libjpeg Build configuration
#
%include %{_configdir}/libjpeg-1.cfg

View File

@@ -0,0 +1,70 @@
#
# libjpeg
#
# This configuration file configure's, make's and install's libjpeg.
#
%if %{release} == %{nil}
%define release 1
%endif
Name: libjpeg-v%{libjpeg_version}-%{_host}-%{release}
Summary: libjpeg is the Independent JPEG Group jpeg library
Version: %{libjpeg_version}
Release: %{release}
URL: http://www.ijg.org/
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
# NTP Source
#
%source set libjpeg http://www.ijg.org/files/jpegsrc.v%{libjpeg_version}.tar.gz
#
# Prepare the source code.
#
%prep
build_top=$(pwd)
source_dir_libjpeg="jpeg-%{libjpeg_version}"
%source setup libjpeg -q -n jpeg-%{libjpeg_version}
%patch setup libjpeg -p1
cd ${build_top}
%build
build_top=$(pwd)
%{build_directory}
mkdir -p ${build_dir}
cd ${build_dir}
%{host_build_flags}
../${source_dir_libjpeg}/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}