source: rtems-source-builder/source-builder/config/freetype-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.5 KB
Line 
1#
2# freetype
3#
4# This configuration file configure's, make's and install's freetype.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      freetype-v%{freetype_version}-%{_host}-%{release}
12Summary:   freetype is for producing high-quality output (glyph images) of most vector and bitmap font formats.
13Version:   %{freetype_version}
14Release:   %{release}
15URL:     http://www.freetype.org/
16
17#
18# freetype Source
19#
20%source set freetype https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-%{freetype_version}.tar.gz
21#
22# Prepare the source code.
23#
24%prep
25  build_top=$(pwd)
26
27  source_dir_freetype="freetype-%{freetype_version}"
28  %source setup freetype -q -n freetype-%{freetype_version}
29  %patch setup freetype -p1
30
31  cd ${build_top}
32
33%build
34  build_top=$(pwd)
35
36  %{build_directory}
37
38  mkdir -p ${build_dir}
39  cd ${build_dir}
40
41  %{host_build_flags}
42
43  %ifos freebsd
44   GNUMAKE=%{__make}
45  %else
46    GNUMAKE=
47  %endif
48
49  GNUMAKE=${GNUMAKE} \
50  ../${source_dir_freetype}/configure \
51    --host=%{_host} \
52    --prefix=%{_prefix} \
53    --bindir=%{_bindir} \
54    --exec_prefix=%{_exec_prefix} \
55    --includedir=%{_includedir} \
56    --libdir=%{_libdir} \
57    --libexecdir=%{_libexecdir} \
58    --mandir=%{_mandir} \
59    --infodir=%{_infodir} \
60    --datadir=%{_datadir} \
61    --disable-shared
62
63  %{__make} %{?_smp_mflags} all
64
65  cd ${build_top}
66
67%install
68  build_top=$(pwd)
69
70  %{__rmdir} $SB_BUILD_ROOT
71
72  cd ${build_dir}
73  %{__make} DESTDIR=$SB_BUILD_ROOT install
74  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.