source: rtems-source-builder/source-builder/config/protobuf-2-1.cfg @ 96c414c

5
Last change on this file since 96c414c was 96c414c, checked in by Chris Johns <chrisj@…>, on 10/22/18 at 00:59:10

windows: Remove BuildRoot? from all configs, add a short tmp path.

Closes #3562.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#
2# Google Protocol Buffers 2.x.x Version 1.
3#
4# This configuration file configure's, make's and install's Protocol Buffers
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      protobuf-%{protobuf_version}-%{_host}-%{release}
12Summary:   Protocol buffers are Googles language-neutral,
13           platform-neutral, extensible mechanism for serializing
14           structured data.
15Version:   %{protobuf_version}
16Release:   %{release}
17URL:       https://developers.google.com/protocol-buffers/
18
19#
20# Protocol Buffers Source
21#
22%source set protobuf https://github.com/google/protobuf/releases/download/v%{protobuf_version}/protobuf-%{protobuf_version}.tar.gz
23
24#
25# Prepare the source code.
26#
27%prep
28  build_top=$(pwd)
29
30  source_dir_protobuf="protobuf-%{protobuf_version}"
31  %source setup protobuf -q -n protobuf-%{protobuf_version}
32  %patch setup protobuf -p1
33
34  cd ${build_top}
35
36%build
37  build_top=$(pwd)
38
39  %{build_directory}
40
41  mkdir -p ${build_dir}
42  cd ${build_dir}
43
44  %define host_cxxflags %{host_cxxflags} -fpermissive
45
46  %{host_build_flags}
47
48  ../${source_dir_protobuf}/configure \
49    --host=%{_host} \
50    --prefix=%{_prefix} \
51    --bindir=%{_bindir} \
52    --exec_prefix=%{_exec_prefix} \
53    --includedir=%{_includedir} \
54    --libdir=%{_libdir} \
55    --libexecdir=%{_libexecdir} \
56    --mandir=%{_mandir} \
57    --infodir=%{_infodir} \
58    --datadir=%{_datadir} \
59    --with-protoc=true
60
61  %{__make} %{?_smp_mflags} all
62
63  cd ${build_top}
64
65%install
66  build_top=$(pwd)
67
68  %{__rmdir} $SB_BUILD_ROOT
69
70  cd ${build_dir}
71  %{__make} DESTDIR=$SB_BUILD_ROOT install
72  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.