source: rtems-source-builder/source-builder/config/microwindows-1.cfg @ c799e04

Last change on this file since c799e04 was c799e04, checked in by Chris Johns <chrisj@…>, on Jul 6, 2019 at 9:20:09 AM

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.4 KB
Line 
1#
2# microwindows
3#
4# This configuration file configure's, make's and install's microwindows.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      microwindows-%{microwindows_version}-%{_host}-%{release}
12Summary:   microwindows is an Open Source Window System
13Version:   %{microwindows_version}
14Release:   %{release}
15URL:       http://www.microwindows.org/
16
17#
18# microwindows Source
19#
20%source set microwindows --rsb-file=microwindows-%{microwindows_version}.tar.gz https://codeload.github.com/ghaerr/microwindows/tar.gz/%{microwindows_version}
21
22#
23# Prepare the source code.
24#
25%prep
26  build_top=$(pwd)
27
28  source_dir_microwindows="microwindows-%{microwindows_version}"
29  %source setup microwindows -q -n microwindows-%{microwindows_version}
30  %patch setup microwindows -p1
31
32  cd ${build_top}
33
34#
35# Build the source code.
36#
37%build
38  build_top=$(pwd)
39
40  %{build_directory}
41
42  mkdir -p ${build_dir}/src
43  cd ${build_dir}/src
44  cp -r ${build_top}/${source_dir_microwindows}/src/* .
45
46  #%{host_build_flags}
47
48  export RTEMS_MAKEFILE_PATH=%{rtems_bsp_prefix}
49
50  %{__make} -f Makefile.rtems CONFIG=`pwd`/Configs/config.rtems -k all
51
52  cd ${build_top}
53
54%install
55  build_top=$(pwd)
56
57  %{__rmdir} $SB_BUILD_ROOT
58
59  cd ${build_dir}/src
60  mkdir -p $SB_BUILD_ROOT/%{_includedir}
61  mkdir -p $SB_BUILD_ROOT/%{_libdir}
62  mkdir -p $SB_BUILD_ROOT/%{_bindir}
63  cp -r include/* $SB_BUILD_ROOT/%{_includedir}
64  cp -r lib/*.a $SB_BUILD_ROOT/%{_libdir}
65  cp -r bin/* $SB_BUILD_ROOT/%{_bindir}
Note: See TracBrowser for help on using the repository browser.