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 | |
---|
11 | Name: t1lib-v%{t1lib_version}-%{_host}-%{release} |
---|
12 | Summary: t1lib is the official PNG reference library |
---|
13 | Version: %{t1lib_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://www.t1lib.org/ |
---|
16 | |
---|
17 | # |
---|
18 | # t1lib Source |
---|
19 | # |
---|
20 | %source set t1lib http://ftp.netbsd.org/pub/pkgsrc/distfiles/t1lib-%{t1lib_version}.tar.gz |
---|
21 | |
---|
22 | # |
---|
23 | # Prepare the source code. |
---|
24 | # |
---|
25 | %prep |
---|
26 | build_top=$(pwd) |
---|
27 | |
---|
28 | source_dir_t1lib="t1lib-%{t1lib_version}" |
---|
29 | %source setup t1lib -q -n t1lib-%{t1lib_version} |
---|
30 | %patch setup t1lib -p1 |
---|
31 | |
---|
32 | cd ${build_top} |
---|
33 | |
---|
34 | # |
---|
35 | # Build the source code. |
---|
36 | # The configure should be run in the source dir |
---|
37 | # |
---|
38 | %build |
---|
39 | build_top=$(pwd) |
---|
40 | |
---|
41 | %{build_directory} |
---|
42 | |
---|
43 | cd ${source_dir_t1lib} |
---|
44 | |
---|
45 | %{host_build_flags} |
---|
46 | |
---|
47 | ./configure \ |
---|
48 | --host=%{_host} \ |
---|
49 | --prefix=%{_prefix} \ |
---|
50 | --bindir=%{_bindir} \ |
---|
51 | --exec_prefix=%{_exec_prefix} \ |
---|
52 | --includedir=%{_includedir} \ |
---|
53 | --libdir=%{_libdir} \ |
---|
54 | --libexecdir=%{_libexecdir} \ |
---|
55 | --mandir=%{_mandir} \ |
---|
56 | --infodir=%{_infodir} \ |
---|
57 | --datadir=%{_datadir} \ |
---|
58 | --disable-shared \ |
---|
59 | --without-athena --without-x |
---|
60 | |
---|
61 | %{__make} %{?_smp_mflags} without_doc |
---|
62 | |
---|
63 | cd ${build_top} |
---|
64 | |
---|
65 | %install |
---|
66 | build_top=$(pwd) |
---|
67 | |
---|
68 | %{__rmdir} $SB_BUILD_ROOT |
---|
69 | |
---|
70 | cd ${source_dir_t1lib} |
---|
71 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
72 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.