Chris Johns f5e724fc07 graphics: Add 3rd party graphics support back to the master branch.
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.
2016-04-15 11:59:30 +10:00

72 lines
1.5 KiB
INI

#
# freetype
#
# This configuration file configure's, make's and install's freetype.
#
%if %{release} == %{nil}
%define release 1
%endif
Name: freetype-v%{freetype_version}-%{_host}-%{release}
Summary: freetype is for producing high-quality output (glyph images) of most vector and bitmap font formats.
Version: %{freetype_version}
Release: %{release}
URL: http://www.freetype.org/
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
# freetype Source
#
%source set freetype http://download.savannah.gnu.org/releases/freetype/freetype-%{freetype_version}.tar.gz
#
# Prepare the source code.
#
%prep
build_top=$(pwd)
source_dir_freetype="freetype-%{freetype_version}"
%source setup freetype -q -n freetype-%{freetype_version}
%patch setup freetype -p1
cd ${build_top}
%build
build_top=$(pwd)
%{build_directory}
mkdir -p ${build_dir}
cd ${build_dir}
%{host_build_flags}
%ifos freebsd
GNUMAKE=%{__make} \
%endif
../${source_dir_freetype}/configure \
--host=%{_host} \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--exec_prefix=%{_exec_prefix} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--datadir=%{_datadir} \
--disable-shared
%{__make} %{?_smp_mflags} all
cd ${build_top}
%install
build_top=$(pwd)
%{__rmdir} $SB_BUILD_ROOT
cd ${build_dir}
%{__make} DESTDIR=$SB_BUILD_ROOT install
cd ${build_top}