mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
rtems-4.11: Add libjpeg
This commit is contained in:
20
rtems/config/4.11/graphics/libjpeg.bset
Normal file
20
rtems/config/4.11/graphics/libjpeg.bset
Normal 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
|
21
rtems/config/graphics/libjpeg-9a-1.cfg
Normal file
21
rtems/config/graphics/libjpeg-9a-1.cfg
Normal 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
|
70
source-builder/config/libjpeg-1.cfg
Normal file
70
source-builder/config/libjpeg-1.cfg
Normal 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}
|
Reference in New Issue
Block a user