source: rtems-source-builder/source-builder/config/libtiff-1.cfg @ 96c414c

Last change on this file since 96c414c was 96c414c, checked in by Chris Johns <chrisj@…>, on Oct 22, 2018 at 12:59:10 AM

windows: Remove BuildRoot? from all configs, add a short tmp path.

Closes #3562.

  • 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 ftp://ftp.remotesensing.org/pub/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
59  %{__make} %{?_smp_mflags} all
60  cd ${build_top}
61
62%install
63  build_top=$(pwd)
64
65  %{__rmdir} $SB_BUILD_ROOT
66
67  cd ${build_dir}
68  %{__make} DESTDIR=$SB_BUILD_ROOT install
69  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.