source:
rtems-source-builder/source-builder/config/libusb-1-1.cfg
@
80cf137
Last change on this file since 80cf137 was 0ffee19, checked in by Chris Johns <chrisj@…>, on 06/15/14 at 05:40:34 | |
---|---|
|
|
File size: 1.3 KB |
Line | |
---|---|
1 | # |
2 | # LibUSB 1.xx Version 1. |
3 | # |
4 | # This configuration file configure's, make's and install's libusb. |
5 | # |
6 | |
7 | %if %{release} == %{nil} |
8 | %define release 1 |
9 | %endif |
10 | |
11 | Summary: LibUSB v%{libusb_version} for target %{_target} on host %{_host} |
12 | Version: %{libusb_version} |
13 | Release: %{release} |
14 | URL: http://libusb.org/ |
15 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
16 | |
17 | # |
18 | # Source |
19 | # |
20 | %source set libusb http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-%{libusb_version}/libusb-%{libusb_version}.tar.bz2 |
21 | |
22 | # |
23 | # Prepare the source code. |
24 | # |
25 | %prep |
26 | |
27 | %source setup libusb -q -c -n %{name}-%{version} |
28 | cd libusb-%{libusb_version} |
29 | %patch setup libusb -p1 |
30 | cd .. |
31 | |
32 | %build |
33 | export PATH="%{_bindir}:${PATH}" |
34 | cd libusb-%{libusb_version} |
35 | |
36 | %if "%{_build}" != "%{_host}" |
37 | CFLAGS_FOR_BUILD="-g -O2 -Wall" \ |
38 | %endif |
39 | CFLAGS="$SB_CFLAGS" \ |
40 | ./configure \ |
41 | --build=%{_build} --host=%{_host} \ |
42 | --verbose --disable-nls \ |
43 | --without-included-gettext \ |
44 | --prefix=%{_prefix} --bindir=%{_bindir} \ |
45 | --exec-prefix=%{_exec_prefix} \ |
46 | --includedir=%{_includedir} --libdir=%{_libdir} \ |
47 | --mandir=%{_mandir} --infodir=%{_infodir} |
48 | |
49 | %{__make} %{?_smp_mflags} all |
50 | |
51 | cd .. |
52 | |
53 | %install |
54 | export PATH="%{_bindir}:${PATH}" |
55 | rm -rf $SB_BUILD_ROOT |
56 | |
57 | cd libusb-%{libusb_version} |
58 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
59 | |
60 | cd .. |
Note: See TracBrowser
for help on using the repository browser.