ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] libogg and speex spec files


From: Vadim Lebedev
Subject: Re: [Ltib] libogg and speex spec files
Date: Mon, 08 Sep 2008 15:07:10 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Thanks Stuart

Resubmitting

Vadim

Stuart Hughes wrote:
Hi Vadim,

I guess you mean --enable-arm5e-asm in:

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --disable-static --enable-fixed-point --enable-arm5e-asm --with-ogg=.


Normally this is handled by detecting something in the environment
(maybe from the toolchain, or platform) and then saying in the spec
file:

if [ "$SOMETHING ]
then
    EXTRA_CONFIG_OPTS="--enable-arm5e-asm"
fi

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --disable-static --enable-fixed-point --with-ogg=. $EXTRA_CONFIG_OPTS

Take a look at: dist/lfs-5.1/php/php.spec for examples.

Regards, Stuart


On Mon, 2008-09-08 at 12:59 +0200, Vadim Lebedev wrote:
  
Hello,

I'm attaching libogg.spec and speex.spec to be included into LTIB

There is a quirk in speex.spec which enables arm specific defines by default
I'd like to have an advice on how to enable it depending on platform


THanks
Vadim
_______________________________________________
LTIB home page: http://bitshrine.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib
    


  

%define pfx /opt/freescale/rootfs/%{_target_cpu}

Summary         : Patent-free audio compression format designed for speech
Name            : speex
Version         : 1.2beta1
Release         : z
License         : BSD revised/(c) Xiph Foundation
Vendor          : Bluewind
Packager        : Enrico Benetti
Group           : Applications/File 
URL             : http://www.xiph.org
Source          : %{name}-%{version}.tar.gz
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

%Description
%{summary}

%Prep
%setup 

%Build
arm5e=`echo $PLATFORM | grep imx27`
if [ -n "$arm5e"]
then
    EXTRA_CONFIG_OPTS="--enable-arm5e-asm"
fi

./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} 
--disable-static --enable-fixed-point --with-ogg=. $EXTRA_CONFIG_OPTS


make

%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}

%Clean
rm -rf $RPM_BUILD_ROOT

%Files
%defattr(-,root,root)
%{pfx}/*


reply via email to

[Prev in Thread] Current Thread [Next in Thread]