source: rtems-source-builder/source-builder/config/libusb-1-1.cfg @ 0ffee19

4.104.114.95
Last change on this file since 0ffee19 was 0ffee19, checked in by Chris Johns <chrisj@…>, on 06/15/14 at 05:40:34

sb: Add support for building RTEMS 3rd party packages.

Remove the 'opt' from various macros and shell variables.

Add pkgconfig to the checks to make it clear the check is a
pkgconfig check.

Add NTP support as the first package to be built using the RSB.

Split the RTEMS URL's out from the base bset file into a separate
file that be included by other files.

Add an RTEMS BSP configuration file to help abstract the process
of building 3rd party packages.

Clean the cross and canadian cross support up so we can cleanly support
cross and canadian cross building.

Refactor the pkgconfig support and clean up the PC file handling of
loading modules.

Add support for %{?..} to return false if a macro is %{nil}.

Add %{pkgconfig ..} support to allow better control of access RTEMS
pkgconfig files.

  • Property mode set to 100644
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
11Summary:   LibUSB v%{libusb_version} for target %{_target} on host %{_host}
12Version:   %{libusb_version}
13Release:   %{release}
14URL:       http://libusb.org/
15BuildRoot: %{_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.