source: rtems-source-builder/source-builder/config/t1lib-1.cfg @ 457c7ec

4.104.95
Last change on this file since 457c7ec was 457c7ec, checked in by YANG Qiao <yangqiao0505@…>, on 08/10/15 at 12:48:24

add t1lib bset (patch url should be changed after it is merged into rtems git server)

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#
2# t1lib
3#
4# This configuration file configure's, make's and install's t1lib.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      t1lib-v%{t1lib_version}-%{_host}-%{release}
12Summary:   t1lib is the official PNG reference library
13Version:   %{t1lib_version}
14Release:   %{release}
15URL:     http://www.t1lib.org/
16BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
17
18#
19# t1lib Source
20#
21%source set t1lib ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/t1lib-%{t1lib_version}.tar.gz
22%patch add t1lib https://raw.githubusercontent.com/yangqiao/rtems-tools/graphics/tools/4.11/t1lib/t1lib-5.1.2.diff
23%hash md5 t1lib-5.1.2.diff 196b0e39e36cab5afc6c5c280dcbe9bc
24
25#
26# Prepare the source code.
27#
28%prep
29  build_top=$(pwd)
30
31  source_dir_t1lib="t1lib-%{t1lib_version}"
32  %source setup t1lib -q -n t1lib-%{t1lib_version}
33  %patch setup t1lib -p1
34
35  cd ${build_top}
36
37#
38# Build the source code.
39# The configure should be run in the source dir
40#
41%build
42  build_top=$(pwd)
43
44  %{build_directory}
45
46  cd ${source_dir_t1lib}
47
48  %{host_build_flags}
49
50   ./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    --without-athena --without-x
63
64  %{__make} %{?_smp_mflags} without_doc
65
66  cd ${build_top}
67
68%install
69  build_top=$(pwd)
70
71  %{__rmdir} $SB_BUILD_ROOT
72
73  cd ${source_dir_t1lib}
74  %{__make} DESTDIR=$SB_BUILD_ROOT install
75  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.