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

5
Last change on this file since c799e04 was c799e04, checked in by Chris Johns <chrisj@…>, on 07/06/19 at 09:20:09

5/packages: Add curl and update all packages with RTEMS 5 and LibBSD

  • Update rtems-bsp support to correctly handle hosts for BSP.
  • Clean up the options for a BSP.
  • Check all RTEMS 5 packages and add 5/rtems-packages for all that build.
  • Update download locations and checksum of all packages.
  • The work requires the kernel and Libbsd hacve the same prefix.
  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[0b80ff5]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}
[f5e724f]15URL:       http://www.libpng.org/
[0b80ff5]16
17#
18# libpng Source
19#
[c799e04]20#%source set libpng ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng%{libpng_src_dir_revision}/libpng-%{libpng_version}.tar.gz
21
22%source set libpng --rsb-file=libpng-%{libpng_version}.tar.xz http://prdownloads.sourceforge.net/libpng/libpng-%{libpng_version}.tar.xz?download
[0b80ff5]23
24#
25# Prepare the source code.
26#
27%prep
28  build_top=$(pwd)
29
30  source_dir_libpng="libpng-%{libpng_version}"
31  %source setup libpng -q -n libpng-%{libpng_version}
32  %patch setup libpng -p1
33
34  cd ${build_top}
35
36%build
37  build_top=$(pwd)
38
39  %{build_directory}
40
41  mkdir -p ${build_dir}
42  cd ${build_dir}
43
44  %{host_build_flags}
45
46   ../${source_dir_libpng}/configure \
47    --host=%{_host} \
48    --prefix=%{_prefix} \
49    --bindir=%{_bindir} \
50    --exec_prefix=%{_exec_prefix} \
51    --includedir=%{_includedir} \
52    --libdir=%{_libdir} \
53    --libexecdir=%{_libexecdir} \
54    --mandir=%{_mandir} \
55    --infodir=%{_infodir} \
56    --datadir=%{_datadir} \
57    --disable-shared
58
59  %{__make} %{?_smp_mflags} all
60
61  cd ${build_top}
62
63%install
64  build_top=$(pwd)
65
66  %{__rmdir} $SB_BUILD_ROOT
67
68  cd ${build_dir}
69  %{__make} DESTDIR=$SB_BUILD_ROOT install
70  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.