5
Last change
on this file since c799e04 was
c799e04,
checked in by Chris Johns <chrisj@…>, on 07/06/19 at 09:20:09
|
5/packages: Add curl and update all packages with RTEMS 5 and LibBSD
- Update rtems-bsp support to correctly handle hosts for BSP.
- Clean up the options for a BSP.
- Check all RTEMS 5 packages and add 5/rtems-packages for all that build.
- Update download locations and checksum of all packages.
- The work requires the kernel and Libbsd hacve the same prefix.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | # |
---|
2 | # Curl (https://curl.haxx.se) |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's libcurl. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: curl-v%{curl_version}-%{_host}-%{release} |
---|
12 | Summary: Curl provides libcurl, a package to manage http etc protocols. |
---|
13 | Version: %{curl_version} |
---|
14 | Release: %{release} |
---|
15 | URL: https://curl.haxx.se |
---|
16 | |
---|
17 | # |
---|
18 | # Curl Source |
---|
19 | # |
---|
20 | %source set curl https://curl.haxx.se/download/curl-%{curl_version}.tar.xz |
---|
21 | |
---|
22 | # |
---|
23 | # Curl's configures requires includes are in the CPPFLAGS. |
---|
24 | # |
---|
25 | %define host_cflags_no_includes 1 |
---|
26 | |
---|
27 | # |
---|
28 | # Prepare the source code. |
---|
29 | # |
---|
30 | %prep |
---|
31 | build_top=$(pwd) |
---|
32 | |
---|
33 | source_dir_curl="curl-%{curl_version}" |
---|
34 | %source setup curl -q -n curl-%{curl_version} |
---|
35 | |
---|
36 | cd ${build_top} |
---|
37 | |
---|
38 | # |
---|
39 | # Build the source code. |
---|
40 | # |
---|
41 | %build |
---|
42 | build_top=$(pwd) |
---|
43 | |
---|
44 | %{build_directory} |
---|
45 | |
---|
46 | mkdir -p ${build_dir} |
---|
47 | cd ${build_dir} |
---|
48 | |
---|
49 | %{host_build_flags} |
---|
50 | |
---|
51 | ../${source_dir_curl}/configure \ |
---|
52 | --host=%{_host} \ |
---|
53 | --prefix=%{_prefix} \ |
---|
54 | --bindir=%{_bindir} \ |
---|
55 | --exec_prefix=%{_exec_prefix} \ |
---|
56 | --includedir=%{_includedir} \ |
---|
57 | --libdir=%{_libdir} \ |
---|
58 | --libexecdir=%{_libexecdir} \ |
---|
59 | --mandir=%{_mandir} \ |
---|
60 | --infodir=%{_infodir} \ |
---|
61 | --datadir=%{_datadir} |
---|
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} |
---|
75 | |
---|
76 | # |
---|
77 | # Remove any executables created in the build |
---|
78 | # |
---|
79 | %{__rmdir} ${SB_BUILD_ROOT}/%{_bindir} |
---|
80 | %{__rmdir} ${SB_BUILD_ROOT}/%{_mandir}/man1 |
---|
Note: See
TracBrowser
for help on using the repository browser.