source: rtems-source-builder/source-builder/config/libtiff-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.4 KB
Line 
1#
2# libtiff
3#
4# This configuration file configure's, make's and install's libtiff.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      libtiff-v%{tiff_version}-%{_host}-%{release}
12Summary:   libtiff provides support for the Tag Image File Format (TIFF), a widely used format for storing image data.
13Version:   %{tiff_version}
14Release:   %{release}
15URL:       http://www.libtiff.org/
16
17#
18# libtiff Source
19#
20%source set libtiff http://download.osgeo.org/libtiff/tiff-%{tiff_version}.tar.gz
21
22#
23# Prepare the source code.
24#
25%prep
26  build_top=$(pwd)
27
28  source_dir_tiff="tiff-%{tiff_version}"
29  %source setup libtiff -q -n tiff-%{tiff_version}
30  %patch setup libtiff -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_tiff}/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    --datarootdir=%{_datarootdir} \
55    --with-docdir=%{_datarootdir}/doc \
56    --disable-shared
57
58  %{__make} %{?_smp_mflags} all
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.