mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
67 lines
1.2 KiB
INI
67 lines
1.2 KiB
INI
#
|
|
# Sis 2.xx Version 1.
|
|
#
|
|
# This configuration file configure's, make's and install's sis
|
|
#
|
|
|
|
Name: sis-%{sis_version}-%{_host}-%{release}
|
|
Summary: Sis v%{sis_version} for host %{_host}
|
|
Version: %{sis_version}
|
|
Release: %{release}
|
|
#URL: http://www.gnu.org/software/sis/
|
|
|
|
#
|
|
# Source
|
|
#
|
|
%define sis_source sis-%{sis_version}
|
|
%source set sis https://git.rtems.org/sis/snapshot/%{sis_source}.tar.bz2
|
|
|
|
#
|
|
# Prepare the source code.
|
|
#
|
|
%prep
|
|
build_top=$(pwd)
|
|
|
|
%source setup sis -q -n sis-%{sis_version}
|
|
|
|
cd ${build_top}
|
|
|
|
%build
|
|
build_top=$(pwd)
|
|
|
|
cd sis-%{sis_version}
|
|
|
|
ac_prefix=%{_prefix}
|
|
|
|
if test "%{_build}" != "%{_host}" ; then
|
|
CFLAGS_FOR_BUILD="-g -O2 -Wall"
|
|
fi
|
|
export CFLAGS CFLAGS_FOR_BUILD CC
|
|
|
|
if test "%{_target}" != "" ; then
|
|
SIS_PREFIX="%{_target}-"
|
|
fi
|
|
CFLAGS="$SB_CFLAGS" \
|
|
./configure \
|
|
--build=%{_build} --host=%{_host} \
|
|
--program-prefix="$SIS_PREFIX" \
|
|
--prefix=${ac_prefix}
|
|
|
|
%{__make} %{?_smp_mflags} all
|
|
|
|
unset CFLAGS_FOR_BUILD
|
|
|
|
cd ${build_top}
|
|
|
|
%install
|
|
build_top=$(pwd)
|
|
|
|
export PATH="%{_bindir}:${PATH}"
|
|
%{__rmdir} $SB_BUILD_ROOT
|
|
|
|
cd sis-%{sis_version}
|
|
|
|
%{__make} DESTDIR=$SB_BUILD_ROOT install
|
|
|
|
cd ${build_top}
|