source: rtems-source-builder/source-builder/config/libpng-1.cfg

Last change on this file was 831ae05, checked in by Chris Johns <chrisj@…>, on 07/14/19 at 05:11:46

rtems/bsp: Build packages for the beagle BSP.

Closes #3769

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#
2# libpng
3#
4# This configuration file configure's, make's and install's libpng.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      libpng-v%{libpng_version}-%{_host}-%{release}
12Summary:   libpng is the official PNG reference library
13Version:   %{libpng_version}
14Release:   %{release}
15URL:       http://www.libpng.org/
16
17#
18# libpng Source
19#
20%source set libpng --rsb-file=libpng-%{libpng_version}.tar.xz http://prdownloads.sourceforge.net/libpng/libpng-%{libpng_version}.tar.xz?download
21
22#
23# Prepare the source code.
24#
25%prep
26  build_top=$(pwd)
27
28  source_dir_libpng="libpng-%{libpng_version}"
29  %source setup libpng -q -n libpng-%{libpng_version}
30  %patch setup libpng -p1
31
32  cd ${build_top}
33
34%build
35  build_top=$(pwd)
36
37  %{build_directory}
38
39  mkdir -p ${build_dir}
40  cd ${build_dir}
41
42  %{host_build_flags}
43
44   ../${source_dir_libpng}/configure \
45    --host=%{_host} \
46    --prefix=%{_prefix} \
47    --bindir=%{_bindir} \
48    --exec_prefix=%{_exec_prefix} \
49    --includedir=%{_includedir} \
50    --libdir=%{_libdir} \
51    --libexecdir=%{_libexecdir} \
52    --mandir=%{_mandir} \
53    --infodir=%{_infodir} \
54    --datadir=%{_datadir} \
55    --disable-shared
56
57  %{__make} %{?_smp_mflags} all
58
59  cd ${build_top}
60
61%install
62  build_top=$(pwd)
63
64  %{__rmdir} $SB_BUILD_ROOT
65
66  cd ${build_dir}
67  %{__make} DESTDIR=$SB_BUILD_ROOT install
68  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.