Hi everyone, here goes the spec file for freetype, I would like to
hear from you about one work around:
#FIXME: Work aroud to cross compile apinames in the host machine
cd src/tools
gcc apinames.c -o apinames
cp apinames ../../objs
The apiname application is needed during compilation.
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : TrueType font rasterizer
Name : freetype
Version : 2.3.9
Release : 1
License : GPL or FTL
Vendor : Maxtrack
Packager : Hamilton Vera
Group : System Environment/Libraries
Source : %{name}-%{version}.tar.bz2
URL : http://www.freetype.org/
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
%Description
%{summary}
%Prep
%setup
#FIXME: Work aroud to cross compile apinames in the host machine
cd src/tools
gcc apinames.c -o apinames
cp apinames ../../objs
%Build
# FIXME: Work around to fix function 'FT_MulFix_arm'
# http://archmobile.org/trac/ticket/42
export CFLAGS="-std=gnu99"
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make
%Install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT/%{pfx} install
rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/*.la
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*
Dear Stuart, I did not tested this version with all other packages
like (gtk,pango,etc), I will do it as soon as possible.
Thanks.
Hamilton Vera
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib