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

Last change on this file since 96c414c was 96c414c, checked in by Chris Johns <chrisj@…>, on Oct 22, 2018 at 12:59:10 AM

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

Closes #3562.

  • Property mode set to 100644
File size: 1.3 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-v%{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 ftp://microwindows.censoft.com/pub/microwindows/microwindows-src-%{microwindows_version}.tar.gz
21
22#
23# Prepare the source code.
24#
25%prep
26  build_top=$(pwd)
27
28  source_dir_microwindows="microwin"
29  %source setup microwindows -q -n microwin
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.