source: rtems-source-builder/source-builder/config/libtool-2-1.cfg @ 3cb78b0

Last change on this file since 3cb78b0 was 3cb78b0, checked in by Chris Johns <chrisj@…>, on 08/16/22 at 23:27:42

config: Various updates to fix downloading of sources

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#
2# Libtool 2.xx Version 1.
3#
4# This configuration file configure's, make's and install's libtool
5#
6
7%if %{!defined _internal_autotools}
8  %define _internal_autotools no
9%endif
10%if %{!defined _internal_autotools_path}
11  %define _internal_autotools_path %{_prefix}
12%endif
13
14Name:      libtool-%{libtool_version}-%{_host}-%{release}
15Summary:   Libtool v%{libtool_version} for host %{_host}
16Version:   %{libtool_version}
17Release:   %{release}
18URL:       http://www.gnu.org/software/libtool/
19
20#
21# Source
22#
23%source set libtool https://ftp.gnu.org/gnu/libtool/libtool-%{libtool_version}.tar.gz
24
25#
26# Prepare the source code.
27#
28%prep
29  build_top=$(pwd)
30
31  %source setup libtool -q -n libtool-%{libtool_version}
32  %patch setup libtool -p1
33
34  cd ${build_top}
35
36%build
37  build_top=$(pwd)
38
39  %if %{defined _internal_autotools_path}
40    export PATH="%{_internal_autotools_path}/bin:${PATH}"
41  %endif
42
43  cd libtool-%{libtool_version}
44
45  if test "%{_internal_autotools}" = "yes"; then
46    ac_prefix=%{_internal_autotools_path}
47  else
48    ac_prefix=%{_prefix}
49  fi
50
51  if test "%{_build}" != "%{_host}" ; then
52    CFLAGS_FOR_BUILD="-g -O2 -Wall"
53  fi
54  export CFLAGS CFLAGS_FOR_BUILD CC
55
56  CC=%{__cc} \
57  CFLAGS="$SB_CFLAGS" \
58  ./configure \
59    --build=%{_build} --host=%{_host} \
60    --verbose --disable-nls \
61    --without-included-gettext \
62    --prefix=${ac_prefix}
63
64  %{__make} %{?_smp_mflags} all
65
66  unset CFLAGS_FOR_BUILD
67
68  cd ${build_top}
69
70%install
71  build_top=$(pwd)
72
73  export PATH="%{_bindir}:${PATH}"
74  %{__rmdir} $SB_BUILD_ROOT
75
76  cd libtool-%{libtool_version}
77
78  if test "%{_internal_autotools}" = "yes"; then
79    %{__make} install
80  else
81    %{__make} DESTDIR=$SB_BUILD_ROOT install
82  fi
83
84  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.