mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00

The support is added at the top level and so not lost when we move to a new version of RTEMS. The change also moves all 3rd party packages to use a common rtems-package.bset build set file. All packages except Microwindows itself build cleanly.
67 lines
1.4 KiB
INI
67 lines
1.4 KiB
INI
#
|
|
# microwindows
|
|
#
|
|
# This configuration file configure's, make's and install's microwindows.
|
|
#
|
|
|
|
%if %{release} == %{nil}
|
|
%define release 1
|
|
%endif
|
|
|
|
Name: microwindows-v%{microwindows_version}-%{_host}-%{release}
|
|
Summary: microwindows is an Open Source Window System
|
|
Version: %{microwindows_version}
|
|
Release: %{release}
|
|
URL: http://www.microwindows.org/
|
|
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
|
|
|
#
|
|
# microwindows Source
|
|
#
|
|
%source set microwindows ftp://microwindows.censoft.com/pub/microwindows/microwindows-src-%{microwindows_version}.tar.gz
|
|
|
|
#
|
|
# Prepare the source code.
|
|
#
|
|
%prep
|
|
build_top=$(pwd)
|
|
|
|
source_dir_microwindows="microwin"
|
|
%source setup microwindows -q -n microwin
|
|
%patch setup microwindows -p1
|
|
|
|
cd ${build_top}
|
|
|
|
#
|
|
# Build the source code.
|
|
#
|
|
%build
|
|
build_top=$(pwd)
|
|
|
|
%{build_directory}
|
|
|
|
mkdir -p ${build_dir}/src
|
|
cd ${build_dir}/src
|
|
cp -r ${build_top}/${source_dir_microwindows}/src/* .
|
|
|
|
#%{host_build_flags}
|
|
|
|
export RTEMS_MAKEFILE_PATH=%{rtems_bsp_prefix}
|
|
|
|
%{__make} -f Makefile.rtems CONFIG=`pwd`/Configs/config.rtems -k all
|
|
|
|
cd ${build_top}
|
|
|
|
%install
|
|
build_top=$(pwd)
|
|
|
|
%{__rmdir} $SB_BUILD_ROOT
|
|
|
|
cd ${build_dir}/src
|
|
mkdir -p $SB_BUILD_ROOT/%{_includedir}
|
|
mkdir -p $SB_BUILD_ROOT/%{_libdir}
|
|
mkdir -p $SB_BUILD_ROOT/%{_bindir}
|
|
cp -r include/* $SB_BUILD_ROOT/%{_includedir}
|
|
cp -r lib/*.a $SB_BUILD_ROOT/%{_libdir}
|
|
cp -r bin/* $SB_BUILD_ROOT/%{_bindir}
|